From 5e090c5cbca4b015ab2bd032088a30a41957ca70 Mon Sep 17 00:00:00 2001 From: Ruben Izmailyan Date: Sat, 20 Jul 2024 12:44:54 -0500 Subject: [PATCH] Fix debug config --- packages/core/src/configuration.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/core/src/configuration.ts b/packages/core/src/configuration.ts index 8a877538..c45e6bc3 100644 --- a/packages/core/src/configuration.ts +++ b/packages/core/src/configuration.ts @@ -2,12 +2,9 @@ import { name as packageName, version as packageVersion } from '../package.json' const QUILTT_API_INSECURE = (() => { try { - if (process.env.QUILTT_API_INSECURE === 'true' || process.env.QUILTT_API_INSECURE === 'false') { - return process.env.QUILTT_API_INSECURE === 'true' - } - return process.env.QUILTT_API_INSECURE + process.env.QUILTT_API_INSECURE === 'true' } catch { - return undefined + return false } })() @@ -21,7 +18,7 @@ const QUILTT_API_DOMAIN = (() => { const QUILTT_DEBUG = (() => { try { - return !!process.env.QUILTT_DEBUG || process.env.NODE_ENV !== 'production' + return process.env.NODE_ENV !== 'production' && process.env.QUILTT_DEBUG === 'true' } catch { return false }