fix · unni-web
Fix: Cloudflare Pages subdomain is already taken
Error / Symptom
A Pages project named unni-home was created, but its URL came back as:
https://unni-home-5ri.pages.dev
instead of https://unni-home.pages.dev.
Cause
*.pages.dev subdomains are global across every Cloudflare account, not scoped to
yours. Another account already owned unni-home.pages.dev (in our case an
Access-protected project called unni-prep-d8abe4). Deleting and recreating the
project does not free a name that belongs to someone else.
Remedy
- Check the name before committing to it:
Resolve-DnsName unni-home.pages.dev -ErrorAction SilentlyContinue
No DNS record usually means the name is free; a record means it is taken.
- Pick a free project name. We renamed the hub from
unni-hometounni-root. - Update every reference in one place (
shared/sites.json) and rebuild. - A custom domain later removes the
pages.devname from the picture entirely.
Recurrence notes
- A project can keep a suffixed subdomain forever; the suffix is not an error.
- Do not delete a live project to reclaim a name unless you own the name and accept downtime.
- The project
nameand thesubdomaincan differ. Always read the returnedsubdomain.