• Function to get the value for the provided environment variable name.

    For a list of available environment variables, see the Fastly Developer Hub for C@E Environment Variables

    Note: The environment variables can only be retrieved when processing requests, not during build-time initialization.

    Example

    In this example we log to stdout the environment variables FASTLY_HOSTNAME and FASTLY_TRACE_ID.

    Parameters

    • name: string

      The name of the environment variable

    Returns string

Generated using TypeDoc