diff --git a/config/SharedConfig.ts b/config/SharedConfig.ts index 0f8f8b0397b4a855f9a761934e7a37f5a9e6b9a3..c61c4ae44e9bb4a10e205bd7b1222cfe84ecbeb1 100644 --- a/config/SharedConfig.ts +++ b/config/SharedConfig.ts @@ -1,6 +1,7 @@ class SharedConfig { public readonly production: boolean; public debug: boolean = false; + public useSonar: boolean = false; public readonly logsFolder: string; @@ -21,6 +22,7 @@ class SharedConfig { constructor() { this.production = process.env.NODE_ENV === 'production'; + this.useSonar = ['yes', 'true', '1', 'on'].includes(process.env.USE_SONAR?.trim()?.toLowerCase() ?? ''); this.logsFolder = process.env.LOGS_FOLDER || '';