mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-16 13:48:13 +00:00
docs: change app-config url to avoid naming conflicts with app.vue (#9377)
This commit is contained in:
parent
236eb90414
commit
65f3b3a053
@ -93,7 +93,7 @@ const appConfig = useAppConfig()
|
|||||||
</script>
|
</script>
|
||||||
```
|
```
|
||||||
|
|
||||||
:ReadMore{link="/docs/guide/directory-structure/app.config"}
|
:ReadMore{link="/docs/guide/directory-structure/app-config"}
|
||||||
|
|
||||||
## `runtimeConfig` vs `app.config`
|
## `runtimeConfig` vs `app.config`
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# `useAppConfig`
|
# `useAppConfig`
|
||||||
|
|
||||||
Access the reactive [app config](/docs/guide/directory-structure/app.config) defined in the project.
|
Access the reactive [app config](/docs/guide/directory-structure/app-config) defined in the project.
|
||||||
|
|
||||||
**Usage:**
|
**Usage:**
|
||||||
|
|
||||||
@ -10,4 +10,4 @@ const appConfig = useAppConfig()
|
|||||||
console.log(appConfig)
|
console.log(appConfig)
|
||||||
```
|
```
|
||||||
|
|
||||||
::ReadMore{link="/docs/guide/directory-structure/app.config"}
|
::ReadMore{link="/docs/guide/directory-structure/app-config"}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# `updateAppConfig`
|
# `updateAppConfig`
|
||||||
|
|
||||||
Updates [app config](/docs/guide/directory-structure/app.config) using deep assignment. Existing (nested) properties will be preserved.
|
Updates [app config](/docs/guide/directory-structure/app-config) using deep assignment. Existing (nested) properties will be preserved.
|
||||||
|
|
||||||
**Usage:**
|
**Usage:**
|
||||||
|
|
||||||
@ -14,4 +14,4 @@ updateAppConfig(newAppConfig)
|
|||||||
console.log(appConfig) // { foo: 'baz' }
|
console.log(appConfig) // { foo: 'baz' }
|
||||||
```
|
```
|
||||||
|
|
||||||
::ReadMore{link="/docs/guide/directory-structure/app.config"}
|
::ReadMore{link="/docs/guide/directory-structure/app-config"}
|
||||||
|
Loading…
Reference in New Issue
Block a user