refactor(config): 统一后端地址的构建配置
移除运行时配置脚本,优先使用构建环境变量,未配置时使用同源地址。同步更新环境变量示例和部署说明。
This commit is contained in:
@@ -18,9 +18,5 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
export function getServerURL() {
|
||||
return (
|
||||
window.__APP_CONFIG__?.SERVER_URL ||
|
||||
import.meta.env.VITE_REACT_APP_SERVER_URL ||
|
||||
''
|
||||
);
|
||||
return import.meta.env.VITE_REACT_APP_SERVER_URL || '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user