DEV Community

Muhammad
Muhammad

Posted on

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.

Top comments (0)

Why You Need to Study Javascript Fundamentals

The harsh reality for JS Developers: If you don't study the fundamentals, you'll be just another β€œCoder”. Top learnings on how to get to the mid/senior level faster as a JavaScript developer by Dragos Nedelcu.