Reputation: 657
Is it possible to build react app for production using npm run build
without it making the site offline? I am using nginx to serve the react app and when I run the above command, I get Internal server
error until the build is finished. It would be nice if the old version of the app is served until the build is finished.
Upvotes: 1
Views: 662
Reputation: 9476
You shouldn't be building your application on the production server. Build it locally, then deploy it to production and this won't be an issue.
Upvotes: 3