From 96b16b42e4f807d04ec743a5a4117a37a3f5e0d9 Mon Sep 17 00:00:00 2001 From: ehsanmim <115899665+ehsanmim@users.noreply.github.com> Date: Thu, 4 Jun 2026 19:57:24 +0200 Subject: [PATCH] fix(vite): proxy /plugin-ws WebSocket requests to the backend in dev (#757) Plugin WebSocket connections (e.g. the official Terminal plugin) hang in `npm run dev` because Vite proxies /api, /ws, and /shell but not /plugin-ws/*. Production is unaffected because the same Express server serves both the frontend and the WS gateway. Co-authored-by: Haile <118998054+blackmammoth@users.noreply.github.com> --- vite.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vite.config.js b/vite.config.js index 61967cbe..664fd307 100755 --- a/vite.config.js +++ b/vite.config.js @@ -37,6 +37,10 @@ export default defineConfig(({ mode }) => { '/shell': { target: `ws://${proxyHost}:${serverPort}`, ws: true + }, + '/plugin-ws': { + target: `ws://${proxyHost}:${serverPort}`, + ws: true } } },