Env Vars unreachable by my project

Runtime Error
Your project’s URL and Key are required to create a Supabase client!
Check your Supabase project’s API settings to find these values
Supabase api
Call Stack
at Ce (@supabase/ssr)
at updateSession (/lib/supabase/proxy) at updateSession (/lib/supabase/proxy) at middleware (/middleware) at middleware (/middleware)

my env vars are defined, but the preview cannot reach them. And i cant upload a fix, because i dont know if this will broke the website. Ive tried multiple prompts, but the sys is trying to keep going without the supabase connectio , but the project cannot work without it.

Can some staff member help me?

Hi @franciscobsilva-6223, welcome to the Vercel Community!

I’m sorry that you’re facing this issue. Could you confirm the following:

  • Are you using Supabase integration with this project?
  • Are you using sensitive secrets or storing them as non-sensitive values?
  • Can you confirm if the variable is set on the Preview environment?

Yes, im using supabase.

I am storing the keys at env vars

The variable is set on the preview

Just the preview isnt working, i published and everything is working, except the preview

I see. Did you create a new deployment for the preview environment as well?

For debugging, can you try adding another environment variable with a dummy value to the preview environment and see if that works? This will help us narrow it down.