Next.js · Concept
App Router vs Pages Router
Practise this out loud
Say your answer out loud to an AI interviewer that follows up, and get a score for it.
Practise by voiceThe interviewer asks
What are the differences between the App Router and the Pages Router? We have a large Pages Router app. Would you migrate, and how?
Then
Follow-ups the interviewer asks next
- Layouts and partial rendering: what doesn't re-render on navigation?
- Can both routers coexist? Any caveats?
- What replaced
getServerSideProps,getStaticProps,getStaticPaths,_appand_document? - Incremental migration plan and risks.
The answer
What a strong answer covers
- The App Router uses Server Components by default, nested layouts, streaming with Suspense, Server Actions, route handlers, and colocated
loading/error/not-foundfiles. - Data fetching happens in components (async RSC) instead of page-level functions.
generateStaticParamsreplacesgetStaticPaths. - Both can coexist route by route. Migrate leaf routes first, share UI with
'use client'components, watch for the global CSS and auth differences. - The Pages Router is still supported, but new features (Cache Components, PPR) are App Router only.
The red pen
Common traps
Avoid:"App Router is just a new folder name"; big-bang rewrites.
Practise this out loud
Say your answer out loud to an AI interviewer that follows up, and get a score for it.
Practise by voicePractise questions like this out loud
Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.