This repo is a template for redirecting domains using Cloudflare Pages.
$ yarn
You will have to connect the site to the domain's project in Cloudflare Pages. You can run this command to list the available projects in Cloudflare:
npx wrangler pages project list
Change all instances of example.com
to your domain name. (Search all the files for that string.)
$ yarn deploy
All the responses should be 301
.
$ yarn test