I want to set the NODE_ENV flag to production in order to use the production version of react and related UI libraries for doing some profiling locally.
I don’t care about the negative performance of meteor in watch mode, I simply want to compare two versions of my UI code between each other, and I would like therefore to still use the meteor run mode.
However it seems that meteor run overrides the environment variable if I try to set it before running meteor. No matter what I do, it seems that meteor run always sets it to development.
Is there a way to tell meteor to pass NODE_ENV=“production” to node while in watch mode?
Thanks.