Multi-Tenant Platform Architecture (Cloudflare · Vercel) Workflow (order matters) 0. Choose platform - Cloudflare : Workers for Platforms + dispatch namespaces for per-tenant code isolation; best when tenants run untrusted code or you need edge-first compute with D1/KV/DO primitives. - Vercel : Next.js App Router + Middleware for shared-app multi-tenancy; best when tenants share one codebase and you need ISR, React Server Components, and managed deployment. - Pick one; do not mix hosting. The remaining steps apply to both with platform-specific guidance in reference files. - After choosing, l…