chore: add per-environment env config (参考 uirefbase)

Commit .env.development/.staging/.production and track env files in git
(matching uirefbase convention). No secrets: only NEXT_PUBLIC_BASE_PATH
and NEXT_PUBLIC_SHARED_API_PATH (basis backend). .gitignore now ignores
only *.local overrides.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
zhangheng
2026-07-06 18:44:28 +08:00
parent 37f10118d3
commit 0a9ccaa282
4 changed files with 17 additions and 4 deletions

6
.gitignore vendored
View File

@@ -28,10 +28,8 @@ yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*
# env files (never commit env; provide .env.example as a template instead)
.env
.env.*
!.env.example
# env files committed per project convention (参考 uirefbase);仅忽略本地覆盖文件
.env*.local
# vercel
.vercel