Skip to content

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.

Terminal window
pnpm --filter @docs/app build

Next writes static output to:

docs/app/dist

You can serve that directory with any static file server.

Use these settings:

Project root: docs/app
Build command: pnpm build
Output directory: dist
Framework preset: Astro

Because the site is static, it does not need a Node.js server at request time.

Starlight builds a static Pagefind search index during astro build. That keeps search compatible with Cloudflare Pages and other static hosts.