We are creating blocks in our local docksal setup. When we move the code changes, we keep exporting/importing the blocks json files manually. We would like to have an option to sync the blocks across all environments from lower to prod.
We need a solution like this: whenever we create a block in our local environment, it automatically adds a group_key.json file under the acf-json folder, where every developer should create this folder in their theme or custom plugin.
This group_key.json file will have the final version after adding/removing fields in it. If we can commit this acf-json folder, we want this new block to be auto-imported on the dev environment. Likewise, it should be with test/staging/uat and prod environments.
Please let me know if you have any questions.
Regards,
Ram