- 添加 frontend/.env.production (VITE_APP_ENV=production) - 修改 .gitignore 允许提交环境配置 - 修复生产环境显示"开发环境"标识的问题
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -8,8 +8,9 @@
|
|||||||
.env
|
.env
|
||||||
.env.local
|
.env.local
|
||||||
.env.*.local
|
.env.*.local
|
||||||
.env.production
|
# 允许提交非敏感的环境配置(用于 Vite 构建)
|
||||||
.env.staging
|
# .env.production
|
||||||
|
# .env.staging
|
||||||
|
|
||||||
# ----------------
|
# ----------------
|
||||||
# 依赖目录
|
# 依赖目录
|
||||||
|
|||||||
7
frontend/.env.production
Normal file
7
frontend/.env.production
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
# 生产环境配置
|
||||||
|
VITE_APP_ENV=production
|
||||||
|
VITE_API_BASE_URL=https://aiedu.ireborn.com.cn
|
||||||
|
VITE_WS_BASE_URL=wss://aiedu.ireborn.com.cn
|
||||||
|
VITE_USE_MOCK_DATA=false
|
||||||
|
VITE_ENABLE_REQUEST_LOG=false
|
||||||
|
NODE_ENV=production
|
||||||
Reference in New Issue
Block a user