diff --git a/packages/api/core/src/util/forge-config.ts b/packages/api/core/src/util/forge-config.ts index 842a27dd04..3f9768b025 100644 --- a/packages/api/core/src/util/forge-config.ts +++ b/packages/api/core/src/util/forge-config.ts @@ -28,7 +28,7 @@ const proxify = (buildIdentifier: string | (() => strin } for (const [key, val] of Object.entries(proxifiedObject)) { - if (typeof val === 'object' && key !== 'pluginInterface' && !(val instanceof RegExp)) { + if (typeof val === 'object' && (val.constructor === Object || val.constructor === Array) && key !== 'pluginInterface' && !(val instanceof RegExp)) { (newObject as any)[key] = proxify(buildIdentifier, (proxifiedObject as any)[key], `${envPrefix}_${underscoreCase(key)}`); } else { (newObject as any)[key] = (proxifiedObject as any)[key];