Skip to content

Commit

Permalink
Fix DNS zone name computation (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
chokoswitch authored Oct 9, 2024
1 parent a3666dd commit 21c6f9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bootstrap/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,14 @@ export class Bootstrap extends Construct {
if (config.domain) {
const alphaDnsZone = new DnsManagedZone(this, "alpha-dns-zone", {
project: this.devProject.project.projectId,
name: `alpha-${config.domain.replace(".", "-")}`,
name: `alpha-${config.domain.replaceAll(".", "-")}`,
dnsName: `alpha.${config.domain}.`,
dependsOn: [this.devProject.dnsService],
});

const prodDnsZone = new DnsManagedZone(this, "prod-dns-zone", {
project: this.prodProject.project.projectId,
name: config.domain.replace(".", "-"),
name: config.domain.replaceAll(".", "-"),
dnsName: `${config.domain}.`,
dependsOn: [this.prodProject.dnsService],
});
Expand Down

0 comments on commit 21c6f9f

Please sign in to comment.