© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•13mo ago•
3 replies
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',
"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?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Passing Supabase ENV variables to the migrations file
SupabaseSSupabase / help-and-questions
14mo ago
Supabase brancing - vercel preview env variables get overwritten
SupabaseSSupabase / help-and-questions
4w ago
Supabase UI cannot find API keys
SupabaseSSupabase / help-and-questions
3mo ago
supabase-js: Error: Cannot find module 'tslib'
SupabaseSSupabase / help-and-questions
4mo ago