configMerge

Merges two Lucee configuration structs, in the .CFConfig.json format, into a new struct. Neither input is changed.

configMerge(left, right) → returns struct

This function requires Lucee 7.0.4.5 and up.  Not supported on Adobe ColdFusion, etc.

Argument Reference

left struct
Required

The base configuration.

right struct
Required

The configuration whose values override the base. Some collections, such as extensions, are appended instead of replaced.

Examples
Sample code invoking the configMerge function

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub