docs Jun 28, 2026 updated Jun 28, 2026

Cloudflare Pages Deployment Runbook

A deployment checklist for publishing the knowledge base to Cloudflare Pages and mapping notes.bianrui.net.

Status
evergreen
Visibility
public
Category
Deployment
Difficulty
beginner
Published
Jun 28, 2026
Updated
Jun 28, 2026

Goal

Deploy this Astro knowledge base as a static Cloudflare Pages site. Use notes.bianrui.net or learn.bianrui.net as a subdomain under the existing bianrui.net domain.

Build Settings

  • Framework preset: Astro
  • Build command: pnpm build
  • Output directory: dist
  • Package manager: pnpm
  • Node version: 22 or newer

Cloudflare Pages Setup

  1. Create a Cloudflare Pages project from the GitHub repository.
  2. Set the build command to pnpm build.
  3. Set the output directory to dist.
  4. Add the custom domain notes.bianrui.net.
  5. Confirm Cloudflare creates the required DNS record.

Existing Domain Context

bianrui0315/bianrui0315.github.io is already connected to bianrui.net through Cloudflare. This knowledge base can live on a subdomain while the primary site remains separate.

Privacy Modes

Public Static Mode

Use this for the default Cloudflare Pages deployment. Private and draft notes are not routed.

pnpm build

Protected Private Mode

For truly private deployed notes, create a separate Pages project or subdomain such as notes.bianrui.net, then protect it with Cloudflare Access.

Recommended Access policy:

  • Application type: Self-hosted
  • Domain: notes.bianrui.net
  • Identity provider: Google or one-time PIN
  • Policy: Allow only Rui’s email

Preflight

  • No private content appears in dist.
  • pnpm guard:public passes.
  • Search index exists at dist/pagefind.
  • RSS exists at /rss.xml.
  • Sitemap exists at /sitemap-index.xml.

Rollback

Use Cloudflare Pages deployment history to promote the last known-good build.

Source Links

Related Notes

Cheat Sheets Jun 28, 2026 intermediate

FastAPI Production Checklist

A compact checklist for taking a FastAPI service from useful prototype to production-ready backend.

Cheat Sheets Jun 28, 2026 beginner

GCP Cloud Run Checklist

A deployment checklist for containerized backend services on Google Cloud Run.

Cheat Sheets Jun 28, 2026 intermediate

Docker Production Checklist

A checklist for production-friendly Docker images and container runtime behavior.

Backlinks

Cheat Sheets Jun 28, 2026 intermediate

FastAPI Production Checklist

A compact checklist for taking a FastAPI service from useful prototype to production-ready backend.

Learning Log Jun 28, 2026 beginner

Week 1: Backend Infrastructure Ramp

A first weekly learning log for backend, deployment, security, observability, and AI infrastructure readiness.