Deployment
Build the Astro Starlight site to static files and deploy it to Cloudflare Pages.
This docs site is an Astro Starlight app. It builds to static HTML, CSS, and JavaScript with no server runtime.
Local build
Section titled “Local build”pnpm --filter @docs/app buildNext writes static output to:
docs/app/distYou can serve that directory with any static file server.
Cloudflare Pages
Section titled “Cloudflare Pages”Use these settings:
Project root: docs/appBuild command: pnpm buildOutput directory: distFramework preset: AstroBecause the site is static, it does not need a Node.js server at request time.
Search
Section titled “Search”Starlight builds a static Pagefind search index during astro build. That keeps
search compatible with Cloudflare Pages and other static hosts.