Environment variable type coercion fix (#9074)
* Environment variable type coercion fix * Update .gitignore
This commit is contained in:
parent
0055a08586
commit
8b01297973
|
@ -4,6 +4,7 @@ builder/*
|
|||
packages/server/runtime_apps/
|
||||
.idea/
|
||||
bb-airgapped.tar.gz
|
||||
*.iml
|
||||
|
||||
# Logs
|
||||
logs
|
||||
|
|
|
@ -108,12 +108,12 @@ const environment = {
|
|||
}
|
||||
|
||||
// threading can cause memory issues with node-ts in development
|
||||
if (isDev() && module.exports.DISABLE_THREADING == null) {
|
||||
if (isDev() && environment.DISABLE_THREADING == null) {
|
||||
environment._set("DISABLE_THREADING", "1")
|
||||
}
|
||||
|
||||
// clean up any environment variable edge cases
|
||||
for (let [key, value] of Object.entries(module.exports)) {
|
||||
for (let [key, value] of Object.entries(environment)) {
|
||||
// handle the edge case of "0" to disable an environment variable
|
||||
if (value === "0") {
|
||||
// @ts-ignore
|
||||
|
|
Loading…
Reference in New Issue