Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading