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
- Create a Cloudflare Pages project from the GitHub repository.
- Set the build command to
pnpm build. - Set the output directory to
dist. - Add the custom domain
notes.bianrui.net. - 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:publicpasses.- 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
FastAPI Production Checklist
A compact checklist for taking a FastAPI service from useful prototype to production-ready backend.
Why I'm Building an AI Infrastructure Learning OS
A personal operating system for turning backend and AI infrastructure learning into durable, searchable engineering knowledge.
GCP Cloud Run Checklist
A deployment checklist for containerized backend services on Google Cloud Run.
bianrui-knowledge Architecture
A short architecture note for the personal knowledge base itself.
Docker Production Checklist
A checklist for production-friendly Docker images and container runtime behavior.
Backlinks
Why I'm Building an AI Infrastructure Learning OS
A personal operating system for turning backend and AI infrastructure learning into durable, searchable engineering knowledge.
FastAPI Production Checklist
A compact checklist for taking a FastAPI service from useful prototype to production-ready backend.
Week 1: Backend Infrastructure Ramp
A first weekly learning log for backend, deployment, security, observability, and AI infrastructure readiness.
bianrui-knowledge Architecture
A short architecture note for the personal knowledge base itself.