ConfigMerge()

edit

Merges two Lucee configuration structs (as used in .CFConfig.json) into a new struct, following Lucee's internal merge rules. The right-hand config takes precedence over the left-hand config for scalar values, while certain collection types (such as extensions) are appended rather than replaced. Neither input struct is modified; the result is returned as a new struct.

Introduced: 7.0.4.5

ConfigMerge( left=struct, right=struct );

Returns: Struct

Argument Description
left
struct, required
edit

The base configuration struct. Acts as the default/fallback config. This struct is not modified by the function.

right
struct, required
edit

The overriding configuration struct. Scalar values in this struct overwrite corresponding values in the left struct. Collection types such as extension arrays are merged by appending to the left struct's values rather than replacing them. This struct is not modified by the function.

Examples

There are currently no examples for this function 30,684ms WARN No examples for function ConfigMerge

See also