Switch backend database wiring from Render Postgres to Supabase#60
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
aichannode
approved these changes
Jul 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Postgres instance. Adds
directUrlto the Prisma datasource soprisma migrate deployuses a session-mode connection while normalruntime queries go through a pooled connection.
render.yamlto match: drop thedatabases:block and thefromDatabasewiring forDATABASE_URL(both pointed at the oldRender Postgres), and declare
DATABASE_URL/DIRECT_URLasdashboard-managed (
sync: false) env vars instead.Why
The backend's database was migrated to Supabase, but
render.yamlstill auto-wired
DATABASE_URLto Render's own Postgres resource,causing
prisma migrate deployto fail withdatabase server` once that database was no longer in use.
Deploy notes (manual, outside this PR)
On the Render dashboard,
forgeng-backend→DATABASE_URL→ Supabase Transaction pooler string (port 6543)DIRECT_URL→ Supabase Session poolerBoth must use Supabase's pooler hostnames, n
db.<ref>.supabase.codirect-connection host — that host isIPv6-only, and Render's network doesn't supp
caused connections to hang indefinitely instead of failing fast.
Test plan
curl https://forgeng-backend.onrender.com/api/healthzreturns{"status":"ok","database":"up"}https://forgeng-frontend.vercel.app/sign-upsucceeds