Model Rocket Build & Deploy a Real Website
1
2
3
4
5
6
7
8
9
Step 6 of 9
Phase 5

🚀 First Deploy

~10 min Step 6 of 9

This is launch day.

Build the project

Go to the terminal where your project lives (not the one running the dev server) and run:

bash
npm run build

This takes your Svelte code and compiles it into optimized HTML, CSS, and JavaScript that browsers can run. Think of it as packing the rocket — everything gets compressed and prepared for launch.

You should see output ending with something like "build done."

Deploy to Cloudflare

bash
npx wrangler deploy

The first time you run this, Wrangler may ask you to confirm the project name. Say yes.

Watch the output. Wrangler is uploading your built site to Cloudflare's global network. When it finishes, you'll see a URL that looks something like:

https://launchschool.stooge.workers.dev

The big moment

Open that URL in your browser.

Your website is on the internet. Anyone in the world with this link can see it.

Send it to a friend. Send it to a grandparent. Send it to someone in another country. It works for all of them — Cloudflare is serving your site from servers on every continent.

This is your model rocket reaching the sky. You built it. You understand how it works. You launched it yourself.

👋 Parent note

Take a moment here. This is a genuinely significant milestone. Your kid just built and deployed a multi-page web application using professional tools. The URL is real. The technology is real. Celebrate it.

Checkpoint

If you can visit your .pages.dev URL from your phone (on cellular, not wifi), you've confirmed it's truly on the internet and not just running on your computer.