Skip to content

Commit

Permalink
chore: change readme to include warning about overrides of null values
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmarqs committed Oct 30, 2024
1 parent f80e7a7 commit 51f3494
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,9 @@ const config = await loadConfig({

### Combine multiple adapters

You can combine multiple adapters to load the configuration from different sources. We **deeply merge the configuration from different sources**, following the order of the adapters provided.
You can combine multiple adapters to load the configuration from different sources. We **deeply merge the configuration from different sources**, following the order of the adapters provided.

> ⚠️ **Warning**: When combining multiple adapters, `null` values from subsequent adapters will override existing values. This behavior can be used intentionally to reset configuration values.
```ts
import { z } from 'zod';
Expand Down

0 comments on commit 51f3494

Please sign in to comment.