We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd9a72e commit c7c42e8Copy full SHA for c7c42e8
app-config-node/src/environment.ts
@@ -82,17 +82,14 @@ export function currentEnvironment(...args: any[]): string | undefined {
82
if (args[0]) {
83
environmentAliases = args[0] as EnvironmentAliases;
84
logger.warn('Detected deprecated usage of currentEnvironment');
85
- throw new Error(JSON.stringify(args[0]));
86
}
87
88
if (Array.isArray(args[1])) {
89
environmentSourceNames = args[1] as string[];
90
91
92
} else if (typeof args[1] === 'string') {
93
environmentSourceNames = [args[1]];
94
95
96
97
98
0 commit comments