🌐 Custom Domain
Your site works at launchschool.pages.dev. That's real and permanent. But if you want a custom domain — like launchschool.com or yourname.dev — you can set that up too.
What is a domain name?
Every website has an IP address — a number like 104.21.45.67. Domain names are human-friendly labels that point to those numbers. When you type google.com, your computer looks up which IP address that name points to, then connects there.
This system is called DNS (Domain Name System). Think of it like a phone book: you look up a name, and it gives you the number to call.
Set up a custom domain
- Buy a domain — You can buy one directly from Cloudflare (go to your Cloudflare dashboard → "Register Domains") or from a registrar like Namecheap or Porkbun. Domains typically cost $10–15/year.
- Connect it to your project:
- Go to your Cloudflare dashboard
- Navigate to Workers & Pages
- Click on your "launchschool" project
- Go to the Custom domains tab
- Click Set up a custom domain
- Enter your domain name and follow the prompts
- Wait for DNS to propagate — This can take anywhere from a few minutes to a few hours. Cloudflare is usually fast.
Once it's live, your site will be accessible at your custom domain. Same site, better address.
Buying a domain is the only part of this entire module that costs money (the Cloudflare hosting is free). It's completely optional — the .pages.dev URL works indefinitely.