Deploy Website to Cloudflare Pages

The website is built with Astro and produces static files. Cloudflare Pages is the recommended deployment platform.

Prerequisites

1. Create Pages Project

  1. Login to Cloudflare Dashboard → Workers & PagesCreate
  2. Select PagesConnect to Git
  3. Select your GitHub repository

2. Build Configuration

SettingValue
Build commandnpm ci && npm run build --workspace=website
Output directorywebsite/dist
Root directory/ (keep default)
Node.js version22

Set Node.js version: Add NODE_VERSION = 22 in Environment variables.

3. Environment Variables

In Cloudflare Pages → SettingsEnvironment variables, add:

PUBLIC_BACK_END=https://api.yourdomain.com
PUBLIC_TITLE=ReadyStart
...

See Environment Variables for the full list.

4. Custom Domain

  1. Pages project → Custom domainsSet up a custom domain
  2. Enter your domain, e.g. yourdomain.com
  3. Cloudflare will automatically add DNS records and provision SSL

Deployment Triggers

Notes