fix: exclude routeTree.gen.ts from vite watch to prevent infinite reload loop

This commit is contained in:
outsourc-e
2026-03-16 13:36:02 -04:00
parent da883f0670
commit f3473d1ed5

View File

@@ -256,6 +256,11 @@ const config = defineConfig(({ mode, command }) => {
// Force IPv4 — 'localhost' resolves to ::1 (IPv6) on Windows, breaking gateway connectivity
host: '0.0.0.0',
allowedHosts: true,
watch: {
// Exclude generated route tree — TanStack Router's file watcher
// detects its own output as a change → infinite regeneration loop
ignored: ['**/routeTree.gen.ts'],
},
proxy: {
// WebSocket proxy: clients connect to /ws-gateway on the ClawSuite
// server (any IP/port), which internally forwards to the local gateway.