Skip to content
Snippets Groups Projects
Commit aeb08a04 authored by joel.vonderwe's avatar joel.vonderwe Committed by michael.minelli
Browse files

Change sonar config

parent 1a3bafe1
No related branches found
No related tags found
No related merge requests found
class SharedConfig {
public readonly production: boolean;
public debug: boolean = false;
public useSonar: boolean = false;
public readonly logsFolder: string;
public sonar: {
enabled: boolean
url: string
}
constructor() {
this.production = process.env.NODE_ENV === 'production';
this.useSonar = ['yes', 'true', '1', 'on'].includes(process.env.USE_SONAR?.trim()?.toLowerCase() ?? '');
this.sonar = {
enabled: ['yes', 'true', '1', 'on'].includes(process.env.SONAR_ENABLED?.trim()?.toLowerCase() ?? ''),
url: process.env.SONAR_URL || ''
};
this.logsFolder = process.env.LOGS_FOLDER ?? '';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment