Skip to content

Commit

Permalink
Fix debug config
Browse files Browse the repository at this point in the history
  • Loading branch information
rubendinho committed Jul 20, 2024
1 parent 03c363b commit 5e090c5
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions packages/core/src/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
})()

Expand All @@ -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
}
Expand Down

0 comments on commit 5e090c5

Please sign in to comment.