Architecture & Design

  1. How would you design a scalable Next.js app?
  2. How to structure large-scale projects?
  3. How to implement modular architecture?

Rendering Deep Dive

  1. Explain server-first architecture.
  2. How does React Server Components work?
  3. How does streaming improve performance?
  4. How does Suspense work in Next.js?

Data Fetching Strategy

  1. How to balance stale vs fresh data?
  2. How does cache revalidation work?
  3. How to fetch authenticated data?
  4. When to use edge runtime?

Performance Optimization

  1. How to optimize a large-scale Next.js app?
  2. How to handle heavy traffic?
  3. How to reduce TTFB?
  4. How to optimize API performance?

Routing Advanced

  1. What are parallel routes?
  2. What are intercepting routes?
  3. What are route groups?
  4. How to design nested routing?

App Router Advanced

  1. What are server actions?
  2. Benefits of server actions?
  3. Limitations of server actions?
  4. Alternatives to server actions?

Authentication & Authorization

  1. How to implement RBAC?
  2. JWT vs NextAuth vs Firebase?
  3. How to secure routes?
  4. How to handle auth in middleware?

API Design

  1. Best practices for API routes?
  2. How to validate input?
  3. Error handling strategies?

Config Deep Dive

  1. What is next.config.js experimental?
  2. What is publicRuntimeConfig?
  3. What is serverRuntimeConfig?
  4. Difference from env variables?

Deployment & DevOps

  1. How to deploy SSR vs static apps?
  2. What is next export?
  3. Limitations of static export?
  4. Dockerizing Next.js app?

SEO & Optimization

  1. How to implement advanced SEO?
  2. How to generate sitemap?
  3. How to optimize Core Web Vitals?

Middleware & Edge

  1. Edge functions vs serverless?
  2. How to implement geo-based routing?
  3. How to use middleware for auth?

Error Handling

  1. Custom error boundaries?
  2. How to handle global errors?
  3. How to avoid crashes?

Security

  1. Best security practices?
  2. How to prevent API abuse?
  3. CSRF/XSS protection?

State Management

  1. Global state strategies?
  2. Redux vs Context vs Zustand?

Real-world Scenarios

  1. How to build a dashboard with auth?
  2. How to implement pagination/filtering?
  3. How to handle file uploads?
  4. How to implement GraphQL?

Migration & Strategy

  1. How to migrate Pages → App Router?
  2. When to use App Router vs Pages Router?
  3. Limitations of Next.js?
  4. Is Next.js suitable for enterprise apps?