Skip to content

Commit bef9265

Browse files
authored
Cf update (#2)
* Change clouflare-ipfs domains to a new one Due to deprecation procedure taking place in Cloudflare we need to update the domain added in the CNAME entry * update DNSLINK for staging as well * fix dnslink with cloudflare
1 parent 288f28d commit bef9265

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ const updateOrCreateRecord = async (name, type, _payload) => {
5151
const updateCloudFlareRecord = async (hash, domain) => {
5252
console.log(`domain to update - https://${domain}`);
5353

54-
if (domain !== 'app.aave.com' && domain !== 'staging.aave.com') {
54+
if (domain === 'app.aave.com' || domain === 'staging.aave.com') {
55+
console.log('skipping CNAME record for app/staging domain');
56+
} else {
5557
console.log('updating CNAME record');
5658
await updateOrCreateRecord(domain, 'CNAME', {
5759
content: `cloudflare-ipfs.com`,

0 commit comments

Comments
 (0)