fix: fix at tests + /api proxy

This commit is contained in:
2026-08-17 13:04:29 +07:00
parent 76f26430ba
commit 4e788312ab
5 changed files with 33 additions and 19 deletions

View File

@@ -7,10 +7,11 @@ export default defineConfig({
server: {
port: 5173,
proxy: {
'/auth': { target: 'http://127.0.0.1:8000', changeOrigin: true },
'/plans': { target: 'http://127.0.0.1:8000', changeOrigin: true },
'/orders': { target: 'http://127.0.0.1:8000', changeOrigin: true },
'/users': { target: 'http://127.0.0.1:8000', changeOrigin: true },
'/api': {
target: 'http://127.0.0.1:8000',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),
},
},
},
test: {