The Cloudflare Workers build command is `pnpm run build`, but that only compiled
the packages — it didn't emit apps/docs-site/public for `wrangler deploy`. Fold
the site render into `build` so the existing command produces the deployable
static tree (verified: 16 files). `build:packages` keeps the packages-only build;
`build:site` is now an alias. No Cloudflare settings change needed — just redeploy.
The Cloudflare build failed at install with ERR_PNPM_LOCKFILE_CONFIG_MISMATCH
(autoInstallPeers) and the committed pnpm-lock.yaml is also out of date (it
predates @types/node in @lawsynth/state-store), so --frozen-lockfile can't
proceed.
- .npmrc: pin auto-install-peers=false so the resolved config matches the
lockfile's recorded settings (fixes the CONFIG_MISMATCH).
- pr.yml + deploy-site.yml: install with --no-frozen-lockfile so CI/deploy
regenerate the lockfile on the networked runner instead of hard-failing on the
stale lock. (Restore --frozen-lockfile after committing a regenerated lock.)
- wrangler.jsonc (root): a static-assets Worker (assets -> apps/docs-site/public,
no `main`) so `npx wrangler deploy` serves the pre-rendered site.
- package.json: `build:site` = build the workspace then render the docs site to
apps/docs-site/public (verified: 16-file static tree).
Cloudflare Workers Build settings: build command `pnpm run build:site`, deploy
`npx wrangler deploy`, root `/`. The permanent lockfile fix is one command on a
networked machine: `pnpm install --no-frozen-lockfile && git commit pnpm-lock.yaml`.