This repository was archived by the owner on Jan 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
packages/libs/lambda-at-edge/src Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -641,7 +641,9 @@ class Builder {
641
641
642
642
for ( const key in ssrPages . dynamic ) {
643
643
const newKey = key === "/" ? `/${ locale } ` : `/${ locale } ${ key } ` ;
644
- localeSsrPages . dynamic [ newKey ] = { } ;
644
+
645
+ // Initial default value
646
+ localeSsrPages . dynamic [ newKey ] = { file : "" , regex : "" } ;
645
647
const newDynamicSsr = Object . assign (
646
648
localeSsrPages . dynamic [ newKey ] ,
647
649
ssrPages . dynamic [ key ]
@@ -670,7 +672,13 @@ class Builder {
670
672
671
673
for ( const key in ssgPages . nonDynamic ) {
672
674
const newKey = key === "/" ? `/${ locale } ` : `/${ locale } ${ key } ` ;
673
- localeSsgPages . nonDynamic [ newKey ] = { } ;
675
+
676
+ // Initial default value
677
+ localeSsgPages . nonDynamic [ newKey ] = {
678
+ initialRevalidateSeconds : false ,
679
+ srcRoute : null ,
680
+ dataRoute : ""
681
+ } ;
674
682
675
683
const newSsgRoute = Object . assign (
676
684
localeSsgPages . nonDynamic [ newKey ] ,
Original file line number Diff line number Diff line change @@ -621,7 +621,7 @@ const hasFallbackForUri = (
621
621
let foundFallback :
622
622
| {
623
623
routeRegex : string ;
624
- fallback : string | false ;
624
+ fallback : string | false | null ;
625
625
dataRoute : string ;
626
626
dataRouteRegex : string ;
627
627
}
You can’t perform that action at this time.
0 commit comments