Database connection from Vercel to Supabase

Hi @pawlean, this is not a DNS issue. Supabase no longer provides IPv4 support by default for their databases; they can only be accessed via IPv6:

https://supabase.com/docs/guides/troubleshooting/supabase–your-network-ipv4-and-ipv6-compatibility-cHe3BP

@urilyakubov In this case you have a DNS resolution issue because the DNS record of the database have only the AAAA record and not the A one, but this is intended to only accept IPv6 connections

The Vercel Functions does not support IPv6 connections to other hosts. The only solution is to purchase the IPv4 Add-On on Supabase or use a different database provider that still supports IPv4.