154 lines · 2.3 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
  "api",
  "assets",
  "attachments",
  "auth",
  "avatars",
  "explore",
  "scratch",
  "sites",
  "forgot-password",
  "login",
  "logout",
  "new",
  "notifications",
  "orgs",
  "projects",
  "reset-password",
  "search",
  "settings",
  "signup",
  "verify-email",
  // auth and accounts
  "account",
  "accounts",
  "join",
  "oauth",
  "register",
  "saml",
  "session",
  "sessions",
  "signin",
  "signout",
  "sso",
  "user",
  "users",