diff --git a/infra/lib/staking/app.ts b/infra/lib/staking/app.ts index 634bbd1d39..61569a6cc3 100644 --- a/infra/lib/staking/app.ts +++ b/infra/lib/staking/app.ts @@ -105,7 +105,7 @@ applications: const certRecord = domainCert.apply((_cert) => { const certDetails = _cert.split(" "); // Name Type Value const certRecord = new cloudflare.Record("cloudflare-certificate-record", { - name: certDetails[0].replace(cloudflareDomain, ''), // remove the autocomplete domain + name: certDetails[0].replace(`.${cloudflareDomain}.`, ''), // remove the autocomplete domain zoneId: cloudflareZoneId, type: certDetails[1], value: certDetails[2],