Why is process.env returning an empty object, while process.env.prop returns the prop value?
The issue with process.env variable being empty in browser is because browser doesn’t have real access to the process of the node.js. It’s run inside the browser though. Usage of process.env.ANYTHING is usually achieved by plugins like https://webpack.js.org/plugins/define-plugin/ which just simply replace any occurrence of process.env.ANYTINHG with env variable during BUILD time. It really does … Read more