docs: clarify app-config merging strategy note (#26564)

This commit is contained in:
Taras Batenkov 2024-03-30 09:43:54 +02:00 committed by GitHub
parent 6dcad76a06
commit f00dcdf0f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -99,7 +99,7 @@ Nuxt uses a custom merging strategy for the `AppConfig` within [the layers](/doc
This strategy is implemented using a [Function Merger](https://github.com/unjs/defu#function-merger), which allows defining a custom merging strategy for every key in `app.config` that has an array as value.
::note
The Function Merger should only be used in the base `app.config` of your application.
The function merger can only be used in the extended layers and not the main `app.config` in project.
::
Here's an example of how you can use: