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.