File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
packages/serverless-components/nextjs-component/src Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -451,6 +451,9 @@ class NextjsComponent extends Component {
451
451
typeof defaultBuildManifest . pages . ssg . nonDynamic [ key ]
452
452
. initialRevalidateSeconds === "number"
453
453
) ;
454
+ const hasDynamicISRPages = Object . keys (
455
+ defaultBuildManifest . pages . ssg . dynamic
456
+ ) . some ( ( key ) => defaultBuildManifest . pages . ssg . dynamic [ key ] . fallback !== false ) ;
454
457
455
458
const readLambdaInputValue = (
456
459
inputKey : "memory" | "timeout" | "name" | "runtime" | "roleArn" | "tags" ,
@@ -471,7 +474,7 @@ class NextjsComponent extends Component {
471
474
} ;
472
475
473
476
let queue ;
474
- if ( hasISRPages ) {
477
+ if ( hasISRPages || hasDynamicISRPages ) {
475
478
queue = await sqs ( {
476
479
name : `${ bucketOutputs . name } .fifo` ,
477
480
deduplicationScope : "messageGroup" ,
@@ -521,7 +524,7 @@ class NextjsComponent extends Component {
521
524
}
522
525
}
523
526
524
- if ( hasISRPages ) {
527
+ if ( hasISRPages || hasDynamicISRPages ) {
525
528
const regenerationLambdaInput : LambdaInput = {
526
529
region : bucketRegion , // make sure SQS region and regeneration lambda region are the same
527
530
description : inputs . description
You can’t perform that action at this time.
0 commit comments