mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 08:19:07 +00:00
Fix config dictionary build
This commit is contained in:
parent
93e9bcf903
commit
872dfebc09
@ -103,16 +103,16 @@ module.exports = strapi => {
|
||||
common: cb => {
|
||||
dictionary.aggregate({
|
||||
dirname: path.resolve(strapi.config.appPath, strapi.config.paths.api, api, strapi.config.paths.config),
|
||||
excludeDirs: /(locales|environments)$/,
|
||||
filter: /(.+)\.(js|json)$/,
|
||||
excludeDirs: /(validators)$/,
|
||||
depth: 2
|
||||
}, cb);
|
||||
},
|
||||
specific: cb => {
|
||||
dictionary.aggregate({
|
||||
dictionary.optional({
|
||||
dirname: path.resolve(strapi.config.appPath, strapi.config.paths.api, api, strapi.config.paths.config, 'environments', strapi.config.environment),
|
||||
filter: /(.+)\.(js|json)$/,
|
||||
depth: 2
|
||||
depth: 1
|
||||
}, cb);
|
||||
}
|
||||
}, (err, config) => {
|
||||
|
@ -94,15 +94,16 @@ module.exports = strapi => {
|
||||
common: cb => {
|
||||
dictionary.aggregate({
|
||||
dirname: path.resolve(strapi.config.appPath, strapi.config.paths.plugins, plugin, strapi.config.paths.config),
|
||||
excludeDirs: /(locales|environments)$/,
|
||||
filter: /(.+)\.(js|json)$/,
|
||||
depth: 2
|
||||
}, cb);
|
||||
},
|
||||
specific: cb => {
|
||||
dictionary.aggregate({
|
||||
dictionary.optional({
|
||||
dirname: path.resolve(strapi.config.appPath, strapi.config.paths.plugins, plugin, strapi.config.paths.config, 'environments', strapi.config.environment),
|
||||
filter: /(.+)\.(js|json)$/,
|
||||
depth: 2
|
||||
depth: 1
|
||||
}, cb);
|
||||
}
|
||||
}, (err, config) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user