that's fun to see a lot of upvoted answers, which relies on process.env.SOMETHING that would not work on every-environment, especially on production (where you have a static build served by nginx for example)
process.env.SOMETHING