Skip to content

Commit

Permalink
fix: check for process.env.CONFIG_SYNC_CLI with 'true' instead of true
Browse files Browse the repository at this point in the history
  • Loading branch information
boazpoolman committed Apr 18, 2024
1 parent 6821110 commit 769e2c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,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.`));
} else if (process.env.CONFIG_SYNC_CLI === true) {
} else if (process.env.CONFIG_SYNC_CLI === 'true') {
strapi.log.warn(logMessage(`The 'importOnBootstrap' setting was ignored because Strapi was started from the config-sync CLI itself.`));
} else if (fs.existsSync(strapi.config.get('plugin.config-sync.syncDir'))) {
await strapi.plugin('config-sync').service('main').importAllConfig();
Expand Down

0 comments on commit 769e2c3

Please sign in to comment.