mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-05 03:47:12 +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"}