diff --git a/server/bootstrap.js b/server/bootstrap.js index 88743ae..6246dcd 100644 --- a/server/bootstrap.js +++ b/server/bootstrap.js @@ -41,9 +41,7 @@ module.exports = async () => { if (strapi.config.get('plugin.config-sync.importOnBootstrap')) { if (strapi.server.app.env === 'development') { strapi.log.warn(logMessage(`You can't use the 'importOnBootstrap' setting in the development env.`)); - return; - } - if (fs.existsSync(strapi.config.get('plugin.config-sync.syncDir'))) { + } else if (fs.existsSync(strapi.config.get('plugin.config-sync.syncDir'))) { await strapi.plugin('config-sync').service('main').importAllConfig(); } }