Skip to content

Commit

Permalink
...spread after
Browse files Browse the repository at this point in the history
  • Loading branch information
onhate committed Jan 5, 2024
1 parent 5559f5a commit 62b293b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/NextjsDistribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ export class NextjsDistribution extends Construct {
allowedMethods: cloudfront.AllowedMethods.ALLOW_GET_HEAD_OPTIONS,
cachedMethods: cloudfront.CachedMethods.CACHE_GET_HEAD_OPTIONS,
cachePolicy: cloudfront.CachePolicy.CACHING_OPTIMIZED,
...staticBehaviorOptions,
responseHeadersPolicy,
...staticBehaviorOptions,
};
}

Expand Down Expand Up @@ -310,9 +310,9 @@ export class NextjsDistribution extends Construct {
originRequestPolicy: cloudfront.OriginRequestPolicy.ALL_VIEWER_EXCEPT_HOST_HEADER,
edgeLambdas: this.edgeLambdas.length ? this.edgeLambdas : undefined,
functionAssociations: this.createCloudFrontFnAssociations(),
...serverBehaviorOptions,
cachePolicy,
responseHeadersPolicy,
...serverBehaviorOptions,
};
}

Expand Down Expand Up @@ -385,9 +385,9 @@ export class NextjsDistribution extends Construct {
cachedMethods: cloudfront.CachedMethods.CACHE_GET_HEAD_OPTIONS,
originRequestPolicy: cloudfront.OriginRequestPolicy.ALL_VIEWER_EXCEPT_HOST_HEADER,
edgeLambdas: this.edgeLambdas,
...imageBehaviorOptions,
cachePolicy,
responseHeadersPolicy,
...imageBehaviorOptions,
};
}

Expand Down

0 comments on commit 62b293b

Please sign in to comment.