File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
packages/next/src/build/static-paths Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 7
7
import type { PrerenderedRoute } from './types'
8
8
9
9
describe ( 'assignErrorIfEmpty' , ( ) => {
10
- it ( 'should assign throwOnEmptyStaticShell false for a static route' , ( ) => {
10
+ it ( 'should assign throwOnEmptyStaticShell true for a static route with no children ' , ( ) => {
11
11
const prerenderedRoutes : PrerenderedRoute [ ] = [
12
12
{
13
13
params : { } ,
@@ -25,7 +25,7 @@ describe('assignErrorIfEmpty', () => {
25
25
expect ( prerenderedRoutes [ 0 ] . throwOnEmptyStaticShell ) . toBe ( true )
26
26
} )
27
27
28
- it ( 'should assign throwOnEmptyStaticShell to the prerendered routes ' , ( ) => {
28
+ it ( 'should assign throwOnEmptyStaticShell based on route hierarchy ' , ( ) => {
29
29
const prerenderedRoutes : PrerenderedRoute [ ] = [
30
30
{
31
31
params : { } ,
Original file line number Diff line number Diff line change @@ -623,7 +623,7 @@ export async function buildAppStaticPaths({
623
623
if ( hadAllParamsGenerated || isRoutePPREnabled ) {
624
624
if ( isRoutePPREnabled ) {
625
625
// Discover all unique combinations of the rootParams so we can generate
626
- // shells for each of them if they're available.
626
+ // routes that won't throw on empty static shell for each of them if they're available.
627
627
routeParams . unshift (
628
628
...filterUniqueRootParamsCombinations ( rootParamKeys , routeParams )
629
629
)
You can’t perform that action at this time.
0 commit comments