Next.js Discord

Discord Forum

Supabase connection error on Vercel deploy (Next.js 15) – ENOTFOUND

Unanswered
Argentine ant posted this in #help-forum
Open in Discord
Argentine antOP
Hey everyone,

I’m running into a weird issue using Next.js 15 with Supabase on Vercel.
Everything works fine on localhost, but after deploying to Vercel, my app can’t connect to the database and throws this error:

[Error: getaddrinfo ENOTFOUND db.zyioyfb------zzvkz.supabase.co] {
  errno: -3007,
  code: 'ENOTFOUND',
  syscall: 'getaddrinfo',
  hostname: 'db.zyioyfb------zzvkz.supabase.co'
}


Stack: Next.js 15, Supabase, Vercel

Local: works perfectly

On Vercel: database connection fails with the error above

I already double-checked my environment variables and Supabase endpoint.
Has anyone seen this before or know what’s missing?
Any tips about Vercel configs, DNS settings, or Supabase tweaks would be super helpful!

Thanks a lot for any advice!

0 Replies