I am trying to activate a plugin only in production env. After reading the docs about environment configurations [Environment variables | Strapi Documentation my approach was to create config/env/production/plugins.ts and add the plugin there. The documentation states "These configurations will be merged into the base configurations defined in the ./config folder. " so I would assume that my plugin gets merged into the list of plugins defined in config/plugins.ts when the env is production.
Unfortunately this doesn’t seem to be the case and instead only the plugins defined in config/plugins.ts are available.
Just to make my point clear, here is a sketch of my directories
| config
| | plugins.ts
| | env
| | | production
| | | | plugins.ts <--- I would assume the plugins defined here are merged into the plugins defined above
Does anyone have experience with this?
This topic has been created from a Discord post (1258725728548028476) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord