API Reference
    Preparing search index...
    type GetStringFromEnvOptions = {
        defaultValue?: string;
        errorMessage?: string;
        key: string;
    }
    Index

    Properties

    defaultValue?: string

    Optional default value to return if the environment variable is not set.

    ""
    
    errorMessage?: string

    Optional error message to throw if the environment variable is not set and no default value is provided.

    "Environment variable <key> is required"
    
    key: string

    The key of the environment variable.