Skip to content

Commit

Permalink
Rewrite missing keys
Browse files Browse the repository at this point in the history
  • Loading branch information
rphillips-nz committed Dec 6, 2021
1 parent 37bca0d commit 7d92f8c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ function getLegacyConfig(context) {

const legacy = context.cloudcannon || {};
rewriteKey(legacy, 'data', 'data_config');
rewriteKey(legacy, '_collection_groups', 'collection_groups');
rewriteKey(legacy, '_editor', 'editor');
rewriteKey(legacy, '_source_editor', 'source_editor');

if (legacy.collections) {
legacy.collections = Object.keys(legacy.collections).reduce((memo, key) => {
Expand Down

0 comments on commit 7d92f8c

Please sign in to comment.