mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
627 B
627 B
title | description | links | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
updateAppConfig | Update the App Config at runtime. |
|
::note
Updates the 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' }
:read-more{to="/docs/guide/directory-structure/app-config"}