⏳ Installation
Complete installation requirements are the exact same as for Strapi itself and can be found in the Strapi documentation.
Supported Strapi versions:
Strapi v5 use strapi-plugin-config-sync@^3
Strapi v4 use strapi-plugin-config-sync@^1
Install the plugin in your Strapi project.
- Yarn
- NPM
yarn add strapi-plugin-config-sync
npm install strapi-plugin-config-sync --save
Add the export path to the watchIgnoreFiles
list in the config/admin.js
file.
This way your app won't reload when you export the config in development.
module.exports = ({ env }) => ({
// ...
watchIgnoreFiles: [
'**/config/sync/**',
],
});
After successful installation you have to rebuild the admin UI so it'll include this plugin. To rebuild and restart Strapi run:
- Yarn
- NPM
yarn build
yarn develop
npm run build
npm run develop
The Config Sync plugin should now appear in the Settings section of your Strapi app.
To start tracking your config changes you have to make the first export. This will dump all your configuration data to the /config/sync
directory. You can export either through the CLI or Strapi admin panel
Enjoy 🎉