Skip to main content

MergeConfig

Performs a deep merge of two VendureConfig objects. Unlike Object.assign() the target object is not mutated, instead the function returns a new object which is the result of deeply merging the values of source into target.

Arrays do not get merged, they are treated as a single value that will be replaced. So if merging the plugins array, you must explicitly concatenate the array.

Example

Ts
Signature

Parameters

target

parameterT

source

parameterPartialVendureConfig

depth

parameter
Was this chapter helpful?
Report Issue
Edited Feb 25, 2026ยทEdit this page