React hosting guide
Cloudflare React hosting
Cloudflare is a strong fit for static React apps and edge-first framework deployments when you want fast global delivery and DNS in one place.
Recommended starting point: Cloudflare Workers Static Assets
What matters most
Workers Static Assets can serve built HTML, CSS, JavaScript, images, robots.txt, sitemaps, redirects, and custom headers from the deployed output directory.
Do not enable SPA fallback for content sites unless you intentionally want every unknown URL to return the same app shell.
When static assets are not enough, add a narrow Worker script for edge behavior such as retired API responses, bot filtering, or request normalization.
Deployment steps
- Create a wrangler.jsonc file with the Worker name, compatibility date, and dist asset directory.
- Build the React or Astro site into dist.
- Deploy with Wrangler and attach reacthost.com as the custom domain.
- Keep DNS proxied through Cloudflare and add www as a proxied CNAME.