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

    Properties

    defaultValue?: number

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

    undefined
    
    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.