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 c98ad97 commit 1c2ce16Copy full SHA for 1c2ce16
client/utils/getConfig.ts
@@ -17,7 +17,7 @@ interface GetConfigOptions {
17
throwErrorIfNotFound?: boolean;
18
}
19
20
-const defaultGetConfigOptions: GetConfigOptions = {
+const DEFAULT_GET_CONFIG_OPTIONS: GetConfigOptions = {
21
warn: !isTestEnvironment,
22
nullishString: false,
23
throwErrorIfNotFound: false
@@ -44,7 +44,7 @@ export function getConfig(
44
45
// override default options with param options
46
const { warn, nullishString, throwErrorIfNotFound } = {
47
- ...defaultGetConfigOptions,
+ ...DEFAULT_GET_CONFIG_OPTIONS,
48
...options
49
};
50
0 commit comments