Next.js interviews centre on rendering strategies, the App Router, server components, and caching — the parts that separate Next from plain React. Below are the most common questions with model answers. Senior: architecture, trade-offs, mentoring, and decision-making.
Try it — no account needed
Preparing your question…
Topics to prepare
✓SSR, SSG, ISR and CSR
✓App Router vs Pages Router
✓Server components
✓Route handlers and API
✓Caching and revalidation
✓Image and font optimization
5 Senior-level questions with answers
1
How do you decide between static, dynamic and revalidated rendering?
Answer
By how fresh the content must be and how many distinct versions exist. Marketing pages and articles are static with revalidation, since a minute of staleness costs nothing. Anything personalised is dynamic, because a per-user cache is not a cache. The trap is making a page dynamic accidentally — reading cookies or headers anywhere in the tree opts the whole route out of static rendering.
2
How do you keep the client bundle small in an App Router app?
Answer
Push 'use client' as far down as possible and keep data fetching on the server, since a component that never reaches the browser costs nothing. Then the usual: dynamic imports for heavy widgets, and checking what a dependency pulls in — a client component importing a date library is how a page gains a hundred kilobytes. The bundle analyser in CI is what keeps it honest.
3
What breaks when you deploy Next outside Vercel?
Answer
Image optimisation needs a loader you configure, ISR needs shared storage so every instance revalidates consistently, and middleware runs on Node rather than an edge runtime. None is a blocker, but each is a decision that Vercel makes silently and self-hosting makes explicit. Finding out after the migration is the expensive order.
4
How do you handle authentication across server and client?
Answer
Read the session on the server — in a layout, a Server Component or middleware — so protected content is never sent to a browser that should not have it. A client-side redirect after render leaks the page first. Middleware handles the coarse gate; the fine-grained check belongs next to the data, because a route guard alone protects the page and not the endpoint.
5
When would you not use Next?
Answer
When the app is behind a login and has no SEO or first-paint requirement — a plain SPA is simpler to build and to host, and much of Next's value is server rendering you would not use. Also when the team cannot operate a Node server and a static host is the constraint. Choosing it by default is how a dashboard acquires a rendering model it never needed.
🦎
Reading answers is not enough
In a real interview you speak under pressure. Cam asks these same questions, scores every answer, and shows exactly what to fix.