Drizzle TeamDT
Drizzle Teamโ€ข2y ago
luis

Drizzle ORM + Supabase Enforce SSL

I'm trying to connect with a direct pool connection (transaction mode). I'm deploying to Supabase Deno functions.

This is my URL: postgres://postgres.{user}:[YOUR-PASSWORD]@aws-0-us-west-1.pooler.supabase.com:6543/postgres
const client = postgres(url, { prepare: false });
const db = drizzle(client);

Supabase returns "SSL connection is required"

I tried appending the sslmode in the url, but nothing has worked. ?sslmode=no-verify,strict,verify-full etc.
How can I connect to Supabase with Drizzle using SSL?
Was this page helpful?