SupabaseS
Supabase11mo ago
Muezz

Supabase behaves as though it cannot find the env variables

I have a Nextjs app newly hosted in AWS yesterday. Previously it was in Vercel and worked fine.

I have set up all of the env variables and all other pages work fine. All other API calls to Supabase are operational. But in one particular route, I get this error:
"Your project's URL and Key are required to create a Supabase client!\n" +
    '\n' +
    "Check your Supabase project's API settings to find these values\n" +
    '\n' +
    'https://supabase.com/dashboard/project/_/settings/api',


What could be the cause?
Was this page helpful?