Nuxt/docs/3.api/3.utils/update-app-config.md
Sébastien Chopin 3ec108493d
docs: simplify the docs directory (#18506)
* docs: simplify docs to only markdown

* Create nuxt-config.md

* chore: update

* chore: add readme
2023-01-25 10:41:41 +01:00

405 B

updateAppConfig

Updates app config using deep assignment. Existing (nested) properties will be preserved.

Usage:

const appConfig = useAppConfig() // { foo: 'bar' }

const newAppConfig = { foo: 'baz' }

updateAppConfig(newAppConfig)

console.log(appConfig) // { foo: 'baz' }

::ReadMore{link="/docs/guide/directory-structure/app-config"}