Beignet API reference
    Preparing search index...

    Interface ProviderConfigDef<CfgSchema>

    Configuration definition for a service provider. Specifies the schema for validating config and optional environment variable prefix.

    interface ProviderConfigDef<CfgSchema extends StandardSchemaV1> {
        envPrefix?: string;
        schema: CfgSchema;
    }

    Type Parameters

    Index

    Properties

    Properties

    envPrefix?: string

    Optional prefix to read env vars, e.g. "REDIS_". When provided, the implementation will read process.env keys starting with this prefix and pass them to the schema for validation.

    schema: CfgSchema

    Standard Schema for validating provider configuration. Can be Zod, Valibot, ArkType, or any Standard Schema compatible library.