mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 21:55:11 +00:00
docs: add hint about app.config
placement with custom srcDir
(#24252)
This commit is contained in:
parent
41ad85ed6d
commit
e95026f5bb
@ -41,6 +41,8 @@ console.log(appConfig.theme)
|
|||||||
</script>
|
</script>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
When configuring a custom [`srcDir`](/docs/api/nuxt-config#srcdir), make sure to place the `app.config` file at the root of the new `srcDir` path.
|
||||||
|
|
||||||
## Typing App Config
|
## Typing App Config
|
||||||
|
|
||||||
Nuxt tries to automatically generate a TypeScript interface from provided app config so you won't have to type it yourself.
|
Nuxt tries to automatically generate a TypeScript interface from provided app config so you won't have to type it yourself.
|
||||||
|
Loading…
Reference in New Issue
Block a user