Skip to content

Commit 87d02a5

Browse files
Add info about env.oneOf (#1560)
This PR is a companion to this one strapi/strapi#15966
1 parent 0eaa6d0 commit 87d02a5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docusaurus/docs/dev-docs/configurations/environment.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ env.array('VAR', [1, 2, 3]);
114114

115115
// Cast to date (using new Date(value))
116116
env.date('VAR', new Date());
117+
118+
// Returns the env matching oneOf union types
119+
env.oneOf('UPLOAD_PROVIDER', ['local', 'aws'], 'local')
117120
```
118121

119122
## Environment configurations

0 commit comments

Comments
 (0)