Cloudflare Pages
This docs site is static (astro build) and ready for Cloudflare Pages deployment.
Included Configuration
Section titled “Included Configuration”Project includes:
wrangler.toml- Build output dir:
./dist - Deploy script:
npm run cf:deploy
First-Time Setup
Section titled “First-Time Setup”- Authenticate Wrangler:
npx wrangler login- Build docs:
npm run build- Deploy to Pages:
npm run cf:deployPages Project Name
Section titled “Pages Project Name”The script deploys to:
bytebox-docs
If you want a different Cloudflare Pages project name, update:
package.jsoncf:deployscriptwrangler.tomlname
Recommended Cloudflare Build Settings (Git-Connected Deploys)
Section titled “Recommended Cloudflare Build Settings (Git-Connected Deploys)”- Framework preset: Astro
- Build command:
npm run build - Build output directory:
dist - Node version:
22
Optional: Local Pages Preview
Section titled “Optional: Local Pages Preview”After building:
npm run cf:devThis serves dist using Wrangler’s Pages runtime emulation.