From 4dc214df13e00be221c5e0bb6c6c1f0d1339b710 Mon Sep 17 00:00:00 2001 From: finnholland <65142636+finnholland@users.noreply.github.com> Date: Fri, 1 Nov 2024 15:22:03 +1030 Subject: [PATCH] removed excess edge lambda line --- packages/static-hosting/lib/static-hosting.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/static-hosting/lib/static-hosting.ts b/packages/static-hosting/lib/static-hosting.ts index be47d391..b1fd7cae 100644 --- a/packages/static-hosting/lib/static-hosting.ts +++ b/packages/static-hosting/lib/static-hosting.ts @@ -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, }; });