A · Put the code on GitHub. Log into the GitHub CLI first: ! gh auth login (in your terminal), then:
Let Claude Code do the git work
Initialise a git repo here, add a sensible .gitignore for a Node/Vite project, commit everything, then create a new private GitHub repo called bobs-website and push to it using the gh CLI.
B · Connect Cloudflare Pages · C · The magic loop
B - dash.cloudflare.com → Workers & Pages → Create → Pages → Connect to Git → choose your repo. Build config:
- Framework preset: None
- Build command:
npm run build
- Build output directory:
dist
Save and Deploy → ~1–2 min → a live URL like https://bobs-website.pages.dev.
C · The magic loop - change something with Claude Code ("add a contact page"), then say "commit and push." Cloudflare redeploys on its own. That's continuous deployment, for free.
Cloudflare build fails? Open the build log. Build command must be npm run build, output dist. Node-version error → add env var NODE_VERSION = 20. Paste the log to Claude and it'll fix it.
Final checkpoint: your site is live on a public URL, and pushing a change redeploys it automatically - total hosting cost: $0.
🔁 Next step - keep iterating. You're not done, you're live. Ask Claude Code for changes ("add a testimonials section", "write three more blog posts", "tune the homepage headline"), then "commit and push" - Cloudflare redeploys each time. Growing the site is just more of this loop.