Skip to content

Commit a89ed7d

Browse files
fix: do not proxify class instances in forge config (#3039)
* fix: do not proxify class instances in forge config * spec: fix config tests
1 parent e490ffc commit a89ed7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/api/core/src/util/forge-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const proxify = <T extends ProxiedObject>(buildIdentifier: string | (() => strin
2828
}
2929

3030
for (const [key, val] of Object.entries(proxifiedObject)) {
31-
if (typeof val === 'object' && key !== 'pluginInterface' && !(val instanceof RegExp)) {
31+
if (typeof val === 'object' && (val.constructor === Object || val.constructor === Array) && key !== 'pluginInterface' && !(val instanceof RegExp)) {
3232
(newObject as any)[key] = proxify(buildIdentifier, (proxifiedObject as any)[key], `${envPrefix}_${underscoreCase(key)}`);
3333
} else {
3434
(newObject as any)[key] = (proxifiedObject as any)[key];

0 commit comments

Comments
 (0)