refactor: 移除运行时后端配置并统一使用构建变量
删除 public/config.js 及 HTML 加载引用,后端地址改为构建变量优先、否则同源。补充环境变量示例、配置回归测试与部署迁移说明。 验证:npm run check 通过,183 项测试通过,生产构建成功。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user