TypeError supabaseServerClient is not a function

Hey!

I'm upgrading my supabase-auth-helpers from @supabase/supabase-auth-helpers to @supabase/auth-helpers-nextjs and I've follwed the migration guide.

The problem I'm having is my getServerSideProps function that looks like this:
const { data, error } = await supabaseServerClient(ctx)
      .from('vendor_connections')
      .select('*');


But I get a 404 and Page not found with the following error message:
TypeError: supabaseServerClient is not a function

Has someone encountered the same problem?
Was this page helpful?