Lucee Function Reference

configmerge()

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.

Example

configmerge(struct left,struct right):struct

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
left struct  Yes The base configuration struct. Acts as the default/fallback config. This struct is
not modified by the function.  
right struct  Yes 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.