refactor: 移除运行时后端配置并统一使用构建变量

删除 public/config.js 及 HTML 加载引用,后端地址改为构建变量优先、否则同源。补充环境变量示例、配置回归测试与部署迁移说明。

验证:npm run check 通过,183 项测试通过,生产构建成功。

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
zhanjunhao
2026-10-22 12:50:16 +08:00
parent d35330d530
commit 82a56092bc
7 changed files with 88 additions and 77 deletions
-1
View File
@@ -356,7 +356,6 @@
}
})();
</script>
<script src="/config.js"></script>
<script type="module" src="/src/index.jsx"></script>
</body>
</html>