From d509efa1b35e100446ace49d8e665ca72e5a7afe Mon Sep 17 00:00:00 2001 From: Joel von der Weid <joel.von-der-weid@hesge.ch> Date: Mon, 26 Feb 2024 10:53:51 +0100 Subject: [PATCH] Add sonar in config --- config/SharedConfig.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/SharedConfig.ts b/config/SharedConfig.ts index 0f8f8b0..c61c4ae 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 || ''; -- GitLab