Quick Start
Prerequisites
Section titled “Prerequisites”- Node.js 24+ (use fnm or nvm)
- pnpm 8.15+ (
corepack enable && corepack prepare pnpm@8.15.0 --activate) - Cloudflare Account (free tier works)
Clone & Install
Section titled “Clone & Install”git clone https://github.com/milzamsz/astro-cloudflare-starter.gitcd astro-cloudflarepnpm installEnvironment Setup
Section titled “Environment Setup”cp .env.example .envMost variables are optional for a static site. Set SITE_URL for correct
canonical/OG/sitemap URLs in production.
Run Development Server
Section titled “Run Development Server”pnpm devVisit http://localhost:4321 — English is served at the root (/). The i18n
engine is ready for additional locales when you need them.
Build for Production
Section titled “Build for Production”pnpm buildThe output is in dist/ — ready for Cloudflare Pages deployment.