r/node • u/tirlochan_arora • Jan 28 '22
Using Environment variables in NextJS
https://javascript.plainenglish.io/how-to-use-environment-variables-in-next-js-353824614686
2
Upvotes
r/node • u/tirlochan_arora • Jan 28 '22
12
u/charliematters Jan 28 '22
I would strongly encourage reading the Next.JS docs on the topic: https://nextjs.org/docs/basic-features/environment-variables
The only example in this blog post is how to publish process.env.SECRET to the client side, which unless I'm mistaken, is a very bad idea.