Cloudflare Pages + Access setup — scholarship vault

Chosen 6 Dec 2026. Status: vault pushed to GitHub. Deploy is via Cloudflare Pages’ native Git integration — no API token, no repo secrets. Nothing is live yet and nothing is public.

What you get

  • Vault as a readable website (search, clickable links, wiki feel) at scholarship-vault.pages.dev.
  • Cloudflare Access login in front of it — only your email can open it. Free (up to 50 users). Your PC does not need to stay on.
  • Every push to the GitHub repo rebuilds and redeploys the site automatically. No PC step after setup.

Your steps, in order

1. GitHub repo — DONE 6 Dec 2026

  • Repo: michaeltsige/muse-vault (private). The vault is pushed, including this note and the deploy workflow.
  • Muse pushes future vault updates to main; each push rebuilds the site automatically.

2. Connect the repo in Cloudflare Pages (free — no token, no secrets)

Cloudflare Pages pulls straight from GitHub and rebuilds on every push, so there is nothing to install and no credential to create.

  1. Sign up at dash.cloudflare.com (free plan is enough).
  2. Workers & Pages → Create → Pages → Connect to Git → pick GitHub → select michaeltsige/muse-vault, branch main.
  3. Project name: scholarship-vault (this gives you scholarship-vault.pages.dev).
  4. Framework preset: None. Then set:
    • Build command: npx quartz build
    • Build output directory: public
    • Environment variables: NODE_VERSION = 22, TZ = Africa/Addis_Ababa
  5. Save and Deploy. The first build creates the project; check it under Workers & Pages. If the build fails, the log is in the Cloudflare dashboard — send Muse the failing step name.

Quartz itself is vendored in this repo (pinned 4.5.2), so the build installs dependencies and builds straight from the repo — nothing is fetched at build time, and there is no GitHub Actions workflow any more.

  1. Cloudflare dashboard → Zero Trust → Access → Applications → Add an application → Self-hosted.
  2. Application domain: scholarship-vault.pages.dev (the subdomain Cloudflare gave the project; add your custom domain here instead if you ever add one).
  3. Policy: Allow, rule: Emails → your email address only. Identity provider: leave the default (One-time PIN — Cloudflare emails you a code each login, no password to set).
  4. Save. Test in a private browser window: it should ask for an email code before showing the vault.

What NOT to do

  • Do not make the Pages project public or add a “Bypass” / “Allow everyone” Access policy — the built site contains the CV PDF and the workbook, and Quartz copies non-markdown files into the site. Access is the only thing keeping it private.
  • Do not put the GitHub PAT in a vault note, an email, or chat.

If the build breaks later

  • Quartz 4.5 needs Node ≥ 22 — that is the NODE_VERSION variable in the Pages project settings. If Quartz bumps that requirement, the build log will say so; raise the variable.
  • Quartz is pinned in this repo (4.5.2, commit d25a6ea of jackyzha0/quartz, branch v4). To update it, replace the quartz/ folder and the quartz.config.ts / quartz.layout.ts / package.json / package-lock.json files with a fresh copy — and keep your pageTitle / baseUrl edits in quartz.config.ts.
  • Vault README (hosting section now records this as the chosen route; Google Drive disconnected 6 Dec 2026)
  • Dashboard