fix(web): enable websocket proxying in vite dev server

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
tao.chen
2026-07-03 14:47:43 +08:00
co-authored by Claude
parent 09241b3350
commit 09150c2a7d
+3 -1
View File
@@ -18,7 +18,9 @@ export default defineConfig({
},
server: {
proxy: {
"/api": { target: backendTarget, changeOrigin: true },
// ws:true is required for the terminal WebSocket to be proxied to the
// Go backend in dev. http-only proxies strip the Upgrade header.
"/api": { target: backendTarget, changeOrigin: true, ws: true },
"/healthz": { target: backendTarget, changeOrigin: true },
},
},