feat: 区分开发和生产环境配置并完善加载与回归测试

This commit is contained in:
zhanjunhao
2026-10-27 15:55:20 +08:00
parent 7ba07f8696
commit a44590a6ab
9 changed files with 271 additions and 113 deletions
+11
View File
@@ -0,0 +1,11 @@
# Loaded by npm run build. Override locally in .env.production.local or in CI.
# Public configuration only; VITE_* values are exposed to the browser.
# Empty URL uses same-origin requests; configure your production reverse proxy.
# Set a backend root URL for cross-origin requests, then rebuild and redeploy.
VITE_REACT_APP_SERVER_URL=
VITE_CLOUD_BRAIN_UI_ENABLED=false
# Optional analytics. Empty IDs disable script injection.
VITE_UMAMI_WEBSITE_ID=
VITE_UMAMI_SCRIPT_URL=https://analytics.umami.is/script.js
VITE_GOOGLE_ANALYTICS_ID=