Skip to content

Commit

Permalink
Add note about env_prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
hramezani committed Apr 26, 2023
1 parent 0187d2a commit 6a29a7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ The following rules are used to determine which environment variable(s) are read
* Custom environment variable names can be set like:
* `Field(validation_alias=...)` (see `api_key` and `redis_dsn` above)
* When specifying custom environment variable names, either a string, `AliasChoices`, `AliasPath` my be provided.
* `env_prefix` is not considered.
* When specifying a `AliasChoices`, order matters: the first detected value is used.
* For example, for `redis_dsn` above, `service_redis_dsn` would take precedence over `redis_url`.

Expand Down

0 comments on commit 6a29a7d

Please sign in to comment.