We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3040a38 commit 937b412Copy full SHA for 937b412
1 file changed
runtime/initialize.js
@@ -181,10 +181,13 @@ async function runtimeConfig() {
181
}
182
183
const { data } = await apiService.get(runtimeConfigUrl.toString(), apiConfig);
184
+ if (!data || typeof data !== 'object' || Array.isArray(data)) {
185
+ throw new TypeError('Runtime config must be a valid JSON object.');
186
+ }
187
mergeSiteConfig(data, { limitAppMergeToConfig: true });
188
189
} catch (error) {
- console.error('Error with config API', error.message);
190
+ console.error('Error with config API:', error.message);
191
192
193
0 commit comments