From e95026f5bb9f7a416ba8ac60dc96ac0968826baf Mon Sep 17 00:00:00 2001 From: Nils Wiesinger Date: Thu, 16 Nov 2023 15:08:10 +0100 Subject: [PATCH] docs: add hint about `app.config` placement with custom `srcDir` (#24252) --- docs/2.guide/2.directory-structure/3.app-config.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/2.guide/2.directory-structure/3.app-config.md b/docs/2.guide/2.directory-structure/3.app-config.md index b2e9dba7f3..9ebc1054a3 100644 --- a/docs/2.guide/2.directory-structure/3.app-config.md +++ b/docs/2.guide/2.directory-structure/3.app-config.md @@ -41,6 +41,8 @@ console.log(appConfig.theme) ``` +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.