File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
packages/static-hosting/lib Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @aligent/cdk-static-hosting " : patch
3+ ---
4+
5+ Fixed undefined error for Static Hosting additionalBehavior paths
Original file line number Diff line number Diff line change @@ -679,8 +679,12 @@ export class StaticHosting extends Construct {
679679 if ( props . responseHeadersPolicies ?. additionalBehaviorResponsePolicy ) {
680680 for ( const path in props . responseHeadersPolicies
681681 . additionalBehaviorResponsePolicy ) {
682- additionalBehaviors [ path ] . responseHeadersPolicy =
683- props . responseHeadersPolicies . additionalBehaviorResponsePolicy [ path ] ;
682+ if ( additionalBehaviors [ path ] ) {
683+ additionalBehaviors [ path ] . responseHeadersPolicy =
684+ props . responseHeadersPolicies . additionalBehaviorResponsePolicy [
685+ path
686+ ] ;
687+ }
684688 }
685689 }
686690
You can’t perform that action at this time.
0 commit comments