mirror of
https://github.com/directus/directus.git
synced 2026-01-23 03:08:08 -05:00
Merge pull request #623 from mscbpi/main
Convert Numeric Values of Environment Variables to Number
This commit is contained in:
@@ -62,6 +62,7 @@ function processValues(env: Record<string, any>) {
|
||||
if (value === 'true') env[key] = true;
|
||||
if (value === 'false') env[key] = false;
|
||||
if (value === 'null') env[key] = null;
|
||||
if (isNaN(value) === false) env[key] = Number(value);
|
||||
}
|
||||
|
||||
return env;
|
||||
|
||||
Reference in New Issue
Block a user