Skip to content

Quick Start

  • Node.js 24+ (use fnm or nvm)
  • pnpm 8.15+ (corepack enable && corepack prepare pnpm@8.15.0 --activate)
  • Cloudflare Account (free tier works)
Terminal window
git clone https://github.com/milzamsz/astro-cloudflare-starter.git
cd astro-cloudflare
pnpm install
Terminal window
cp .env.example .env

Most variables are optional for a static site. Set SITE_URL for correct canonical/OG/sitemap URLs in production.

Terminal window
pnpm dev

Visit http://localhost:4321 — English is served at the root (/). The i18n engine is ready for additional locales when you need them.

Terminal window
pnpm build

The output is in dist/ — ready for Cloudflare Pages deployment.