chore(env): add AUTH_SECRET for next-auth across environments

- Add per-environment AUTH_SECRET (dev/test/prod) for next-auth v4 JWT signing
- Temporarily redirect next start stdout/stderr to LOG_FILE in post-receive hook for server error debugging
This commit is contained in:
2026-06-12 18:42:43 +08:00
parent 546e5f4b3d
commit c90d2a5139
4 changed files with 15 additions and 4 deletions
+4
View File
@@ -16,6 +16,10 @@ NEXT_PUBLIC_API_CONNECT_TIMEOUT=30000
NEXT_PUBLIC_API_RECEIVE_TIMEOUT=60000
NEXT_PUBLIC_API_SEND_TIMEOUT=30000
# next-auth v4Auth.js)—— JWT 签名密钥
# production 环境独立密钥(**最**重要,**签**发**用**户 session cookie
AUTH_SECRET=XypsCWoLCNmwOaq4taIMJHe4+cU9YZBaYN4VMTtmSik=
# 第三方 OAuth
AUTH_GOOGLE_ID=351948560061-isubggf6eahfii9n0stpf2qu3haralro.apps.googleusercontent.com
AUTH_GOOGLE_SECRET=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