Skip to content
/ cf-react Public

Tutorial project to use Cloudflare Workers to deploy and serve a full static site developed in React, serverless.

Notifications You must be signed in to change notification settings

oxy86/cf-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serverless React app on Cloudflare Workers

In this example project, we use Wrangler and Cloudflare Workers to deploy and serve a static site developed in React (bootstrapped with Create React App).

Cloudflare Workers is a great platform to deploy static sites: the application will be distributed to hundrends of locations around the world, and served directly from Cloudflare’s CDN at a server incredibly close to your users.

For a step-by-step tutorial to reproduce this project, read my blog post:

Serverless: How to create and serve a static React site directly from Cloudflare’s CDN using Workers

Alternatively, if you already have signed up for a CF Workers account, installed Node.js and the wrangler tool, you can just clone this repo in your local computer, edit wrangler.toml to update it your CF account id, then

npm build

and

wrangler publish

to publish it. Just like that, you will have your serverless React app running on Cloudflare.

About

Tutorial project to use Cloudflare Workers to deploy and serve a full static site developed in React, serverless.

Topics

Resources

Stars

Watchers

Forks