Next.js Production Pitfalls: 36 Bugs Interviewers Love to Ask About
The App Router changed where code runs, what gets cached and who can call your server. These are the 36 Next.js mistakes that ship to production, and the follow-up questions senior interviewers ask about them.
What's inside
• 36 real production pitfalls in 6 areas, 85 pages
• Every pitfall gets two pages: an infographic of what breaks, why it happens, the fix, the follow-up question an interviewer asks next, and a fillable drill to answer in your own words
• A 36-item tracker so you can tick off each pitfall as you master it
The 6 areas
1. Server and client components — use client at the top of the tree, server-only code in a client bundle, hydration mismatches
2. Routing and layouts — params is a Promise now, parallel routes without default, redirect inside try/catch
3. Data fetching and mutations — Server Actions are public endpoints, trusting action arguments, saved data the page doesn't show
4. Caching and revalidation — caching defaults that changed, one cookies() call that makes everything dynamic, personal data in a shared cache
5. Proxy, auth and security — auth checked only in the proxy or only in the layout, NEXT_PUBLIC_ baked into the bundle
6. Optimisation and deployment — next/image without sizes, version skew after a deploy, standalone output with missing assets
Who it's for
Frontend developers preparing for mid-level and senior interviews, and anyone who wants to stop shipping these bugs. Pairs with the Next.js Interview Workbook (100+ questions with model answers and follow-ups).
Versions
This book targets Next.js 16 with the App Router and notes where versions 14 and 15 behave differently.
Format
PDF, 85 pages, with fillable fields. Fill it in on screen in any PDF reader that supports forms (Adobe Acrobat Reader, browser PDF viewers) or print it.
This copy is licensed to the purchaser for their personal use only. Do not share, resell or redistribute it, in whole or in part, without the prior written permission of the author.