This repository was archived by the owner on Jan 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
packages/serverless-components/nextjs-component/src Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -989,6 +989,26 @@ class NextjsComponent extends Component {
989
989
}
990
990
} ;
991
991
992
+ cloudFrontOrigins [ 1 ] . pathPatterns [
993
+ this . pathPattern ( "/lp*" , routesManifest )
994
+ ] = {
995
+ minTTL : 0 ,
996
+ defaultTTL : 0 ,
997
+ maxTTL : 86400 ,
998
+ forward : {
999
+ cookies : "all" ,
1000
+ headers : routesManifest . i18n
1001
+ ? [ "Accept-Language" , "Authorization" , "Host" ]
1002
+ : [ "Authorization" , "Host" ] ,
1003
+ queryString : true
1004
+ } ,
1005
+ // lambda@edge key is last and therefore cannot be overridden
1006
+ "lambda@edge" : {
1007
+ "origin-request" : `${ defaultEdgeLambdaOutputs . arn } :${ defaultEdgeLambdaPublishOutputs . version } ` ,
1008
+ "origin-response" : `${ defaultEdgeLambdaOutputs . arn } :${ defaultEdgeLambdaPublishOutputs . version } `
1009
+ }
1010
+ } ;
1011
+
992
1012
// If we are using consolidated API pages (within default lambda), we need to ensure api/* behavior is set correctly.
993
1013
// Note that if there are no consolidated API pages then existing api/* is not deleted.
994
1014
// We do so for a couple reasons:
You can’t perform that action at this time.
0 commit comments