You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: auto-reconnect stale SQLite Cloud connection in getDb()
The cached Database client could hold a dead websocket after the
SQLite Cloud node auto-pauses (free tier) and resumes, making every
query fail with "Connection unavailable" until the process restarts —
which silently emptied /blog and broke CrawlProof webhook inserts.
Wrap the client's `sql` tagged-template so disconnect-class errors drop
the client and retry once on a fresh connection. Drop-in: all call
sites use only `db.sql`.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments