diff --git a/controllers/config.js b/controllers/config.js index e5d212a..4a929c7 100644 --- a/controllers/config.js +++ b/controllers/config.js @@ -15,11 +15,19 @@ module.exports = { * @returns {void} */ exportAll: async (ctx) => { + if (strapi.config.get('autoReload')) { + ctx.send({ + message: `Config was successfully exported to ${strapi.plugins['config-sync'].config.destination}.` + }); + } + await strapi.plugins['config-sync'].services.main.exportAllConfig(); - ctx.send({ - message: `Config was successfully exported to ${strapi.plugins['config-sync'].config.destination}.` - }); + if (!strapi.config.get('autoReload')) { + ctx.send({ + message: `Config was successfully exported to ${strapi.plugins['config-sync'].config.destination}.` + }); + } }, /**