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
-25
View File
@@ -1,25 +0,0 @@
/*
Copyright (C) 2025 QuantumNous
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
For commercial licensing, please contact support@quantumnous.com
*/
// Runtime configuration - modify per deployment environment.
// Monolith mode: leave SERVER_URL empty.
// Separated mode: set to backend URL, e.g. 'https://api.example.com'
window.__APP_CONFIG__ = {
SERVER_URL: '',
};