Split institution identity tokens from layout composition
Split institution identity tokens from layout composition so branding and structure vary independently.

Education organizations need familiar public information and publishing workflows, but cloning whole codebases per institution creates drift and costly maintenance.
Three institution types and multiple layouts must share behavior without content/theme leakage.
MongoDB, Google OAuth/Drive, and Resend are optional/configured services.
Public read-only defaults must remain usable when database-backed administration is absent.
Next.js public/admin routes; feature-owned content/admission/media domain modules; centralized institution and visual-theme configuration/tokens; MongoDB/auth/Drive/email adapters with server-boundary enforcement.
Next.js public/admin routes.
Feature-owned content/admission/media domain modules.
Centralized institution and visual-theme configuration/tokens.
MongoDB/auth/Drive/email adapters with server-boundary enforcement.
Split institution identity tokens from layout composition so branding and structure vary independently.
Resolve both themes server-side to prevent a fallback-theme flash.
Keep route and feature code shared, accepting stronger configuration discipline to avoid forks.

Share your challenge, scope, and timeline to start a focused conversation.