Effect CommunityEC
Effect Community7mo ago
27 replies
johtso

Using `PlatformConfigProvider.fromDotEnv` with `Effect.withConfigProvider`

Is it possible to use PlatformConfigProvider.fromDotEnv in a similar way to how you would use Effect.withConfigProvider? The problem is it's effectful, so seems to suit Layer.setConfigProvider, but then I have to provide that layer to every other layer that needs config?
Was this page helpful?