websocket to web

This commit is contained in:
2024-10-20 19:14:33 -07:00
parent 51af825b27
commit 8e4a94f8c5
8 changed files with 274 additions and 12 deletions

View File

@@ -18,7 +18,12 @@ export default defineConfig({
server: {
port: 9000,
proxy: {
'/api': 'http://localhost:8080'
'/api': 'http://localhost:8080',
'/ws': {
target: 'ws://localhost:8080',
ws: true,
rewriteWsOrigin: true,
}
}
}
})