mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-16 19:04:48 +00:00
21 lines
393 B
Markdown
21 lines
393 B
Markdown
# `updateAppConfig`
|
||
|
||
::StabilityEdge
|
||
::
|
||
|
||
Updates [app config](/guide/features/app-config) using deep assignment. Existing (nested) properties will be preserved.
|
||
|
||
**Usage:**
|
||
|
||
```js
|
||
const appConfig = useAppConfig() // { foo: 'bar' }
|
||
|
||
const newAppConfig = { foo: 'baz' }
|
||
|
||
updateAppConfig(newAppConfig)
|
||
|
||
console.log(appConfig) // { foo: 'baz' }
|
||
```
|
||
|
||
::ReadMore{link="/guide/features/app-config"}
|