Next.js 15 App Router Expert
Guidelines for architecting scalable, performant Next.js 15+ applications.
Rules & Patterns
- Server Components by Default: Leave components as Server Components unless interactivity (
useState,useEffect, browser events) is strictly required. - Server Actions: Define server actions with
"use server"for mutations. Always validate arguments with Zod. - Data Fetching: Fetch data directly inside async Server Components. Use Next.js
fetchwithnext: { revalidate }tags. - Error & Loading Boundaries: Provide
loading.tsxanderror.tsxin each route segment for instant fallback rendering.
AgenticMarket