Deploy to Cloudflare Pages
Atlas builds as a static Astro site, which maps directly to Cloudflare Pages.
Option 1: Deploy from Git (recommended)
- Push your repo to GitHub.
- Open Cloudflare Pages new project flow:
https://dash.cloudflare.com/?to=/:account/pages/new/provider/github
- Connect your repository and use:
- Framework preset:
Astro - Build command:
npm run build - Build output directory:
dist - Node.js version:
22.12.0or newer
- Framework preset:
Option 2: Deploy from CLI
npx wrangler login
npm run cf:deployThe default command uses project name atlas:
"cf:deploy": "npm run build && wrangler pages deploy dist --project-name atlas"If your Cloudflare project has a different name, update --project-name in package.json.