Not sure if I missed this in the article, but one thing I like to do is have a default that is set if no environmental variable is found. That is, if it’s a non-secure type value, I like to default it to something w/o having to set an environmental variable in production. I modified it like this:
Thank you for this! What about running the app from a script? I use
npm start to run my app. The script is
webpack-dev-server --config ./build/webpack.debug.js --inline --progress
Where the app is running at
http://localhost:8082 is it possible to use this in that scenario? Would much rather do it this way than have to attach with the config as I’m doing now.