Skip to content

Commit

Permalink
removed excess edge lambda line
Browse files Browse the repository at this point in the history
  • Loading branch information
finnholland committed Nov 1, 2024
1 parent ace316a commit 4dc214d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions packages/static-hosting/lib/static-hosting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -577,14 +577,11 @@ export class StaticHosting extends Construct {
props.defaultBehaviourPrefixes?.forEach(prefix => {
additionalBehaviors[`${prefix.prefix}*`] = {
origin: s3Origin,
viewerProtocolPolicy:
ViewerProtocolPolicy.REDIRECT_TO_HTTPS,
edgeLambdas: prefix.behaviourOverride.edgeLambdas,
viewerProtocolPolicy: ViewerProtocolPolicy.REDIRECT_TO_HTTPS,
originRequestPolicy: originRequestPolicy,
cachePolicy: originCachePolicy,
responseHeadersPolicy:
responseHeadersPolicy,
...prefix.behaviourOverride
responseHeadersPolicy: responseHeadersPolicy,
...prefix.behaviourOverride,
};
});

Expand Down

0 comments on commit 4dc214d

Please sign in to comment.