Alternative to `ConfigProvider.orElse` for returning an `Effect<ConfigProvider>`

Hi, about Config, is there any alternative to ConfigProvider.orElse where I can return an Effect<ConfigProvider>, rather than a plain
ConfigProvider
?

My use case: I want to read the CLI app configuration from env vars first, and fall back to a JSON file otherwise. But I only want to do this on a as-needed basis. I don't want any configuration errors in situations where no env var nor JSON config file exist.
Was this page helpful?