mirror of
https://github.com/strapi/strapi.git
synced 2025-08-11 18:27:22 +00:00
Merge pull request #4371 from strapi/fix-scope-providers
Load scoped providers
This commit is contained in:
commit
82b36df90c
@ -20,7 +20,7 @@ module.exports = async () => {
|
||||
strapi.plugins.email.config.providers = [];
|
||||
|
||||
const installedProviders = Object.keys(strapi.config.info.dependencies)
|
||||
.filter(d => d.startsWith('strapi-provider-email-'))
|
||||
.filter(d => d.includes('strapi-provider-email-'))
|
||||
.concat('strapi-provider-email-sendmail');
|
||||
|
||||
for (let installedProvider of _.uniq(installedProviders)) {
|
||||
|
@ -20,7 +20,7 @@ module.exports = async () => {
|
||||
strapi.plugins.upload.config.providers = [];
|
||||
|
||||
const installedProviders = Object.keys(strapi.config.info.dependencies)
|
||||
.filter(d => d.startsWith('strapi-provider-upload-'))
|
||||
.filter(d => d.includes('strapi-provider-upload-'))
|
||||
.concat('strapi-provider-upload-local');
|
||||
|
||||
for (let installedProvider of _.uniq(installedProviders)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user