增加环境变量VITE_OUT_URL

This commit is contained in:
2026-03-12 15:16:18 +08:00
parent 1cd7a43bc5
commit f269c42a58
5 changed files with 13 additions and 4 deletions
+2
View File
@@ -17,6 +17,7 @@ export const useGlobSetting = (): Readonly<GlobConfig> => {
VITE_GLOB_ONLINE_VIEW_URL,
VITE_GLOB_ST_DOMAIN_URL,
VITE_PLATFORM,
VITE_OUT_URL,
} = getAppEnvConfig();
if (!/[a-zA-Z\_]*/.test(VITE_GLOB_APP_SHORT_NAME)) {
@@ -40,6 +41,7 @@ export const useGlobSetting = (): Readonly<GlobConfig> => {
viewUrl: VITE_GLOB_ONLINE_VIEW_URL,
stDomainUrl: VITE_GLOB_ST_DOMAIN_URL,
vitePlatform: VITE_PLATFORM,
viteOutUrl: VITE_OUT_URL,
};
window._CONFIG['domianURL'] = VITE_GLOB_DOMAIN_URL;
return glob as Readonly<GlobConfig>;