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:
5
.env.development
Normal file
5
.env.development
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# base url(部署子路径,无则留空)
|
||||||
|
NEXT_PUBLIC_BASE_PATH=""
|
||||||
|
|
||||||
|
# 公共服务接口地址(后端 basis 服务:登录 / 验证码 / 租户列表都走这里)
|
||||||
|
NEXT_PUBLIC_SHARED_API_PATH="http://172.16.115.31:6610/"
|
||||||
5
.env.production
Normal file
5
.env.production
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# base url(部署子路径,无则留空)
|
||||||
|
NEXT_PUBLIC_BASE_PATH=""
|
||||||
|
|
||||||
|
# 公共服务接口地址(后端 basis 服务,集群内 svc 名,与 uirefbase 生产一致)
|
||||||
|
NEXT_PUBLIC_SHARED_API_PATH="http://basis-app-svc:6610"
|
||||||
5
.env.staging
Normal file
5
.env.staging
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# base url(部署子路径,无则留空)
|
||||||
|
NEXT_PUBLIC_BASE_PATH=""
|
||||||
|
|
||||||
|
# 公共服务接口地址(后端 basis 服务:登录 / 验证码 / 租户列表都走这里)
|
||||||
|
NEXT_PUBLIC_SHARED_API_PATH="http://172.16.115.31:6610/"
|
||||||
6
.gitignore
vendored
6
.gitignore
vendored
@@ -28,10 +28,8 @@ yarn-debug.log*
|
|||||||
yarn-error.log*
|
yarn-error.log*
|
||||||
.pnpm-debug.log*
|
.pnpm-debug.log*
|
||||||
|
|
||||||
# env files (never commit env; provide .env.example as a template instead)
|
# env files — committed per project convention (参考 uirefbase);仅忽略本地覆盖文件
|
||||||
.env
|
.env*.local
|
||||||
.env.*
|
|
||||||
!.env.example
|
|
||||||
|
|
||||||
# vercel
|
# vercel
|
||||||
.vercel
|
.vercel
|
||||||
|
|||||||
Reference in New Issue
Block a user