brackt/server
Chris Parsons 180aad1520
Fix postgres connection pool leak in development (#195)
In dev mode, viteDevServer.ssrLoadModule re-evaluates server/app.ts on
every request, creating a new postgres connection pool each time and
eventually exhausting Postgres's max_connections limit. Cache the client
on globalThis so HMR re-evaluations reuse the same pool.

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-21 09:57:53 -07:00
..
__tests__ Claude/redesign autodraft queue c4 kp r (#40) 2026-02-27 22:16:26 -08:00
app.ts Fix postgres connection pool leak in development (#195) 2026-03-21 09:57:53 -07:00
snapshots.ts Add oxlint linting setup with zero errors (#194) 2026-03-21 09:44:05 -07:00
socket.d.ts feat: integrate Socket.IO server with HTTP server and draft room functionality 2025-10-16 18:15:04 -07:00
socket.ts Add oxlint linting setup with zero errors (#194) 2026-03-21 09:44:05 -07:00
timer.ts fix: harden draft timer system with race-condition safety and DRY refactor (#34) 2026-02-23 23:23:24 -08:00
types.d.ts Add oxlint linting setup with zero errors (#194) 2026-03-21 09:44:05 -07:00
virtual-modules.d.ts feat: integrate Socket.IO server with HTTP server and draft room functionality 2025-10-16 18:15:04 -07:00