270 lines · 4.0 KB
/**
 * Account names share the URL root with app pages (`/settings`, `/explore`, …), so these can never be
 * claimed. The list covers every current top-level route plus pages a forge commonly adds later.
 */
const RESERVED = [
  // current routes and raw handlers
  "acceptable-use",
  "api",
  "assets",
  "attachments",
  "auth",
  "avatars",
  "og",
  // /og/site.png and /og/feature/<slug>.png sit where an account or owner card would
  "site",
  "feature",
  "explore",
  "ingest",
  "camo",
  "email",
  "unsubscribe",
  "stripe",
  "billing",
  "workbench",
  "usercontent",
  "domains",
  "listen",
  "preview",
  "sse",
  "ws",
  "scratch",
  "sites",
  "forgot-password",
  "login",
  "logout",
  "new",
  "notifications",
  "orgs",
  "projects",
  "reset-password",