mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 18:13:54 +00:00
f26a801775
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Daniel Roe <daniel@roe.dev>
630 B
630 B
title | description | links | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
updateAppConfig | Update the App Config at runtime. |
|
::callout
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"}