| | |
| | | return { |
| | | name: PLUGIN_NAME, |
| | | async configResolved(_config) { |
| | | let appTitle = _config?.env?.VITE_GLOB_APP_TITLE ?? ''; |
| | | appTitle = appTitle.replace(/\s/g, '_').replace(/-/g, '_'); |
| | | const appTitle = _config?.env?.VITE_GLOB_APP_TITLE ?? ''; |
| | | // appTitle = appTitle.replace(/\s/g, '_').replace(/-/g, '_'); |
| | | publicPath = _config.base; |
| | | source = await getConfigSource(appTitle); |
| | | }, |
| | |
| | | } |
| | | return result.join('').toUpperCase(); |
| | | } |
| | | |
| | | return `__PRODUCTION__${strToHex(title) || '__APP'}__CONF__`.toUpperCase().replace(/\s/g, ''); |
| | | }; |
| | | |
| | |
| | | } |
| | | return result.join('').toUpperCase(); |
| | | } |
| | | |
| | | return `__PRODUCTION__${strToHex(title) || '__APP'}__CONF__`.toUpperCase().replace(/\s/g, ''); |
| | | }; |
| | | |
| | | export function getAppEnvConfig() { |
| | | console.log(import.meta.env.VITE_GLOB_APP_TITLE); |
| | | |
| | | const ENV_NAME = getVariableName(import.meta.env.VITE_GLOB_APP_TITLE); |
| | | console.log(ENV_NAME); |
| | | const ENV = import.meta.env.DEV |