fix: Bootstrap function

pull/47/head
Boaz Poolman 2022-01-26 19:27:09 +01:00
parent ae329b91a3
commit 010ae19bc4
1 changed files with 1 additions and 3 deletions

View File

@ -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();
}
}