Interview Q&A · questions with model answers
Next.js Developer Interview Questions
Part of the study plan for: Frontend Engineer · Full Stack Engineer
Ordered by how often they're asked. Most-asked answers are free to read in full; members see every answer and can rate their confidence on each.
-
Design the caching strategy for a Next.js e-commerce site with product pages, a cart and personalised recommendations.
Cache what's shared and change it on events: statically render or cache product and category pages and revalidate them by tag when a product changes; keep the cart and anything personal dynamic and…
-
How would you build a multi-tenant SaaS on Next.js with custom domains or subdomains?
Resolve the tenant from the hostname in middleware/proxy and rewrite to a dynamic segment (e.g., /[domain]/...), load tenant config in Server Components, scope all data by tenant in the data layer,…