Skip to content

Commit 010ae19

Browse files
committed
fix: Bootstrap function
1 parent ae329b9 commit 010ae19

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

server/bootstrap.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ module.exports = async () => {
4141
if (strapi.config.get('plugin.config-sync.importOnBootstrap')) {
4242
if (strapi.server.app.env === 'development') {
4343
strapi.log.warn(logMessage(`You can't use the 'importOnBootstrap' setting in the development env.`));
44-
return;
45-
}
46-
if (fs.existsSync(strapi.config.get('plugin.config-sync.syncDir'))) {
44+
} else if (fs.existsSync(strapi.config.get('plugin.config-sync.syncDir'))) {
4745
await strapi.plugin('config-sync').service('main').importAllConfig();
4846
}
4947
}

0 commit comments

Comments
 (0)