chore: split dev and production deployment env

This commit is contained in:
湛兮
2026-06-05 12:32:23 +08:00
parent ab73565d37
commit 644c729ff0
9 changed files with 319 additions and 2 deletions
+16
View File
@@ -0,0 +1,16 @@
# 测试环境构建配置
VITE_APP_ENV_LABEL = "测试环境"
VITE_PUBLIC_PATH = /
# 测试环境路由历史模式
VITE_ROUTER_HISTORY = "hash"
# 测试环境不使用 CDN,避免外部依赖影响验收
VITE_CDN = false
# 测试环境默认不生成压缩产物
VITE_COMPRESSION = "none"
# 本地调试 test mode 时的后端代理目标;线上测试环境由 Nginx 将 /api 代理到测试后端。
VITE_API_PROXY_TARGET = "http://localhost:3501"