This commit is contained in:
2026-08-31 18:01:34 +08:00
parent 3ea59551db
commit bee439cf34
46 changed files with 1884 additions and 1898 deletions
+10 -2
View File
@@ -9,9 +9,9 @@ export default defineConfig(({ mode }) => ({
'@': resolve(__dirname, 'src'),
},
},
base: mode === 'development' ? '/' : '/static/',
base: '/',
build: {
outDir: '../static',
outDir: 'dist',
emptyOutDir: true,
},
server: {
@@ -21,6 +21,14 @@ export default defineConfig(({ mode }) => ({
target: 'http://localhost:8000',
changeOrigin: true,
},
'/health': {
target: 'http://localhost:8000',
changeOrigin: true,
},
'/html': {
target: 'http://localhost:8000',
changeOrigin: true,
},
},
},
}))