Skip to content

Commit 769e2c3

Browse files
committed
fix: check for process.env.CONFIG_SYNC_CLI with 'true' instead of true
1 parent 6821110 commit 769e2c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/bootstrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ module.exports = async () => {
5050
if (strapi.config.get('plugin.config-sync.importOnBootstrap')) {
5151
if (strapi.server.app.env === 'development') {
5252
strapi.log.warn(logMessage(`You can't use the 'importOnBootstrap' setting in the development env.`));
53-
} else if (process.env.CONFIG_SYNC_CLI === true) {
53+
} else if (process.env.CONFIG_SYNC_CLI === 'true') {
5454
strapi.log.warn(logMessage(`The 'importOnBootstrap' setting was ignored because Strapi was started from the config-sync CLI itself.`));
5555
} else if (fs.existsSync(strapi.config.get('plugin.config-sync.syncDir'))) {
5656
await strapi.plugin('config-sync').service('main').importAllConfig();

0 commit comments

Comments
 (0)