Fix production deploy under /admin/ with correct Vite base path and server config.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-03 14:28:06 +02:00
co-authored by Cursor
parent a8501f4604
commit 32c15dbd1d
4 changed files with 40 additions and 4 deletions
+4 -3
View File
@@ -6,15 +6,16 @@ import vueJsx from '@vitejs/plugin-vue-jsx'
import vueDevTools from 'vite-plugin-vue-devtools'
// https://vite.dev/config/
export default defineConfig({
export default defineConfig(({ mode }) => ({
base: '/admin/',
plugins: [
vue(),
vueJsx(),
vueDevTools(),
...(mode === 'development' ? [vueDevTools()] : []),
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
})
}))