diff --git a/ui/chat.html b/ui/entry/chat/index.html similarity index 100% rename from ui/chat.html rename to ui/entry/chat/index.html diff --git a/ui/index.html b/ui/entry/system/index.html similarity index 100% rename from ui/index.html rename to ui/entry/system/index.html diff --git a/ui/env/.env b/ui/env/.env index 3fadebde2..815ded3ec 100644 --- a/ui/env/.env +++ b/ui/env/.env @@ -2,4 +2,4 @@ VITE_APP_NAME=ui VITE_BASE_PATH=/ui/ VITE_APP_PORT=3000 VITE_APP_TITLE = 'MaxKB' -VITE_INPUT="index.html" \ No newline at end of file +VITE_ENTRY="entry/system/index.html" \ No newline at end of file diff --git a/ui/env/.env.chat b/ui/env/.env.chat index 5aef14a8b..34e86c5b4 100644 --- a/ui/env/.env.chat +++ b/ui/env/.env.chat @@ -2,4 +2,4 @@ VITE_APP_NAME=chat VITE_BASE_PATH=/chat/ VITE_APP_PORT=3000 VITE_APP_TITLE = 'MaxKB' -VITE_INPUT="chat.html" \ No newline at end of file +VITE_ENTRY="entry/chat/index.html" \ No newline at end of file diff --git a/ui/vite.config.ts b/ui/vite.config.ts index ee3d9215c..dfaf1654d 100644 --- a/ui/vite.config.ts +++ b/ui/vite.config.ts @@ -12,7 +12,6 @@ const envDir = './env' // https://vite.dev/config/ export default defineConfig(({ mode }) => { - console.log('ssss') const ENV = loadEnv(mode, envDir) const prefix = process.env.VITE_DYNAMIC_PREFIX || ENV.VITE_BASE_PATH const proxyConf: Record = {} @@ -41,7 +40,7 @@ export default defineConfig(({ mode }) => { lintOnSave: false, base: prefix, envDir: envDir, - plugins: [vue(), vueJsx(), DefineOptions(), createHtmlPlugin({ template: ENV.VITE_INPUT })], + plugins: [vue(), vueJsx(), DefineOptions(), createHtmlPlugin({ template: ENV.VITE_ENTRY })], server: { cors: true, host: '0.0.0.0', @@ -52,7 +51,7 @@ export default defineConfig(({ mode }) => { build: { outDir: `dist${ENV.VITE_BASE_PATH}`, rollupOptions: { - input: path.resolve(__dirname, ENV.VITE_INPUT), + input: path.resolve(__dirname, ENV.VITE_ENTRY), }, }, resolve: {