Admins gives errors at first export
SalahAdDin opened this issue · 2 comments
We are testing this plugin in order to import our development settings.
At the first use, we exported the configuration but it gave us an error message and it was not refreshed, the problem here is, ever document was exported properly:
After refreshing it we got the changed files, whitout any problem.
What's the bug here?
Hi @SalahAdDin,
Thanks for your issue submission.
I think this issue can be prevented by adding the sync dir to the watchIgnore files setting in Strapi.
This way your app will not restart upon config file changes, which is the desired outcome.
You can do this by editing the config/server.js
file in your strapi project and adding the following:
admin: {
auth: {
// ...
},
watchIgnoreFiles: [
'**/config-sync/files/**',
],
},
Please let me know if this fixes the issue! :)
Oh, sorry, we had it out of the admin settings.
Thanks.