Server-side rendering, static generation, and full-stack React framework.
Use Server Components for server-side fetching, Route Handlers for APIs, client-side fetching for user-specific dynamic data, and Server Actions for mutations.
Use NextAuth.js (Auth.js) for providers and sessions, middleware for route protection, and Server Components to access session data securely.
Use loading.tsx for route loading states, error.tsx for error boundaries, and Suspense for component-level loading with streaming.
The App Router is Next.js's newer routing paradigm supporting Server Components, layouts, and streaming, while Pages Router uses the traditional pages-based approach.
SSR renders pages on each request, SSG pre-renders at build time, and ISR allows static pages to be updated after deployment.
Next.js has multiple cache layers: fetch request caching, data cache for persistence, and full route cache. Control them with revalidate options and cache functions.
Server Components render entirely on the server, sending only HTML to the client with zero JavaScript bundle impact.
Join our network of elite AI-native engineers.