Skip to content

Deploy to Cloudflare (static first)

Recommended path

Keep the first deployment boring.

For this docs site, static hosting gets you Starlight routing, search, and Cloudflare delivery without turning the deployment into a server project.

What you keep

Starlight routing, Pagefind search, simple deploys, and less moving infrastructure.

What you avoid

Worker bindings, server adapters, and the extra complexity of SSR before the content model is settled.
Terminal window
npm run build
  1. Open Workers & Pages in Cloudflare.
  2. Create a new Pages project from the GitHub repository.
  3. Set the production branch to main.
  4. Set the build command to npm run build.
  5. Set the build output directory to dist.
  6. Save and deploy.
  1. Open the Pages project.
  2. Open Workers & Pages in Cloudflare.
  3. Go to Custom domains.
  4. Add docs.mementropy.com.
  5. Verify HTTPS once the certificate finishes provisioning.
wrangler.jsonc
{
// Cloudflare Pages config. Use `wrangler pages deploy`, not `wrangler deploy`.
"name": "mementropy",
"pages_build_output_dir": "./dist",
"compatibility_date": "2026-04-12"
}