Fixing "Environment Variable references Secret" error during Next.js deployment on Vercel

Hello, I am trying to deploy my new project with the latest commit of my GitHub code and I get the following error:

Environment Variable “NEXT_PUBLIC_SUPABASE_URL” references Secret “next_public_supabase_url”, which does not exist.

I have imported my entire .env.local file including NEXT_PUBLIC_SUPABASE_URL from supabase and it still doesn’t accept it for some reason.

Can someone please help me?

The domain troubleshooting guide can help with most custom domain configuration issues. You might be able to use that guide to solve it before a human is available to help you. Then you can come back here and share the answer for bonus points.

You can also use v0 to narrow down the possibilities.

Did you check your project environment values?

The .env file imported correctly?

yes, everything looks imported correctly..

Hi @dtrakakis, does it happen only in one project or others as well? Do you have a Supabase Integration on this project?

Update: I’ve hidden this post on your request so it doesn’t come up in search results.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.