Promote the winner to production
You’ve picked a winner. Time to make it production and wire megmude.com to it.
1. Open a pull request
Paste into Claude Code, replacing variant/<winner> with your chosen branch name:
Open a pull request from
variant/<winner>tomainusinggh pr create --base main --head variant/<winner> --title "feat: promote <winner> design" --body "Promoting variant chosen after Council review.". Show me the PR URL.
Click the URL Claude returns. The PR page shows the diff and links to the preview URL — confirm the preview matches the variant you reviewed.
2. Merge
Paste into Claude Code:
Squash-merge the PR with
gh pr merge --squash --delete-branch. Thengit checkout main && git pull origin mainso my local main is up to date.
The losing variant branches stay around. You can leave them for now or clean them up later (chapter 08 covers cleanup).
3. Deploy production
Paste into Claude Code:
Run
npm run buildand thenwrangler pages deploy dist --project-name=megmude-site --branch=main --commit-dirty=true. Tell me the production URL.
Production is https://megmude-site.pages.dev. Open it. Confirm the chosen design is live.
4. Wire megmude.com to the production site (first time only)
This step is one-time and is done in the Cloudflare dashboard — wrangler doesn’t have a subcommand for it as of this writing.
- Open dash.cloudflare.com and switch into the Common Nexus account.
- Workers & Pages in the sidebar → click
megmude-site. - Open the Custom domains tab → click Set up a custom domain.
- Enter
megmude.com→ confirm. Cloudflare auto-creates the DNS records since the domain is already on the same account. - Repeat for
www.megmude.com.
Within a couple of minutes both https://megmude.com and https://www.megmude.com should resolve to your site. If you see a TLS warning on first load, wait 30–60 seconds and retry — Cloudflare is provisioning the certificate.
5. Verify
Open all three URLs in a browser:
https://megmude-site.pages.dev— production preview URLhttps://megmude.comhttps://www.megmude.com
All three should serve your chosen design. The first time you load megmude.com, allow ~30–60 seconds for the cert and DNS to settle.
6. Clean up losing variant branches (optional)
When you’re certain you don’t want to revisit any of the losing variants:
Paste into Claude Code:
List the local and remote branches starting with
variant/other thanvariant/<winner>. Delete them locally withgit branch -Dand on origin withgit push origin --delete <branch>for each.
The Cloudflare preview deployments for those branches will stay listed for a while; they cost nothing and clean themselves up over time.
You have a live website. Chapter 07 covers day-to-day iteration.