mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Update env.ts
convert numeric values 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 (isNumeric(value)) env[key] = Number(value);
|
||||
}
|
||||
|
||||
return env;
|
||||
|
||||
Reference in New Issue
Block a user