Amend API path

This commit is contained in:
2025-07-15 14:45:22 +02:00
parent 00759473f2
commit c942450e86
4 changed files with 18 additions and 13 deletions

View File

@@ -24,6 +24,16 @@ export default defineConfig({
'@': path.resolve(__dirname, './src'),
}
},
server: {
proxy: {
'/api': {
target: 'http://localhost:8080',
changeOrigin: true,
secure: true,
rewrite: (path) => path.replace(/^\/api/, '')
}
}
},
build: {
// @ts-ignore
assetsInclude: [