brackt/server
Claude 79201820a9
Consolidate server postgres connections into one shared pool
Four separate postgres() clients were open simultaneously (app, timer,
snapshots, socket), each defaulting to 10 connections, exhausting the
database's max_connections limit. Replaced with a single shared lazy-
initialized client in server/db.ts using a Proxy to defer the
DATABASE_URL check until first use (preserving test compatibility).

Also bumps the CS2 Champions Stage stochastic test from 200 → 1000
iterations to eliminate flakiness.

https://claude.ai/code/session_019w21Nkf5TvTZHH6oVHaQXR
2026-04-05 19:52:46 +00:00
..
__tests__ Claude/redesign autodraft queue c4 kp r (#40) 2026-02-27 22:16:26 -08:00
app.ts Consolidate server postgres connections into one shared pool 2026-04-05 19:52:46 +00:00
db.ts Consolidate server postgres connections into one shared pool 2026-04-05 19:52:46 +00:00
logger.ts Replace console.* with structured logger, fix no-inferrable-types (closes #98) (#199) 2026-03-21 13:41:39 -07:00
snapshots.ts Consolidate server postgres connections into one shared pool 2026-04-05 19:52:46 +00: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 Consolidate server postgres connections into one shared pool 2026-04-05 19:52:46 +00:00
timer.ts Consolidate server postgres connections into one shared pool 2026-04-05 19:52:46 +00: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