Skip to content

How to use environment variables on the server? #17188

Discussion options

You must be logged in to vote

I found the problem. I also called process.env.NODE_ENV (an environment variable I had removed). I would expect calling this would just give me 'undefined'. Having an error saying 'process is not defined' threw me on a wild-goose-chase, as I expected this to mean that it couldn't find... well... process... not that it couldn't find the environment variable I was searching for

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AdagioB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant