From the course: Building Production-Ready React Apps: Setup to Deployment with Firebase

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Create a production build and deploy your site to the cloud

Create a production build and deploy your site to the cloud

- So there is one step that we want to do before we can actually deploy our app to the Cloud, and this is to create a production build. We want to create a production build because we want to actually deploy and serve an optimized production build of our React single page application. So let's do that by running, I'm going to show you which, how we're going to do that. It's going to be with this line of command, "build." We're going to run "npm run build," and it's going to automatically create a new directory, and inside we're going to find the compressed and optimized version of our React single page application. It has also an entry point, so it's going to show at some points like right here. And also you see that this is everything is compressed and optimized, and same also, if you need a 404, that's it. And we need to do another thing because now we want to make sure that we deploy and serve from this directory.…

Contents