fix: local debug

This commit is contained in:
naiba
2024-12-09 23:11:17 +08:00
parent baf611ea94
commit d1fba95484
5 changed files with 52 additions and 57 deletions

View File

@@ -7,15 +7,15 @@ export default defineConfig({
plugins: [react()],
server: {
proxy: {
'^/api/v1/ws/.*': {
target: "ws://localhost:8008",
changeOrigin: true,
ws: true,
},
'/api': {
target: 'http://localhost:8008',
changeOrigin: true,
},
'/api/v1/ws': {
target: 'http://localhost:8008',
changeOrigin: true,
ws: true,
},
},
},
resolve: {