lawsynth/.npmrc
caelum0x da74ae61d4 fix(deploy): unblock the Cloudflare build (pnpm lockfile + static-assets Worker)
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`.
2026-08-18 22:58:57 +03:00

2 lines
25 B
Plaintext