📝 Edit page
➕ Add page
CloudFare Pages
How to set up a CloudFare Pages static site
Topics
Pages
Content
How to set up a website at the pages.cloudflare.com homepage. Which is similar to a Netlify or GH Pages site.
See also my CloudFare Pages resources.
Follow the Getting Started docs page for more detail than here.
Steps
Create account
Sign up for a free CloudFare account on cloudflare.com
Configure site
Go to your CloudFare dashboard. Or click Sign Up from the [CloudFare Pages][] page.
Set up your site to deploy and host:
- Choose your repo.
- Enter your build config options. Use a preset or enter your own values.
- e.g. from the Create React App Framework preset:
build command
:npm run build
build output directory
:build
- e.g. from the Create React App Framework preset:
- Click continue and wait for your site to build.
- Find the deploy URL and visit your site.
I set up my react-quickstart
repo and got a generated URL like this:
https://89019813.react-quickstart.pages.dev/
Set custom URL
Follow the Getting Started page for want to add a custom URL, to serve your site under that a domain that you own.