mirror of
https://github.com/strapi/strapi.git
synced 2025-11-08 14:19:40 +00:00
Only use keys from settings.json to create documentation files, fix array concat only for routes in extensions
This commit is contained in:
parent
8bc172d535
commit
c5dc672cc7
File diff suppressed because it is too large
Load Diff
@ -266,8 +266,9 @@ class Strapi extends EventEmitter {
|
|||||||
* Handle plugin extensions
|
* Handle plugin extensions
|
||||||
*/
|
*/
|
||||||
// merge extensions config folders
|
// merge extensions config folders
|
||||||
_.mergeWith(this.plugins, extensions.merges, (objValue, srcValue) => {
|
_.mergeWith(this.plugins, extensions.merges, (objValue, srcValue, key) => {
|
||||||
if (_.isArray(srcValue) && _.isArray(objValue)) {
|
// concat routes
|
||||||
|
if (_.isArray(srcValue) && _.isArray(objValue) && key === 'routes') {
|
||||||
return srcValue.concat(objValue);
|
return srcValue.concat(objValue);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user