-
Notifications
You must be signed in to change notification settings - Fork 65
Closed
Description
devDefault - A fallback value to use only when NODE_ENV is not 'production'. This is handy for env vars that are required for production environments, but optional for development and testing.
I'm using envalid in a server setup which needs to interact with AWS resources. I have a use case where a variable is required during development, but not during testing. I could set devDefault
but that'll just lead to runtime errors. It'd be great if envalid could support a testDefault
which only applies when NODE_ENV === 'test'
.
Metadata
Metadata
Assignees
Labels
No labels