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

  1. Open the Connect dialog: Vovy clicks Connect at the top of your Supabase project, which lists every connection string for your project.
  2. 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.
  3. 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.
  4. 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.
  5. 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 guide