mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-29 18:08:28 +00:00
web/env: accept 1 as bool value
This commit is contained in:
parent
3d2473d8ef
commit
bc8c16f469
@ -10,7 +10,8 @@ const getEnv = (_key: string) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const getEnvBool = (key: string) => {
|
const getEnvBool = (key: string) => {
|
||||||
return getEnv(key) === "true";
|
const value = getEnv(key);
|
||||||
|
return value && ['1', 'true'].includes(value.toLowerCase());
|
||||||
}
|
}
|
||||||
|
|
||||||
const variables = {
|
const variables = {
|
||||||
|
Loading…
Reference in New Issue
Block a user