I am trying to get my environmental variables in Next js
My file is named .env.local
and contains:
SPOTIFY_CLIENT_ID=123abc
SPOTIFY_CLIENT_SECRET=123abc
I used process.env.SPOTIFY_CLIENT_ID
to access them but I have been getting undefined
.
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
I am trying to get my environmental variables in Next js
My file is named .env.local
and contains:
SPOTIFY_CLIENT_ID=123abc
SPOTIFY_CLIENT_SECRET=123abc
I used process.env.SPOTIFY_CLIENT_ID
to access them but I have been getting undefined
.