Skip to content

fix: restore page loading and remove completed history importer - #169

Merged
f0rr0 merged 2 commits into
nextfrom
f0rr0/fix-production-loading
Sep 27, 2026
Merged

f0rr0 merged 2 commits into
nextfrom
f0rr0/fix-production-loading

Conversation

@f0rr0

@f0rr0 f0rr0 commented Sep 27, 2026

Copy link
Copy Markdown
Owner

The new concurrent token reads exposed Postgres.js query pipelining incompatibility with Supabase transaction pooling, leaving dynamic pages waiting until Vercel returned a 504. Use the Supabase session endpoint in the shared database client, keeping one connection per instance and the existing idle timeout. Share the token read across views within each render.

Validated with 289 passing tests, lint, both Knip passes, typecheck, and a production build. Reproduced the hang against the production transaction pooler using read-only queries; the session endpoint completed all queries, including 12 mixed reads/transactions. Locally rendered /, /work, and /tokens against production data with empty caches; subsequent requests completed in 70–190 ms.

Remove the completed one-time history import script and return db:migrate to Drizzle only. Fresh databases initialize GitHub history on their first normal publication. No schema changes or data migration. Session pooling reserves one backend connection per active instance, released after the existing 20-second idle timeout.

@vercel

vercel Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
f0rr0-github-io Ready Ready Preview Sep 27, 2026 8:37pm UTC

@f0rr0
f0rr0 merged commit 562defe into next Sep 27, 2026
3 of 4 checks passed
@f0rr0
f0rr0 deleted the f0rr0/fix-production-loading branch September 27, 2026 20:35

This branch was successfully deployed

1 active deployment
Preview — ec859280 Deployed Sep 27, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant