trails/apps/planner/app/routes
Ullrich Schäfer 8fb7771223
Add withDb() helper for graceful DB error handling
Shared withDb() wrapper in @trails-cool/db catches database
connection errors and throws a 503 Response instead of crashing
the server. Re-throws React Router responses (redirects, data()).

Applied to Planner session routes — replaces manual try/catch.
Any route can use withDb(() => ...) for automatic 503 on DB failure.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 23:39:33 +01:00
..
api.route.ts Add BRouter proxy, rate limiting, and spec updates (tasks 5.1-5.2) (#11) 2026-03-22 22:43:47 +00:00
api.sessions.ts Add withDb() helper for graceful DB error handling 2026-03-24 23:39:33 +01:00
home.tsx Add GitHub Actions CI, wire ESLint, lock in Caddy 2026-03-22 12:55:12 +01:00
new.tsx Implement Planner-Journal handoff (Group 9) 2026-03-24 20:22:58 +00:00
session.$id.tsx Add withDb() helper for graceful DB error handling 2026-03-24 23:39:33 +01:00