Skip to content
Portfolio

DNS & Routing

Static frontends are served from Cloudflare Pages. Traffic never reaches the Hetzner VPS for those hostnames — Cloudflare terminates TLS at the edge and serves pre-built files from its CDN.

User → docs.pablorosi.dev / pablorosi.dev → Cloudflare DNS → Pages project → edge CDN → dist/

After creating a Pages project, Cloudflare provides a target hostname (e.g. <project>.pages.dev). Point the custom domain with:

TypeNameContentProxy
CNAMEdocs<project>.pages.devProxied

The pablorosi.dev and docs.pablorosi.dev domains are added under Pages → Custom domains in the Cloudflare dashboard. The zone lives on the same account, so Cloudflare creates the DNS record automatically.


HostnameDestinationNotes
docs.pablorosi.devCloudflare PagesDocumentation site (Astro + Starlight)
pablorosi.devCloudflare PagesPortfolio (Astro Vanilla)
docs.pablorosi.comCloudflare edge redirect301 → docs.pablorosi.dev

Legacy .com domains are handled by Redirect Rules at the Cloudflare edge. Only the final .dev hostname needs a Pages custom domain.


Cloudflare Pages provisions and renews TLS certificates for custom domains automatically. No origin certificate or reverse proxy configuration is required on the server for static frontends.