From 8e53ae348479fc1bedbd2e537f5cf2e9ce057a3d Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 6 May 2022 11:42:24 +0200 Subject: [PATCH] fix: Check DNS in prod only --- src/routes/applications/[id]/check.json.ts | 2 +- src/routes/settings/check.json.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/applications/[id]/check.json.ts b/src/routes/applications/[id]/check.json.ts index 0960014fc..021cb5975 100644 --- a/src/routes/applications/[id]/check.json.ts +++ b/src/routes/applications/[id]/check.json.ts @@ -61,7 +61,7 @@ export const post: RequestHandler = async (event) => { } } - if (isDNSCheckEnabled && !forceSave) { + if (isDNSCheckEnabled && !dev && !forceSave) { return await checkDomainsIsValidInDNS({ event, fqdn, dualCerts }); } diff --git a/src/routes/settings/check.json.ts b/src/routes/settings/check.json.ts index 88eaa0293..22c6c53d8 100644 --- a/src/routes/settings/check.json.ts +++ b/src/routes/settings/check.json.ts @@ -44,7 +44,7 @@ export const post: RequestHandler = async (event) => { }) }; } - if (isDNSCheckEnabled && !forceSave) { + if (isDNSCheckEnabled && !dev && !forceSave) { return await checkDomainsIsValidInDNS({ event, fqdn, dualCerts }); } return {