How to use process.env variables correctly in a webpack-based NodeJS app deployed to Heroku?

Muhammad - Feb 6 '23 - - Dev Community

You should set "target":"node" in the webpack.config.json file.

. . . . . . . . . . . . . . . . . . . .