Skip to content

Commit 0b2110c

Browse files
committed
make get return copy of the config
1 parent ff29999 commit 0b2110c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

@bellatrix/core/src/settings/BellatrixSettings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ export class BellatrixSettings {
44
private static _config: BellatrixConfiguration = JSON.parse(process.env.BELLATRIX_CONFIGURAITON!);
55

66
public static get<T extends BellatrixConfiguration>(): T {
7-
return this._config as T;
7+
return { ...this._config} as T;
88
}
99
}

0 commit comments

Comments
 (0)