I downloaded my app from Glitch to try to debug an issue, and I had to force it into development mode. Not being a node person it took me a while to figure out that I was supposed to do this via an environment variable.
And in that process I found that the preferred way to set an environment variable with webpack is something like the below stanza (which worked great when added to my webpack.config.js
plugins: [
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('development')
})
],