|
@@ -17,10 +17,13 @@ export function getStorageShortName() { |
|
|
export function getAppEnvConfig() { |
|
|
export function getAppEnvConfig() { |
|
|
const ENV_NAME = getConfigFileName(import.meta.env); |
|
|
const ENV_NAME = getConfigFileName(import.meta.env); |
|
|
console.log(import.meta.env) |
|
|
console.log(import.meta.env) |
|
|
const ENV = (import.meta.env.DEV |
|
|
|
|
|
|
|
|
var ENV = (import.meta.env.DEV |
|
|
? // Get the global configuration (the configuration will be extracted independently when packaging) |
|
|
? // Get the global configuration (the configuration will be extracted independently when packaging) |
|
|
(import.meta.env as unknown as GlobEnvConfig) |
|
|
(import.meta.env as unknown as GlobEnvConfig) |
|
|
: window[ENV_NAME as any]) as unknown as GlobEnvConfig; |
|
|
: window[ENV_NAME as any]) as unknown as GlobEnvConfig; |
|
|
|
|
|
if(!ENV) { |
|
|
|
|
|
ENV = import.meta.env as unknown as GlobEnvConfig; |
|
|
|
|
|
} |
|
|
const { |
|
|
const { |
|
|
VITE_GLOB_APP_TITLE, |
|
|
VITE_GLOB_APP_TITLE, |
|
|
VITE_GLOB_API_URL, |
|
|
VITE_GLOB_API_URL, |
|
|