mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-24 22:55:13 +00:00
3ec108493d
* docs: simplify docs to only markdown * Create nuxt-config.md * chore: update * chore: add readme
18 lines
405 B
Markdown
18 lines
405 B
Markdown
# `updateAppConfig`
|
||
|
||
Updates [app config](/docs/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="/docs/guide/directory-structure/app-config"}
|