Appearance
Deploy to Cloudflare Pages
Cloudflare Pages serves static sites from Cloudflare's worldwide network, including data centres close to East Africa, and its free plan allows commercial use with unlimited bandwidth.
Pages and Workers
In the Cloudflare dashboard, Pages lives under Workers & Pages. Cloudflare is gradually steering new projects towards Workers with static assets; Pages keeps working and is the simplest option for a static site like this. The steps below use Pages.
Option A: from your Git repo (automatic deploys)
You need your site in your own private repo first (how).
Sign in at dash.cloudflare.com → Workers & Pages → Create → Pages → Connect to Git.
Authorise GitHub (or GitLab) and select your repo.
Build settings:
Setting Value Framework preset Vite (or None) Build command npm run buildBuild output directory distUnder Environment variables, add
NODE_VERSION=22(Cloudflare also reads.nvmrc, but setting it explicitly avoids surprises).Click Save and Deploy. Your site appears at
https://<project>.pages.dev.
Every push to your production branch redeploys; other branches get preview URLs.
Option B: direct upload (no Git needed)
- Build locally:
npm install && npm run build. - Workers & Pages → Create → Pages → Upload assets (Direct Upload).
- Name the project, then drag in the
distfolder (or a ZIP of its contents). - Click Deploy site.
To update, open the project → Create deployment and upload the new dist.
Option C: Wrangler CLI
bash
npm run build
npx wrangler login
npx wrangler pages deploy dist --project-name=my-siteThe first run creates the project. Later runs publish a new version.
Custom domain
Project → Custom domains → Set up a custom domain. If your domain's DNS is already on Cloudflare, the record is added for you; otherwise Cloudflare shows the CNAME to create. HTTPS is automatic. See Custom domains & HTTPS.