How to deploy Meteor React app with production build?

I’m using Galaxy deploy now.
but I can’t figure out how to deploy react app with production mode.

The guide said that do not use --production flag to build.

How can I set taht flag?

just deploy. why do you want to use deploy unminified? perhaps you have a misunderstanding about production mode. deploy is for deploying into production. There is no need for any extra settings. The production mode flag is not actually for production–it’s for minification locally in order to debug special case problems with minification and load order.

1 Like

Thanks for your reply.
Yeah, there is not a big problem with just deploy but I got below warning message in console.

Error: React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://fb.me/react-perf-use-the-production-build
2 Likes