fix: Check DNS in prod only

This commit is contained in:
Andras Bacsai 2022-05-06 11:42:24 +02:00
parent 7ceb8f1537
commit 8e53ae3484
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ export const post: RequestHandler = async (event) => {
} }
} }
if (isDNSCheckEnabled && !forceSave) { if (isDNSCheckEnabled && !dev && !forceSave) {
return await checkDomainsIsValidInDNS({ event, fqdn, dualCerts }); return await checkDomainsIsValidInDNS({ event, fqdn, dualCerts });
} }

View File

@ -44,7 +44,7 @@ export const post: RequestHandler = async (event) => {
}) })
}; };
} }
if (isDNSCheckEnabled && !forceSave) { if (isDNSCheckEnabled && !dev && !forceSave) {
return await checkDomainsIsValidInDNS({ event, fqdn, dualCerts }); return await checkDomainsIsValidInDNS({ event, fqdn, dualCerts });
} }
return { return {