82a56092bc
删除 public/config.js 及 HTML 加载引用,后端地址改为构建变量优先、否则同源。补充环境变量示例、配置回归测试与部署迁移说明。 验证:npm run check 通过,183 项测试通过,生产构建成功。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
9 lines
456 B
Bash
9 lines
456 B
Bash
# 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
|