Updated Jun 17, 2026 · Affirmology_DemoPreview_Setup_v1.md
Goal: a private preview site to test demo changes before they touch the live demo.affirmology.ai. Push to a preview branch, review on the preview subdomain, then merge to go live. The locked demo only changes on a deliberate merge to main.
Use demopreview.affirmology.ai. It is one level under affirmology.ai, so Cloudflare's free Universal SSL covers it automatically. preview.demo.affirmology.ai is two levels deep, which Universal SSL does NOT cover, so it would need a paid Advanced Certificate. Same outcome, less hassle: go with demopreview.affirmology.ai.
The demo front-end (affirmology-site) is a Git-connected Cloudflare Worker. We add a SECOND worker that builds the preview branch and lives at demopreview.affirmology.ai. Your existing worker keeps serving main to the live demo.
Paste to Claude Code:
In the jeffparkerlove22/affirmology-site repo, create a branch named
previewoffmainand push it to GitHub. Confirm it exists. (Or in GitHub Desktop: Branch, New Branch, name itpreview, Publish branch.)
affirmology-site.affirmology-site-preview.preview (not main). Build settings the same as the live one (output dir if asked: the same as affirmology-site uses).affirmology-site-preview worker, Settings, Domains & Routes, Add, Custom Domain.demopreview.affirmology.ai, Add. Cloudflare creates the DNS and the SSL. Wait for Active.demopreview, domain affirmology.ai.preview branch. The preview worker auto-builds.demopreview.affirmology.ai.preview into main. The live demo.affirmology.ai updates.affirmology-site turns out to be a Pages project rather than a Worker, it is even simpler: Pages auto-deploys every branch to a preview URL, and you can add demopreview.affirmology.ai as a preview/branch custom domain in the project's Custom Domains. Tell me which it is and I will tailor the exact clicks.