fix: enable WebSocket proxying in Vite dev server

Enables ws: true for /api proxy to properly forward WebSocket connections through the development server in web mode. This ensures real-time features work correctly when developing in browser mode.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
DhanushSantosh
2026-01-18 01:52:11 +05:30
parent b0b49764b9
commit fdad82bf88

View File

@@ -72,6 +72,7 @@ export default defineConfig(({ command }) => {
'/api': {
target: 'http://localhost:3008',
changeOrigin: true,
ws: true,
},
},
},