refactor(config): 统一后端地址的构建配置

移除运行时配置脚本,优先使用构建环境变量,未配置时使用同源地址。同步更新环境变量示例和部署说明。
This commit is contained in:
zhanjunhao
2026-10-22 12:50:16 +08:00
parent a5e351a6f9
commit caa41eb8c7
7 changed files with 88 additions and 77 deletions
+5
View File
@@ -1,3 +1,8 @@
# Backend root URL. Leave empty for same-origin requests (Vite proxy in development).
# Restart the dev server or rebuild production assets after changing this value.
# Public configuration only; never put secrets in VITE_* variables.
VITE_REACT_APP_SERVER_URL=
# Frontend build-time feature flags. Rebuild the frontend after changing them.
# Missing or false keeps the Cloud Brain suite hidden and blocks direct routes.
VITE_CLOUD_BRAIN_UI_ENABLED=false