Back to Prep Library
Category Blueprint
Next.js Interview Library
App Router, Server Components, rendering & data fetching
Questions75
Views50.6k
Upvotes3.0k
Filter
Question Catalog
(75 visible)Next.js· Frontend
How do environment variables work in Next.js (the NEXT_PUBLIC_ prefix)?
1.0k11
easy
Next.js· Frontend
How does client-side navigation work in Next.js (next/link and useRouter)?
98457
easy
Next.js· Frontend
How does file-based routing work in the Next.js App Router?
92215
easy
Next.js· Frontend
What is Next.js and what problems does it solve?
85579
easy
Next.js· Frontend
What is not-found.js in Next.js and how do you trigger a 404?
84080
easy
Next.js· Frontend
What is the difference between the /public folder and imported assets in Next.js?
73412
easy
Next.js· Frontend
How do sitemap.ts and robots.ts work in Next.js?
7146
easy
Next.js· Frontend
What is the route segment config in Next.js (dynamic, revalidate, runtime)?
1.2k69
medium
Next.js· Frontend
How do you handle forms with Server Actions in Next.js (progressive enhancement)?
1.2k53
medium
Next.js· Frontend
What is the difference between Server Components and Client Components in Next.js?
1.2k4
medium
Next.js· Frontend
What is generateStaticParams in Next.js and how does it enable SSG for dynamic routes?
1.1k27
medium
Next.js· Frontend
What is next/script and what are its strategy options in Next.js?
1.1k41
medium
Next.js· System Design
How does Next.js decide between static and dynamic rendering at build time?
1.0k79
medium
Next.js· Frontend
What is the difference between static and dynamic rendering in the Next.js App Router?
99425
medium
Next.js· System Design
What is the Data Cache in Next.js and how do you opt out of it?
98858
medium
Next.js· Frontend
What is the difference between getServerSideProps/getStaticProps and App Router data fetching?
96832
medium
Next.js· Frontend
What makes a route dynamic in the Next.js App Router?
9503
medium
Next.js· Frontend
What are dynamic routes and catch-all segments in Next.js?
92576
medium
Next.js· System Design
How do you analyze and reduce bundle size in Next.js?
9140
medium
Next.js· Frontend
How does fetch caching work in the Next.js App Router (force-cache, no-store, revalidate)?
90850
medium
Next.js· Frontend
How do you fetch data in Next.js Client Components (SWR, React Query, use)?
90779
medium
Next.js· Frontend
How do you revalidate data after a mutation in Next.js?
88713
medium
Next.js· Frontend
What are layouts and nested layouts in the Next.js App Router?
87080
medium
Next.js· System Design
What is Middleware in Next.js and what can it do?
8536
medium
Next.js· Frontend
What is the difference between the App Router and the Pages Router?
82616
medium
Next.js· Frontend
How do you handle redirects and rewrites in Next.js?
81312
medium
Next.js· Frontend
How does next/image optimize images in Next.js?
78010
medium
Next.js· Frontend
How do Server Actions differ from Route Handlers in Next.js?
73757
medium
Next.js· Frontend
What is error.js in Next.js and how does error handling work in the App Router?
73377
medium
Next.js· Frontend
How does next/font work and why does it improve performance?
73312
medium
Next.js· System Design
What is the difference between build-time and runtime environment variables in Next.js?
72146
medium
Next.js· Frontend
What is hydration in Next.js and what causes a hydration error?
69274
medium
Next.js· Frontend
What is Turbopack in Next.js and how does it compare to Webpack?
66016
medium
Next.js· Frontend
What is request memoization in Next.js?
60814
medium
Next.js· Frontend
What is next.config.js in Next.js and what are common configurations?
59646
medium
Next.js· System Design
What is on-demand revalidation in Next.js (revalidatePath / revalidateTag)?
5868
medium
Next.js· Frontend
How do you handle loading and error states for data fetching in Next.js?
58311
medium
Next.js· Frontend
How do you read request data and return responses in a Next.js Route Handler?
57020
medium
Next.js· Frontend
What is prefetching in Next.js and how does next/link prefetch routes?
55954
medium
Next.js· Frontend
How does code splitting and next/dynamic work in Next.js?
55327
medium
Next.js· Frontend
What is JSON-LD structured data and how do you add it in Next.js?
54975
medium
Next.js· Frontend
What are the special files in the Next.js App Router (page, layout, loading, error)?
49719
medium
Next.js· Frontend
How does the Metadata API work in Next.js (static and generateMetadata)?
49727
medium
Next.js· Frontend
What are Route Handlers in Next.js and how do they differ from Pages API routes?
49667
medium
Next.js· Frontend
What are the rendering strategies in Next.js (SSR, SSG, ISR, CSR)?
45079
medium
Next.js· System Design
What is ISR (Incremental Static Regeneration) in Next.js and how do you implement it?
41847
medium
Next.js· Frontend
How do you pass data from Server Components to Client Components in Next.js?
35069
medium
Next.js· Frontend
What are route groups in Next.js and how do you use them?
24942
medium
Next.js· Frontend
What is loading.js in Next.js and how does Suspense streaming work?
23759
medium
Next.js· Frontend
How do you fetch data in Next.js Server Components?
20776
medium
Next.js· System Design
How do you deploy a Next.js app (Vercel vs self-hosted)?
17439
medium
Next.js· Frontend
What is the difference between layout.js and template.js in Next.js?
1714
medium
Next.js· Frontend
How does Next.js handle SEO compared to a client-rendered SPA?
15230
medium
Next.js· System Design
What runtimes does Next.js support (Node.js vs Edge runtime)?
13764
medium
Next.js· Frontend
What is the 'use client' directive and when do you need it?
9429
medium
Next.js· System Design
What is the output: 'standalone' build in Next.js and when do you use it?
852
medium
Next.js· Frontend
How does Next.js handle CSS (CSS Modules, global, Tailwind, CSS-in-JS)?
8158
medium
Next.js· System Design
How do you migrate from the Pages Router to the App Router in Next.js?
1.2k10
hard
Next.js· Frontend
How do Server and Client Components compose in Next.js?
1.2k23
hard
Next.js· Frontend
What are React Server Components and why does Next.js use them?
1.1k1
hard
Next.js· System Design
What changed about caching defaults in Next.js 15?
1.0k50
hard
Next.js· System Design
How do you handle instrumentation and observability in Next.js (instrumentation.ts)?
1.0k30
hard
Next.js· Frontend
How do you do optimistic updates in Next.js (useOptimistic, useActionState)?
96023
hard
Next.js· Frontend
What are Server Actions in Next.js and how do they work?
84210
hard
Next.js· Frontend
What is Partial Prerendering (PPR) in Next.js?
7958
hard
Next.js· Frontend
What are parallel routes (@slot) in Next.js and when would you use them?
78366
hard
Next.js· System Design
How do you handle authentication in Next.js?
76928
hard
Next.js· Frontend
What are the security considerations for Server Actions in Next.js?
76422
hard
Next.js· Frontend
What is the Router Cache in Next.js and what are its implications?
58179
hard
Next.js· System Design
What are the caching layers in Next.js (Request Memoization, Data Cache, Full Route Cache, Router Cache)?
44369
hard
Next.js· Frontend
How do you implement dynamic Open Graph images in Next.js (ImageResponse)?
37372
hard
Next.js· Frontend
What is streaming SSR with Suspense in Next.js?
28335
hard
Next.js· Frontend
What are intercepting routes in Next.js and what are they used for?
27173
hard
Next.js· System Design
What is the Full Route Cache in Next.js?
16076
hard
Next.js· Frontend
How do you internationalize (i18n) a Next.js App Router app?
1165
hard
Difficulty Distribution
Easy7 (9%)
Medium50 (67%)
Hard18 (24%)
Tested Topics
#nextjs#routing#app-router#performance#caching#server-actions#rsc#ssr
Study Guide
Revisit core language idioms, architectural patterns, and runtime execution models. Practice code challenges daily.