mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-20 20:39:55 +00:00
refactor: 优化前端代码结构和资源管理 style: 调整前端代码格式和样式 chore: 更新.gitignore和构建配置 fix: 修复前端资源路径和引用问题 docs: 更新前端文档和注释 perf: 优化前端性能和加载速度 test: 更新前端测试用例 build: 调整前端构建配置 ci: 更新CI/CD配置
22 lines
703 B
Bash
Executable File
22 lines
703 B
Bash
Executable File
# 【开发】环境变量 - 覆盖通用配置
|
|
|
|
# 环境标识
|
|
VITE_APP_ENV = development
|
|
|
|
# 项目名称
|
|
VITE_APP_TITLE = FastAPI Admin
|
|
|
|
# 浏览器侧同源前缀(与 Vite 代理配合时用 /,请求走 localhost:端口 + 代理)
|
|
VITE_API_URL = /
|
|
|
|
# 代理目标:本机后端(若出现 ENOTFOUND,说明上面域名在当前网络/DNS 下不可解析,改用本地或可用地址)
|
|
VITE_API_BASE_URL = http://127.0.0.1:8001
|
|
# VITE_API_BASE_URL = https://service.fastapiadmin.com
|
|
|
|
# 是否删除控制台输出
|
|
VITE_DROP_CONSOLE = false
|
|
|
|
# WebSocket 端点(AI对话功能需要配置)
|
|
VITE_APP_WS_ENDPOINT = ws://localhost:8001
|
|
# VITE_APP_WS_ENDPOINT = wss://service.fastapiadmin.com
|