environment variables undefined issues
Unanswered
Black carp posted this in #help-forum
Black carpOP
Hi there,
I got two api keys which cant seem to get to work when using process.env.KEY instead it only works with process.env.NEXT_PUBLIC which I don't want as this exposes the key to client in the browser.
I got two api keys which cant seem to get to work when using process.env.KEY instead it only works with process.env.NEXT_PUBLIC which I don't want as this exposes the key to client in the browser.
2 Replies
Giant panda
you can store your env keys in .env.local