diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 50e2056..0e4d44b 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -6,6 +6,12 @@ export default defineConfig({ plugins: [react(), tailwindcss()], server: { port: 5173, + watch: { + // Polling keeps HMR reliable on WSL, VM, and bind-mounted/shared filesystems + // where native file events can be dropped, causing updates only after refresh. + usePolling: true, + interval: 250, + }, proxy: { // /api/v1/ws/... is a WebSocket endpoint under the same /api prefix, // so we must enable ws here or the upgrade handshake dies at the proxy.