Package: effect
Module: Config
Creates a config that always succeeds with the given value, ignoring the provider entirely.
When to use
Use when you need a hardcoded config value, such as inside orElse or
tests.
Example (Returning a constant fallback)
import { Config } from "effect"
const host = Config.string("HOST").pipe(
Config.orElse(() => Config.succeed("localhost"))
)
Signature
declare const succeed: <T>(value: T) => Config<T>
Since v2.0.0