Skip to content

Commit

Permalink
Improve env_prefix config doc (#523)
Browse files Browse the repository at this point in the history
  • Loading branch information
hramezani authored Jan 13, 2025
1 parent e2cbb2d commit 65929cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ class Settings(BaseSettings):
```

!!! note
The default `env_prefix` is `''` (empty string).
The default `env_prefix` is `''` (empty string). `env_prefix` is not only for env settings but also for
dotenv files, secrets, and other sources.

If you want to change the environment variable name for a single field, you can use an alias.

Expand Down

0 comments on commit 65929cd

Please sign in to comment.