diff --git a/.env.docker b/.env.docker index f7676e7..6a38fa1 100644 --- a/.env.docker +++ b/.env.docker @@ -2,7 +2,7 @@ VITE_USE_MOCK = false # public path -VITE_PUBLIC_PATH = / +VITE_PUBLIC_PATH = /uilist/ # timeout(seconds) VITE_TIMEOUT = 15 diff --git a/.env.production b/.env.production index 0266faa..7b5f007 100644 --- a/.env.production +++ b/.env.production @@ -2,7 +2,7 @@ VITE_USE_MOCK = false # public path -VITE_PUBLIC_PATH = / +VITE_PUBLIC_PATH = /uilist/ # Delete console VITE_DROP_CONSOLE = true diff --git a/internal/vite-config/src/plugins/appConfig.ts b/internal/vite-config/src/plugins/appConfig.ts index d3a631f..7d50662 100644 --- a/internal/vite-config/src/plugins/appConfig.ts +++ b/internal/vite-config/src/plugins/appConfig.ts @@ -29,7 +29,7 @@ async function createAppConfigPlugin({ async configResolved(_config) { const appTitle = _config?.env?.VITE_GLOB_APP_TITLE ?? ''; // appTitle = appTitle.replace(/\s/g, '_').replace(/-/g, '_'); - publicPath = isBuild ? '/uilist/' : _config.base; + publicPath = _config.base; source = await getConfigSource(appTitle); }, async transformIndexHtml(html) {