Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

docs(configuration): clarify the location of app.config.ts in the source directory #9937

Merged
merged 1 commit into from
Jan 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions docs/content/1.docs/1.getting-started/3.configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const runtimeConfig = useRuntimeConfig()

## App Configuration

The `app.config.ts` file, also located at the root of a Nuxt project, is used to expose public variables that can be determined at build time. Contrary to the `runtimeConfig` option, these can not be overridden using environment variables.
The `app.config.ts` file, located in the source directory (by default the root of the project), is used to expose public variables that can be determined at build time. Contrary to the `runtimeConfig` option, these can not be overridden using environment variables.

A minimal configuration file exports the `defineAppConfig` function containing an object with your configuration. The `defineAppConfig` helper is globally available without import.

Expand Down Expand Up @@ -112,8 +112,6 @@ Configuration per Request | ❌ No | βœ… Yes
Hot Module Replacement | ❌ No | βœ… Yes
Non primitive JS types | ❌ No | βœ… Yes

:ReadMore{link="/docs/guide/directory-structure/external-configuration"}

## External Configuration Files

Nuxt uses `nuxt.config.ts` file as the single source of trust for configurations and skips reading external configuration files. During the course of building your project, you may have a need to configure those. The following table highlights common configurations and, where applicable, how they can be configured with Nuxt.
Expand Down