From 4c79f2fb03186bab3307cfe972c8078352e36c5a Mon Sep 17 00:00:00 2001 From: zhaojs Date: Wed, 31 Jul 2024 09:34:11 +0800 Subject: [PATCH] fix:deylop --- .env.docker | 2 +- .env.production | 2 +- internal/vite-config/src/plugins/appConfig.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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) {