ConfigProvider that is compatible with the Convex runtime, where process.env is not enumerable. This provider is automatically set for all Confect functions (queries, mutations, actions, and HTTP API handlers), so Effect’s Config module works out of the box.
Reading environment variables
UseConfig from Effect to read Convex environment variables in your function handlers.
confect/settings.impl.ts
Config combinators work as expected — Config.string, Config.number, Config.boolean, Config.withDefault, Config.option, etc.
Limitations
Config operations that require enumeratingprocess.env are unsupported in the Convex runtime. This includes Config.hashMap and other combinators that need to discover keys dynamically. Attempting to use them will result in an Unsupported config error.
Custom config provider
TheConvexConfigProvider module is exported from @confect/server if you need to create a provider with custom options. It supports the same options as Effect’s default ConfigProvider.fromEnv.
Effect.withConfigProvider.