Commit Graph

29 Commits

Author SHA1 Message Date
admin aebda70834 ci(actions): use action notify webhook 2026-07-08 18:36:25 +08:00
admin b60ce37ab7 ci(actions): notify flow completion 2026-07-08 18:12:06 +08:00
admin a2661c79e3 ci: add action completion notifications 2026-07-08 12:44:16 +08:00
admin 75bc817a59 ci(deploy): deploy images over ssh from gitea actions 2026-07-08 10:22:11 +08:00
admin 5fc381f8eb chore(deploy): remove version bump helper 2026-07-07 15:24:09 +08:00
admin fd96cdb3d6 feat(script): add migration script for GitHub organization to Gitea 2026-07-07 12:47:30 +08:00
admin 99ac24e901 fix(deploy): guard optional git push flags 2026-07-06 13:04:42 +08:00
admin ea9b3b08c6 fix(deploy): handle empty push args 2026-07-06 13:03:53 +08:00
admin fca397a87d ci(deploy): enable containerized production release 2026-07-06 12:58:01 +08:00
admin 2d736f00ba chore(deploy): document auto restart flow 2026-07-06 11:01:42 +08:00
admin 4253da4e4c fix(deploy): force push main branch 2026-07-01 17:41:11 +08:00
admin e7a3bb2dc5 refactor(release): replace git merge with git rebase for dev branch 2026-07-01 14:44:02 +08:00
admin 8179abe899 fix(githooks): enhance post-commit script to unset local environment variables 2026-06-24 16:30:35 +08:00
admin 7d756d2b50 chore(deploy): remove unused deployment scripts and configuration 2026-06-18 14:32:19 +08:00
admin bb40f3c042 feat(deploy): add script to kill processes on Next.js deployment ports 2026-06-17 19:39:41 +08:00
admin 0548a08cbb feat: integrate Stripe payment with subscription plans
Add Stripe payment integration across the project:

- Add @stripe/stripe-js dependency
- Configure Stripe environment variables (secret key, publishable key, webhook secret) for dev, local, and production environments
- Add Product/Price IDs for monthly, quarterly, and annual subscription tiers
- Extend subscription plan data with voiceMinutesPerDay quotas (30/45/60 minutes per tier)
- Update .gitignore to exclude implementation_plan.md
2026-06-16 10:21:02 +08:00
admin 65891b3a8a chore(deploy): comment out version bump in deployment script 2026-06-15 10:58:22 +08:00
admin 8afcc40b9c fix:社交登录重定向网址错误问题 2026-06-12 18:15:58 +08:00
admin 4c9fd23b4f chore(release): update worktree paths to match new directory structure
Update WORKTREE_PATH in pre_release_web.sh and release_web.sh to reference the new frontend subdirectory location, aligning scripts with the current project folder structure.
2026-06-12 16:01:09 +08:00
admin a48a380cf7 fix(release): use absolute paths and add error handling in release scripts
- Add error handling to `cd` command to exit with a clear message if the worktree directory is missing
- Change relative `cp` source/destination paths to absolute paths prefixed with `$WORKTREE_PATH`, ensuring files are always read from and written to the intended worktree regardless of the current working directory
- Update inline comments to reflect the new absolute-path behavior in both `pre_release_web.sh` and `release_web.sh`
2026-06-12 15:59:52 +08:00
admin d76b048bb9 chore: move env examples to env-example/ and unify CDN env source
- Reorganize env example files into a dedicated env-example/ directory for clarity
- Update .gitignore to ignore env files (with examples now in env-example/)
- Unify CDN credentials (CF_ZONE_ID / CF_API_TOKEN) to be sourced from .env.local in both test and production deploys
- Update git_hooks/post-receive to copy production env example from new location
- Update deploy scripts (pre_release_web.sh, release_web.sh) to copy the appropriate env example into .env.local before building
- Update _deploy_lib.sh purge_cdn_cache to source from .env.local instead of .env
2026-06-12 15:05:37 +08:00
admin 05674264b8 chore(release): update worktree paths and remove obsolete comments
Update WORKTREE_PATH in release scripts to include "nextjs" prefix in directory names (cozsweet-nextjs-test and cozsweet-nextjs-main) and remove outdated comment blocks from both pre_release_web.sh and release_web.sh.
2026-06-12 14:42:43 +08:00
admin c39a8f5f80 refactor(deploy): parameterize git remote in deploy scripts
Replace hardcoded GIT_REMOTE variable with a function parameter so the
shared deploy library can push to either the production or test remote
from the same script. Rename push_to_server to push_to_remote and update
both deploy_web.sh and deploy_web_test.sh to pass the appropriate remote.
2026-06-12 14:39:09 +08:00
admin e2abe03a33 chore: reorganize icons for environment-specific deployment
Move environment-specific icons into dedicated directories (icons/develop, icons/test, icons/production) and update release scripts to copy the appropriate icon set (favicon.ico, Icon-192.png, Icon-512.png) into public/ for each target environment. Update manifest.json to reference the new /images/icons/ path.
2026-06-12 14:33:37 +08:00
admin 64fad08c4a chore: update .gitignore to ignore all env files and retain example templates
Replace broad `.env*` ignore rule with explicit entries for real env files (`.env`, `.env.local`, `.env.development`, `.env.test`, `.env.production`) while preserving `.env.example` and adding exceptions for the new `.env.development.example`, `.env.test.example`, and `.env.production.example` templates.

Add environment-specific example files to document required variables for development, test, and production setups, including API base URLs, WebSocket endpoints, API timeouts, Auth.js secret, OAuth credentials (Google, Facebook), and Cloudflare CDN configuration.
2026-06-12 14:24:56 +08:00
admin cac3ecd5de chore: add .env.example template and clean up deploy messages
Introduce a tracked .env.example file documenting all required environment
variables (app env, API/WebSocket base URLs, timeouts, Google/Facebook OAuth
credentials, Cloudflare CDN zone/token). Update .gitignore to allow this
file despite the blanket .env* ignore rule. Also simplify the push
success/failure output in scripts/deploy/_deploy_lib.sh by removing
verbose troubleshooting hints.
2026-06-12 14:13:20 +08:00
admin 57992bffac chore(chat): clean up legacy state machine and fix bubble alignment
- Remove redundant `loadingMoreHistory` and `ready` states from chat machine, consolidating history loading flow
- Add `align-self: flex-start` to chat row container for proper alignment
- Clean up commented-out margin rules in text bubble styles
- Update deploy script GIT_REMOTE from "server" to "test"
2026-06-12 11:59:34 +08:00
admin 6b5ec1d290 refactor(deploy): simplify script to git push-based deployment
Replace the previous Next.js build + rsync + archive workflow with a
minimal `push_to_server` helper that only does `git push` to the
`server` remote. Build, install, and start are now expected to be
handled by the server's post-receive hook, removing duplicate logic
and shrinking the script from 164 lines to 46. The old `build`,
`deploy`, `archive`, `setup_env`, and `check_local_build_dir`
functions (along with pnpm/rsync/sshpass usage) have been removed.
2026-06-10 16:48:50 +08:00
admin 4e27b4c512 build: drop next-pwa and switch to default Next 16 build 2026-06-10 14:24:51 +08:00