fix: websocket proxy

This commit is contained in:
hamster1963
2024-11-23 17:31:00 +08:00
parent 1bda0cc3b7
commit d1558b71c4
5 changed files with 61 additions and 26 deletions

View File

@@ -10,4 +10,13 @@ export default defineConfig({
"@": path.resolve(__dirname, "./src"),
},
},
server: {
proxy: {
'/api/v1/ws': {
target: 'http://localhost:8008',
changeOrigin: true,
ws: true,
},
}
}
});