From 010ae19bc4cee2364ffbc331979d2b6583088df5 Mon Sep 17 00:00:00 2001 From: Boaz Poolman Date: Wed, 26 Jan 2022 19:27:09 +0100 Subject: [PATCH] fix: Bootstrap function --- server/bootstrap.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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(); } }