Watch: Get the right database connection string | Vovy
Watch Vovy do it on a Mac: "Which Supabase connection string do I use for Prisma on Vercel?". Pick the right Supabase connection string, direct or pooled, session or transaction mode, and fix common connection errors.
"Which Supabase connection string do I use for Prisma on Vercel?"
Pick the right Supabase connection string, direct or pooled, session or transaction mode, and fix common connection errors.
What happens in the video
- Open the Connect dialog: Vovy clicks Connect at the top of your Supabase project, which lists every connection string for your project.
- Explain the three options: A comparison card: direct connection, session pooler on port 5432, and transaction pooler on port 6543. A pooler shares a few connections among many requests.
- Pick the one for your setup: Serverless hosts like Vercel need the transaction pooler. The direct connection is IPv6-only by default, which many networks can't reach.
- Fill in the password safely: Vovy puts the string in your .env with the real password, encoding special characters like @ and # that otherwise break the URL.
- Test the connection: Vovy runs a test query from your app and confirms it connects locally and from your deployed app.
Read the step-by-step guideLoading...