Skip to content

Commit

Permalink
docs: add hint about app.config placement with custom srcDir (#24252
Browse files Browse the repository at this point in the history
)
  • Loading branch information
warflash authored and manniL committed Dec 11, 2023
1 parent 3e2309e commit bfe5854
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/2.guide/2.directory-structure/3.app-config.md
Expand Up @@ -41,6 +41,8 @@ console.log(appConfig.theme)
</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

Nuxt tries to automatically generate a TypeScript interface from provided app config so you won't have to type it yourself.
Expand Down

0 comments on commit bfe5854

Please sign in to comment.