# 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.

**Introduced:** 7.0.4.5

```
ConfigMerge( left=struct, right=struct );
```

**Returns:** struct

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| 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. |  |

# Examples

*There are currently no examples for this function*







# Categories

[Lucee Server related Tags, Functions and Guides](../../categories/server.md)

# See Also

[GetApplicationSettings()](getapplicationsettings.md)