Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Revert of production env enforcement #2341
The change made in d8dd446 forces the
By retaining the original code, and defaulting to the
To add another take here, what about instead, something like the following?
Webpacker.with_node_env(ENV.fetch("NODE_ENV", "production")) do # ...
I believe this would maintain the spirit of the change in question, which was to remove global env pollution, i.e.