System context
Request flow (high level)
- The browser hits the Next.js app through Cloudflare DNS.
- Public property and review reads use the Supabase anon key under RLS.
- Authenticated writes use the signed-in session on the server (Server Actions or route handlers), validated with Zod, then persisted under RLS.
- Public forms that accept anonymous input verify Cloudflare Turnstile server-side before processing.
Product boundaries for v1
- Housing properties and reviews only
- Dual-role accounts with separate
/dashboard/renterand/dashboard/ownertrees - No multi-category rentables, no separate mobile apps