Skip to content
This repository was archived by the owner on Jun 26, 2026. It is now read-only.

Commit 8e80930

Browse files
kvapsclaude
andcommitted
fix(console): proxy WebSockets in dev so the VNC console connects
The dev server's /apis (and /api) proxy lacked ws: true, so the VNC console's WebSocket upgrade was never forwarded to kubectl proxy and the console hung on 'Connecting…'. Enable ws on both proxy entries. Co-Authored-By: Claude <[email protected]> Signed-off-by: Andrei Kvapil <[email protected]>
1 parent bd62ef7 commit 8e80930

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎apps/console/vite.config.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import path from "path"
66
/**
77
* The dev server proxies `/api` and `/apis` to `kubectl proxy --port 8001`
88
* (over HTTP, not HTTPS — kubectl proxy terminates TLS locally).
9-
* Watch uses plain chunked-encoding streams, so no WebSocket upgrade is needed.
9+
* The VNC console streams over a WebSocket, so `ws: true` is set on the
10+
* proxies below to forward the upgrade to kubectl proxy.
1011
*/
1112
export default defineConfig({
1213
plugins: [react(), tailwindcss()],
@@ -21,10 +22,12 @@ export default defineConfig({
2122
"/apis": {
2223
target: "http://localhost:8001",
2324
changeOrigin: true,
25+
ws: true,
2426
},
2527
"/api": {
2628
target: "http://localhost:8001",
2729
changeOrigin: true,
30+
ws: true,
2831
},
2932
},
3033
},

0 commit comments

Comments
 (0)