Deploy a Create React App Static Site
You can deploy a Create React App static site on Render in under a minute. Your site is served over a lightning-fast global CDN, comes with fully managed SSL certificates from Let’s Encrypt, and supports custom domains out of the box.
The sample app for this quick start is deployed at https://cra.onrender.com.
- Use your existing React repository, or fork our sample React repo on GitHub or GitLab.
- Create a new Web Service on Render, and give Render permission to access your new repo.
Use the following values during creation:
That’s it! Your app will be live on your Render URL as soon as the build finishes.
You can do this easily by defining a Rewrite Rule for your static site. Go to the Redirects/Rewrites tab for your service and add a rule with the following values:
The result should look like this:
See Specifying a Node Version if you need to customize the version of Node.js used for your site.