next.js
6a39e9d2 - [Cache Components] Exclude dynamic params from prerenders when no generateStaticParams values is provided (#95872)

Commit
52 days ago
[Cache Components] Exclude dynamic params from prerenders when no generateStaticParams values is provided (#95872) Fixes an issue in self-hosted and Vercel Adapter that causes some routes that prerender static pages to include more route params than expected when running in Cache Components. For all Next.js environments any route matching a root param not already in the cache will result in a prerender that includes all params regardless of whether they were omitted from generateStaticParams. For Vercel Adapter environments any route without a fallback that has an empty shell during the build will prerender misses with all params regardless of whether they were omitted from generateStaticParams. This change fixes both issues and introduces a comprehensive test matrix to catch regressions in these kinds of prerender decisions in the future closes NAR-882
Author
Parents
Loading