feat: pass through config to client plugins
This commit is contained in:
parent
4d82439b53
commit
73c18a4ad4
|
@ -29,7 +29,15 @@ module.exports = async (latus, req) => {
|
|||
.filter((config) => !!config)
|
||||
.reduce((r, o) => ({...r, ...o}), {});
|
||||
return {
|
||||
...defaults,
|
||||
...(
|
||||
Object.fromEntries(
|
||||
Object.keys(defaults)
|
||||
.map((path) => [
|
||||
path,
|
||||
latus.get(path),
|
||||
]),
|
||||
)
|
||||
),
|
||||
...plugins,
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user