How to use process.env variables correctly in a webpack-based NodeJS app deployed to Heroku?
You should set "target":"node" in the webpack.config.json file.
Tags: node, heroku, javascript, news