pluginpal/strapi-plugin-config-sync

Config split (env specific config)

Opened this issue · 2 comments

Feature request

Summary

Have subdirectories inside config folder like dev or prod. In there you could place config files to overwrite the config for specific environments.

Why is it needed?

To have different config in different environments.

Suggested solution(s)

Subdirectories inside the sync folder in which you can override the config. Could be used for env specific config, but maby also for logic based config split.

I noticed this is quite an old request. Is there any progress?
Right now we are excluding some configs from our sync that have data specific to staging or prod environment. In particular the core-store.plugin_users-permissions_advanced config. I saw an environment attribute in the config itself. Is it maybe already possible to create specific files for staging and prod?

This issue has not been worked on since it's creation.

As you noticed the core-store table actually has an environment column which suggests that you can specify different configs for different environments. I haven't played around with this, and haven't seen any documentation about it in the Strapi docs. But it's worth trying out!

Do post your findings here if you've figured out a way to make it work :)