chore(hooks): copy env example to production env in post-receive

Add preparation step for production environment variables by copying
.env.production.example to .env.production before running build:start,
ensuring required environment variables are available on deployment.
This commit is contained in:
2026-06-12 14:40:07 +08:00
parent c39a8f5f80
commit 4fa1ddf22f
+3
View File
@@ -8,4 +8,7 @@
# - 内部 = `npm run build && npm run start`
# - 实际调用 `pnpm run build:start`(项目使用 pnpm
# 准备生产环境变量(从 .env.production.example 复制 → .env.production
cp -f .env.production.example .env.production
pnpm run build:start