zizi 4ba6cbda6b fix(admin): 补回被根 .gitignore 误吞的 game-admin 源码/构建配置(克隆后构建缺失修复)
根 .gitignore 的笼统 build/ 与 .env/.env.* 规则(本为 Java 产物/密钥设计)
误吞 yudao 前端约定提交的源码与配置,导致 fd373db 克隆到构建机后:
  vite.config.ts 解析 ./build/vite、./build/vite/optimize 失败 → 构建崩。

补回(git add -f)9 个文件并加 game-admin 作用域豁免:
  - build/vite/{index,optimize}.ts:vite 插件/optimize 配置源码
  - src/views/infra/build/index.vue:yudao infra 视图(被 build/ 误吞)
  - .env / .env.dev / .env.local / .env.prod / .env.stage / .env.test:前端构建配置
    (.env=yudao 默认;.env.local=我方接线 baseURL=localhost:48080 + 关加解密 + mock 兜底)
  - 注:env 为前端公开构建配置非密钥,内网项目按约定入库

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-08 18:00:52 +00:00

34 lines
690 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 预发布环境:只在打包时使用
NODE_ENV=production
VITE_DEV=false
# 请求路径
VITE_BASE_URL='http://api-dashboard.yudao.iocoder.cn'
# 文件上传类型server - 后端上传, client - 前端直连上传仅支持S3服务
VITE_UPLOAD_TYPE=server
# 接口地址
VITE_API_URL=/admin-api
# 是否删除debugger
VITE_DROP_DEBUGGER=true
# 是否删除console.log
VITE_DROP_CONSOLE=true
# 是否sourcemap
VITE_SOURCEMAP=false
# 打包路径
VITE_BASE_PATH='http://static-vue3.yudao.iocoder.cn/'
# 输出路径
VITE_OUT_DIR=dist-stage
# 商城H5会员端域名
VITE_MALL_H5_DOMAIN='http://mall.yudao.iocoder.cn'
# GoView域名
VITE_GOVIEW_URL='http://127.0.0.1:3000'