Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React production build in a meteor app

i have developped an application React/Redux with the Meteor JS framework.

The installation of React in meteor is class (npm command) :

meteor npm install --save react

But when i check with the react-devtools extension, i see that React Version is the development build instead of production build.

(the message is "This page is using the development build of React. 🚧 ")

What have i to do to use the react production build instead in my meteor app ? i already tried to set environnement variables :

export NODE_ENV='production'

but the result is the same.

like image 702
Abdel Avatar asked Oct 29 '22 08:10

Abdel


1 Answers

Running the meteor with production flag e.g. meteor --production should mimic how the meteor app builds for production. To learn more about the deployment of the meteor apps read the meteor guide about deployment and monitoring.

like image 100
MokaHaiku Avatar answered Dec 01 '22 14:12

MokaHaiku