Files
ai-kefu-admin/admin/.env.production
T
2026-10-14 14:03:50 +08:00

30 lines
1.1 KiB
Bash
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.
# 【生产】环境变量
#
# 说明:模板原把通用变量放 .env(全模式加载),但根 .gitignore 的
# `.env` 规则会误伤 admin/.env——入库文件只有 .env.development /
# .env.production 两份(Phase 3 终审 I-2 收口)。通用变量因此按
# "两份都写"纪律维护:改通用项时两文件同步改。
# 版本号(vite.config.ts 的 __APP_VERSION__ define)
VITE_VERSION = 0.1.0
# 应用部署基础路径(如部署在子目录 /admin,则设置为 /admin/)
# Phase 4: 后端把 admin/dist 挂载在 /admin(见 app/main.py AdminSPA),
# 生产产物资源引用必须同前缀;dev 保持 .env.development 的 /(走 Vite 代理)
VITE_BASE_URL = /admin/
# 权限模式【 frontend 前端模式 / backend 后端模式 】
VITE_ACCESS_MODE = frontend
# 跨域请求时是否携带 Cookie(开启前需确保后端支持)
VITE_WITH_CREDENTIALS = false
# 是否打开路由信息
VITE_OPEN_ROUTE_INFO = false
# API 地址前缀(生产由反代把 /api 与 /static 指向后端,前端同源相对路径)
VITE_API_URL = /
# Delete console
VITE_DROP_CONSOLE = true