Files
monkey-ai-web/src/helpers/config.js
T
zhanjunhao caa41eb8c7 refactor(config): 统一后端地址的构建配置
移除运行时配置脚本,优先使用构建环境变量,未配置时使用同源地址。同步更新环境变量示例和部署说明。
2026-10-22 12:50:16 +08:00

23 lines
830 B
JavaScript

/*
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
*/
export function getServerURL() {
return import.meta.env.VITE_REACT_APP_SERVER_URL || '';
}