fix: fix at tests + /api proxy
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user