mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-12 12:25:22 +00:00
7 lines
189 B
TypeScript
7 lines
189 B
TypeScript
|
|
|
||
|
|
export const getEnv = (env: string | undefined, defaultValue = '') => {
|
||
|
|
return env ?? defaultValue;
|
||
|
|
}
|
||
|
|
|
||
|
|
export const SOURCEBOT_LOG_LEVEL = getEnv(process.env.SOURCEBOT_LOG_LEVEL, 'info');
|