fix: convert config before passing to resolveBackend (#4948)

This commit is contained in:
Erez Rokah 2021-02-10 09:16:08 -08:00 committed by GitHub
parent 521896cd66
commit 9dd64a78b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -38,4 +38,4 @@ const runCypress = async () => {
} }
}; };
runCypress().catch(error => console.error(error)); runCypress();

View File

@ -208,7 +208,7 @@ export function applyDefaults(originalConfig) {
throwOnMissingDefaultLocale(i18n); throwOnMissingDefaultLocale(i18n);
const backend = resolveBackend(config); const backend = resolveBackend(fromJS(config));
for (const collection of config.collections) { for (const collection of config.collections) {
if (!('publish' in collection)) { if (!('publish' in collection)) {