Debug — Tenant Context

Proxy-set context

{
  "id": "5d4b09a0-0b3e-4055-ba79-f16bef428bde",
  "slug": "besttile",
  "name": "Best Tile Albany"
}

Tenants table query (RLS should scope to ONLY this tenant)

[
  {
    "id": "5d4b09a0-0b3e-4055-ba79-f16bef428bde",
    "slug": "besttile",
    "name": "Best Tile Albany",
    "is_active": true
  },
  {
    "id": "7547cdb5-c4ea-4f25-914e-d6bf890882dd",
    "slug": "demo",
    "name": "TilePro Demo",
    "is_active": true
  }
]

If RLS is working correctly, the query result above shows exactly one row — this tenant — and no others. Visit another tenant's subdomain (e.g. demo.localhost:3000/debug) and you should see only that tenant's row instead.