[Bug]: not picking the env
I have just created a new project using the default template i.e.
supa w next.js
and I have added these values NEXT_PUBLIC_SUPABASE_URL, NEXT_PUBLIC_SUPABASE_ANON_KEY
in my .env.local
file, but I am still seeing this message thatSupabase environment variables required
I have also restarted the server.
TIA 🙏


17 Replies
@Boby Just change the file name to from .env.local to .env
thanks for your help @OakRatos I have changed the file name to .env but still seeing the same error


@Boby Can you share the project url in pm?
Hi @OakRatos https://github.com/Boby900/supa-bob
Did you get this working?
Nope, I am still facing the same issue
I don't see any errors. I simply cloned your repo and updated values in .env file
Are you sure your
.env
file is in your project root?Yes you can refer this ss,

Don't know why didn't work for me, I will try creating new project in the dashboard and will see if it's working with the new creds.
Delete your .next folder and rerun the server
Sometimes its a cache issue
no luck

Deleted the .next folder and reinstalled but still facing the same issue
Works fine for me. Again just cloned your repo and added values in .env file


Are you using the correct syntax in env files? Create a copy of .env.example file and name it .env
Then add values in .env file
Okay, I am able to console log the credentials, but don't know what's the issue, will get back to you if I will be able to solve it