fix: 将 .env.production 加入 git 追踪以修复 CI/CD 打包缺少生产环境配置的问题
All checks were successful
continuous-integration/drone/push Build is passing

Made-with: Cursor
This commit is contained in:
zpc 2026-03-28 02:06:54 +08:00
parent da9e903247
commit 389e434831
2 changed files with 329 additions and 311 deletions

3
server/.gitignore vendored
View File

@ -291,7 +291,7 @@ __pycache__/
/ZRAdmin-vue
/ZR.Vue/src/views/business/Gendemo.vue
# 数据库文件
# 謨ー謐ョ蠎捺枚莉?
*.db
*.db-shm
*.db-wal
@ -301,7 +301,6 @@ __pycache__/
# 环境变量
.env
.env.local
.env.production
# Docker
docker-compose.override.yml

View File

@ -0,0 +1,19 @@
# 生产环境配置
ENV = 'production'
VITE_APP_API_HOST = '/api/'
# 生产环境
VITE_APP_BASE_API = '/api/'
# 路由前缀
VITE_APP_ROUTER_PREFIX = '/'
# 默认上传地址
VITE_APP_UPLOAD_URL = 'Common/UploadFile'
#socket API
VITE_APP_SOCKET_API = '/msghub'
# 是否在打包时开启压缩,支持 gzip 和 brotli
VITE_BUILD_COMPRESS = gzip