Chapter 16
Deployment
Build and deploy the book to Cloudflare Pages.
Deployment
The Cloudflare Pages template builds the Hono app into the dist directory.
pnpm build
Deploy with Wrangler:
pnpm deploy
Custom domain
Once the Pages project exists in Cloudflare, add honobook.com as a custom domain in the Pages dashboard and point DNS at Cloudflare.
Production checklist
Before publishing, run:
pnpm typecheck
pnpm build
Those commands verify the TypeScript project and ensure the production bundle can be generated.