Help on using worker with an existing Reactjs project

Hello everyone, am looking for a resources on migrating from an existing codebase to Cloudflare workers.
1 Reply
Chaika
Chaika3mo ago
Is it purely just a static react site? If so, I would go with Pages over Workers. Pages has unlimited static requests, you can hook it up with your Github repo to run automatic deployments, and preview deployments, etc. There's a guide for React here: https://developers.cloudflare.com/pages/framework-guides/deploy-a-react-site/ For an existing one, it's as simple as creating a Pages Project with that repo, setting up your root directory, build command, and the output folder where your static html/css/js is, and Pages will deploy it to the edge.
Cloudflare Docs
Deploy a React site · Cloudflare Pages docs
React is a popular framework for building reactive and powerful front-end applications, built by the open-source team at Facebook.