Cloudflare Pages and Access Setup
Target
Section titled “Target”- Site host:
docs.knearme.co - Visibility: internal-only via Cloudflare Access policy.
Pages project checklist
Section titled “Pages project checklist”- Create Pages project connected to this repository.
- Configure monorepo build settings:
- Root directory: repo root.
- Build command:
pnpm install --frozen-lockfile && pnpm -C apps/knearme-dev-docs build. - Build output:
apps/knearme-dev-docs/dist. NODE_VERSION=22.
- Set production branch to
master. - Enable preview deployments for PR branches.
- Add custom domain
docs.knearme.co.
Access policy checklist
Section titled “Access policy checklist”- Create Cloudflare Access self-hosted application for
docs.knearme.co. - Attach allow policy for internal identity provider group(s).
- Validate:
- Unauthenticated users receive Access login challenge.
- Authorized users can reach docs pages.
Post-setup validation
Section titled “Post-setup validation”pnpm -C apps/knearme-dev-docs buildThen verify preview URL and production URL render expected sidebar and canonical pages.