mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-16 02:44:51 +00:00
944bba97ca
Co-authored-by: Pooya Parsa <pooya@pi0.io>
18 lines
395 B
Markdown
18 lines
395 B
Markdown
# `updateAppConfig`
|
||
|
||
Updates [app config](/guide/directory-structure/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/directory-structure/app.config"}
|