Deployment — Frontend Principal Engineering
This project is published as part of the repository's single Cloudflare Pages site, at
/frontend-principal-journey/. Hosting settings live in the repository root's
DEPLOY.md — build command, output directory, and the file-size limits that bite.
Building this book alone
bash build.sh # writes ./book and ./dist/book
mdbook serve # live reload on http://localhost:3000
build.sh here regenerates SUMMARY.md from the filesystem, checks that every relative link
resolves, and enforces the same deployment guards as the root build. SUMMARY.md is generated and
never hand-edited: without that, a new module or step is silently unreachable in the book and
nothing warns you.
node scripts/gen-summary.mjs # table of contents only
node scripts/check-links.mjs # link check only
Building the whole site
From the repository root, bash build.sh builds every book into public/<name>/ and generates the
landing page. That is exactly what Cloudflare runs, so it is the command to reproduce a deploy
locally.