Architecture & Design
- How would you design a scalable Next.js app?
- How to structure large-scale projects?
- How to implement modular architecture?
Rendering Deep Dive
- Explain server-first architecture.
- How does React Server Components work?
- How does streaming improve performance?
- How does Suspense work in Next.js?
Data Fetching Strategy
- How to balance stale vs fresh data?
- How does cache revalidation work?
- How to fetch authenticated data?
- When to use edge runtime?
Performance Optimization
- How to optimize a large-scale Next.js app?
- How to handle heavy traffic?
- How to reduce TTFB?
- How to optimize API performance?
Routing Advanced
- What are parallel routes?
- What are intercepting routes?
- What are route groups?
- How to design nested routing?
App Router Advanced
- What are server actions?
- Benefits of server actions?
- Limitations of server actions?
- Alternatives to server actions?
Authentication & Authorization
- How to implement RBAC?
- JWT vs NextAuth vs Firebase?
- How to secure routes?
- How to handle auth in middleware?
API Design
- Best practices for API routes?
- How to validate input?
- Error handling strategies?
Config Deep Dive
- What is
next.config.js experimental? - What is
publicRuntimeConfig? - What is
serverRuntimeConfig? - Difference from env variables?
Deployment & DevOps
- How to deploy SSR vs static apps?
- What is
next export? - Limitations of static export?
- Dockerizing Next.js app?
SEO & Optimization
- How to implement advanced SEO?
- How to generate sitemap?
- How to optimize Core Web Vitals?
Middleware & Edge
- Edge functions vs serverless?
- How to implement geo-based routing?
- How to use middleware for auth?
Error Handling
- Custom error boundaries?
- How to handle global errors?
- How to avoid crashes?
Security
- Best security practices?
- How to prevent API abuse?
- CSRF/XSS protection?
State Management
- Global state strategies?
- Redux vs Context vs Zustand?
Real-world Scenarios
- How to build a dashboard with auth?
- How to implement pagination/filtering?
- How to handle file uploads?
- How to implement GraphQL?
Migration & Strategy
- How to migrate Pages → App Router?
- When to use App Router vs Pages Router?
- Limitations of Next.js?
- Is Next.js suitable for enterprise apps?