Getting Started
Local build
Run the docs site the same way the compositions do:
cd website
npm ci
npm run docs:build
npm run docs:serve
The production build is written to website/docs-build/.
Turbo example builds
The new apps/ and packages/ examples use pnpm and Turbo from the monorepo root:
corepack enable
pnpm install --no-frozen-lockfile
pnpm turbo run build --filter=@example/web-console
pnpm turbo run typecheck --filter=@example/api-edge
Those commands mirror the inputs used by the cloudflare-worker-turbo, cloudflare-pages-turbo,
cloudflare-pages-turbo-terraform, and turbo-package compositions.
Why Docusaurus here
Docusaurus is a good fit for this sample because it produces a plain static directory while still exercising a realistic Node-based documentation toolchain. That makes it useful for both:
- direct upload workflows that publish prebuilt assets
- Git-connected Pages projects that build inside Cloudflare
Credentials used in CI
The repository expects these secrets in GitHub Actions:
CLOUDFLARE_ACCOUNT_IDCLOUDFLARE_API_TOKEN
The direct-upload job only uses them when it is allowed to publish. The Terraform-backed job uses the same variables when it needs to plan against or apply Cloudflare resources.
Worker deploys use the same Cloudflare credentials because Wrangler creates the worker directly from
the app-local manifest under apps/.