Save it to GitHub and put it online
Ask Claude to save your site to GitHub and publish it to Spacefast or Cloudflare. At the end you'll have a real address you can send to anyone.
Tested on Astro 7.4
Last lesson. Claude saves your site to GitHub, then puts it on the internet. You’ll ask for both.
Step 1: Save your site to GitHub
Send Claude this:
Create a private GitHub repository called my-site and push this project to it.
Use the GitHub command tool. I'm already signed in with gh auth login.
Claude commits your work, then runs a command like this one:
$ gh repo create my-site --private --source . --push
To https://github.com/your-name/my-site.git
* [new branch] HEAD -> main
branch 'main' set up to track 'origin/main'.That’s real output, from when we did this for our EmDash demo. Open github.com and you’ll see my-site with all your files. It’s private, so only you can see it.
Step 2: Put it online
Pick one of our two hosts. Both are free to start.
With Spacefast, our pick for most sites
Send Claude this:
Build the site, then publish the dist folder with Spacefast using
npx -y spacefast publish ./dist
Spacefast gives back three links: your live site, this version, and a link to claim the site. Claim it, with a free account. Sites that aren’t claimed are removed after about 33 hours.
New Spacefast sites start private, so only you can open them. When you’re ready for the world, switch your site to Public in Spacefast. Then send the address to anyone.
With Cloudflare, our pick for EmDash and busy sites
Make a free account at dash.cloudflare.com. Then send Claude this:
Set this site up for Cloudflare Workers and deploy it with npx wrangler deploy.
Claude adds a small settings file, then deploys. The first time, your browser opens and asks you to let Wrangler use your Cloudflare account. Click Allow. A few seconds later, Claude shows your address, ending in workers.dev. That’s live, for everyone. We deploy Astro Nursery exactly this way, many times a day.
Step 3: Every change after this
From now on, when you change your site, finish with one message:
Commit this, push it to GitHub, and publish the site again.
That’s the whole routine. Ask for a change, look at it, then send that message.
Use your own name
An address like my-site.workers.dev works. A name like mysite.com is nicer, for about $12 a year. How to register a domain walks through it.
Where to go next
- Add search, a contact form or comments. Paste any guide into Claude and ask it to follow it.
- Want a dashboard for writing posts? Try EmDash.
- Curious how it all works underneath? Our free Learn by hand course shows every line.
Finished lesson 4?
Mark it done to light the last star and finish the course.