Cost · Free guide

Can you launch a free website without buying a custom domain?

Yes. Both Cloudflare Pages (*.pages.dev) and GitHub Pages (*.github.io) assign a live HTTPS address automatically at $0 total cost without entering billing info. Launching on a free subdomain lets you learn, verify mobile design, test forms, and validate an idea before spending ~$11/year on a custom domain.

By StaticLaunch · Four Media Group LLC

When a free subdomain works fine

Students, hobbyists, open-source developer tools, internal documentation sites, and early prototypes thrive immediately on https://your-project.pages.dev with full TLS encryption and edge caching.

When paying for a custom domain is worth $11/year

For client-facing local businesses, medical/legal clinics, restaurants, or e-commerce brands, a real custom domain builds customer trust, unlocks branded company email ([email protected]), and preserves brand equity permanently across host changes.

How to upgrade from *.pages.dev to a custom domain cleanly later

When you eventually attach your custom domain inside Cloudflare Pages, your repo and build settings stay untouched—just set your canonical base URL in astro.config.mjs (site: 'https://yourdomain.com') and rebuild.

Common questions

Should Google index my temporary *.pages.dev staging link once my real domain is live?

No. If you attach a custom domain, keep canonical URLs pointing exclusively to your primary domain or return a clean redirect from preview hostnames if needed.

Can I buy just one domain later without moving my files?

Yes. Attaching a custom domain takes about two minutes inside Cloudflare Pages Custom Domains.

References

Provider interfaces and limits can change. Consult the original documentation before changing production settings.