861 B
861 B
title, section, summary, tags, nav
| title | section | summary | tags | nav | |||
|---|---|---|---|---|---|---|---|
| Cloudflare Pages Workflow | infra | Steps to publish the static notes site to Cloudflare Pages using the provided workflow and build output. |
|
1 |
Cloudflare Pages Workflow
Overview
This note captures the build and deploy flow for the static notes site. The site compiles Markdown into static HTML under the dist/ directory.
Build steps
- Install dependencies:
npm install. - Generate the site:
npm run build. - Upload the
dist/output to Cloudflare Pages.
Environment
- Node 20+ is recommended.
- CI uses
npm ciandnpm run buildfrom the default branch.
Tips
- Keep content in
content/with front matter to expose metadata. - The build bundles a
search-index.json; avoid storing secrets in front matter. - Regenerate locally before pushing to preview changes.