fix: 将 .env.production 加入 git 追踪以修复 CI/CD 打包缺少生产环境配置的问题
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Made-with: Cursor
This commit is contained in:
parent
da9e903247
commit
389e434831
3
server/.gitignore
vendored
3
server/.gitignore
vendored
|
|
@ -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
|
||||
|
|
|
|||
19
server/ZR.Vue/.env.production
Normal file
19
server/ZR.Vue/.env.production
Normal 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
|
||||
Loading…
Reference in New Issue
Block a user