refactor(backend): Gebruik EnvVars ipv. process.env

This commit is contained in:
Tibo De Peuter 2025-03-21 11:12:19 +01:00
parent 9a17762fd4
commit 4fd03cd616
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
4 changed files with 24 additions and 18 deletions

View file

@ -1,12 +1,7 @@
import { EnvVars, getEnvVar } from './util/envvars.js';
import { Language } from './entities/content/language.js';
// API
export const DWENGO_API_BASE = getEnvVar(EnvVars.LearningContentRepoApiBaseUrl);
export const FALLBACK_LANG = getEnvVar(EnvVars.FallbackLanguage);
// Logging
export const LOG_LEVEL: string = 'development' === process.env.NODE_ENV ? 'debug' : 'info';
export const LOKI_HOST: string = process.env.LOKI_HOST || 'http://localhost:3102';
export const FALLBACK_SEQ_NUM = 1;