SupabaseS
Supabase4mo ago
Bings

Can you use `createClient` with the Transaction pooler?

In node.js, I'm trying to use @supabase/supabase-js's createClient, however this is in a serverless function so I want to use the Transaction pooler provided by supabase (https://supabase.com/dashboard/project/_?showConnect=true)

In supabase it says to use this URI: postgres://postgres:[YOUR-PASSWORD]@db.xxxxxxxxxxxxxxx.supabase.co:6543/postgres

But if I pass that to createClient, it errors saying: Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.

Am I meant to be using a different lib by any chance?
Was this page helpful?