Mirrors #422 (fail-loud DB URL) and #430 (health-check pool reuse) for the planner app, which still had: - two \`process.env.DATABASE_URL ?? \"postgres://trails:trails@localhost:5432/trails\"\` call sites that would silently boot a misconfigured prod against localhost - a /health handler that opened a fresh postgres client + connection on every probe (no pool, per-call TCP/TLS handshake) Both now route through @trails-cool/db's \`getDatabaseUrl()\` (refuses to start in production if unset / matches the dev default; E2E=true is the opt-out) and a module-level singleton client (max: 2, idle_timeout: 30). Full repo: pnpm typecheck, pnpm lint, pnpm test all green. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| journal | ||
| mobile | ||
| planner | ||