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

  1. 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.

  1. Pick a free project name. We renamed the hub from unni-home to unni-root.
  2. Update every reference in one place (shared/sites.json) and rebuild.
  3. A custom domain later removes the pages.dev name 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 name and the subdomain can differ. Always read the returned subdomain.