We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76d6260 commit 2b20791Copy full SHA for 2b20791
controllers/config.js
@@ -15,11 +15,19 @@ module.exports = {
15
* @returns {void}
16
*/
17
exportAll: async (ctx) => {
18
+ if (strapi.config.get('autoReload')) {
19
+ ctx.send({
20
+ message: `Config was successfully exported to ${strapi.plugins['config-sync'].config.destination}.`
21
+ });
22
+ }
23
+
24
await strapi.plugins['config-sync'].services.main.exportAllConfig();
25
- ctx.send({
- message: `Config was successfully exported to ${strapi.plugins['config-sync'].config.destination}.`
- });
26
+ if (!strapi.config.get('autoReload')) {
27
28
29
30
31
},
32
33
/**
0 commit comments