Skip to content

Commit

Permalink
spread dns record overrides into props (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickufer authored Mar 6, 2024
1 parent 1b295a4 commit 1f7ad33
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/NextjsDomain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,14 @@ export class NextjsDomain extends Construct {
zone: this.hostedZone,
target: RecordTarget.fromAlias(new CloudFrontTarget(distribution)),
};
new ARecord(this, 'ARecordMain', recordProps); // IPv4
new AaaaRecord(this, 'AaaaRecordMain', recordProps); // IPv6
new ARecord(this, 'ARecordMain', {
...recordProps,
...this.props.overrides?.aRecordProps,
}); // IPv4
new AaaaRecord(this, 'AaaaRecordMain', {
...recordProps,
...this.props.overrides?.aaaaRecordProps,
}); // IPv6
if (this.props.alternateNames?.length) {
let i = 1;
for (const alternateName of this.props.alternateNames) {
Expand Down

0 comments on commit 1f7ad33

Please sign in to comment.