From a4f5ad3a94fd6326e2f321e9a7d8c31af696e2f4 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Thu, 7 Dec 2023 19:08:35 -0600 Subject: [PATCH] Proxy websockets in devcontainers (#8886) * proxy websockets * remove whitespace --- web/vite.config.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/web/vite.config.ts b/web/vite.config.ts index 930c0f36e..ee33d491a 100644 --- a/web/vite.config.ts +++ b/web/vite.config.ts @@ -19,7 +19,16 @@ export default defineConfig({ }, '/exports': { target: 'http://localhost:5000' - } + }, + '/ws': { + target: 'ws://localhost:5000', + ws: true, + }, + '/live': { + target: 'ws://localhost:5000', + changeOrigin: true, + ws: true, + }, } }, plugins: [ @@ -43,4 +52,4 @@ export default defineConfig({ restoreMocks: true, globals: true, }, -}); +}); \ No newline at end of file