Next.js App Router
- •Start from server-first design and move client logic to isolated interactive islands.
- •Keep data writes in Server Actions unless an external HTTP API contract is required.
- •Use Route Handlers only for external API boundaries and webhook style integrations.
- •Keep cache intent explicit and pair every mutation with targeted revalidation.
- •Place auth and role checks close to the write boundary.
- •Reuse logic from
packages/domainandpackages/dbinstead of duplicating.