mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 02:16:03 +00:00
Load scoped providers
This commit is contained in:
parent
038bbb3e20
commit
fd2aaecac1
@ -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