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 committed Nov 16, 2023
1 parent 41ad85e commit e95026f
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 e95026f

Please sign in to comment.