Next.js · Senior · Question 72 of 75
A catalog has 1M products. How do you build quickly but still serve all of them statically (without Cache Components)?
- ✓Correct answer: Return only the most popular products from
generateStaticParams; others render on first request and are cached (dynamicParamsstaystrue) - 2Return all 1M params and wait for the build
- 3Make every product page fully dynamic
Explanation
Build time scales with prerendered pages. On-demand generation fills the cache gradually, and ISR revalidation keeps pages fresh.