Skip to content
This repository has been archived by the owner on Jan 28, 2025. It is now read-only.

Commit

Permalink
fix(cdk-construct): fix build error in cdk-construct
Browse files Browse the repository at this point in the history
  • Loading branch information
dphang committed Apr 21, 2021
1 parent 78ad38e commit d708265
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ export class NextJSLambdaEdge extends cdk.Construct {
props.domain.domainNames.forEach((domainName) => {
this.aRecord = new ARecord(this, "AliasRecord", {
recordName: domainName,
zone: props.domain.hostedZone,
zone: props.domain!.hostedZone, // not sure why ! is needed here
target: RecordTarget.fromAlias(
new CloudFrontTarget(this.distribution)
)
Expand Down

0 comments on commit d708265

Please sign in to comment.