Next.js Discord

Discord Forum

Cannot access env of vercel

Answered
NanotechPikachu posted this in #help-forum
Open in Discord
Avatar
Hi.

I have made env in VERCEL website which as per told, can be accessed in our code by editing the vercel.json to such

{
 "env": {
    "CLIENT_SECRET": "@CLIENT_SECRET",
    "CLIENT_ID": "@CLIENT_ID"
  }
}


I have made env in vercel too but, when i deploy it to vercel, it always says that ENV NOT FOUND. How to make it right?
Answered by NanotechPikachu
I got it. The vercel.json thing wasn't needed it seems
View full answer

5 Replies

Avatar
Image
Image
Relevant screenshot i assume they are ^^
Avatar
Helpy?
Avatar
I got it. The vercel.json thing wasn't needed it seems
Answer