Set up subdomain → brand/tenant rewriting in Next.js 15 App Router using middleware, with public file exemptions for site verification (FB/Google/Bing), and proper /api + /_next pass-through. Use when building a multi-tenant SaaS where each customer gets their own subdomain (acme.app.com, beta.app.com, etc.) on a single Next.js deployment.