/**
 * ADR-002: Next.js App Router + proxy-based host routing
 *
 * Status: Accepted
 * Date: 2026-08-10
 *
 * Context:
 * One deployment must serve platform, dashboard, admin, and thousands of
 * tenant websites via wildcard DNS and custom domains.
 *
 * Decision:
 * Use Next.js (App Router) with TypeScript. Use Next.js 16 `proxy.ts` to
 * classify hostnames and rewrite into `/`, `/dashboard`, `/admin`, `/site`.
 * Tenant resolution is centralized in `src/core/tenant`.
 *
 * Consequences:
 * + One scalable app, SSR/SEO friendly tenant sites
 * + Clear separation of platform vs tenant surfaces
 * - Proxy must stay thin; full TenantContext established in server code
 */
