build: 不在服务器打包

This commit is contained in:
肖应宇 2026-04-01 19:22:03 +08:00
parent ae4916ce6f
commit 948c5c7f58
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,8 @@ done
if $DEV_MODE; then if $DEV_MODE; then
FRONTEND_CMD="pnpm run dev" FRONTEND_CMD="pnpm run dev"
else else
FRONTEND_CMD="env BETTER_AUTH_SECRET=$(python3 -c 'import secrets; print(secrets.token_hex(16))') pnpm run preview" # Use existing build artifacts, don't rebuild
FRONTEND_CMD="env BETTER_AUTH_SECRET=$(python3 -c 'import secrets; print(secrets.token_hex(16))') pnpm run start"
fi fi
# ── Stop existing services ──────────────────────────────────────────────────── # ── Stop existing services ────────────────────────────────────────────────────