is_staging

Functionin compute_runtimefastly 0.13.1View source
fn is_staging() -> bool

Whether the request is running in the service's staging environment.

false for production or true for staging.

Equivalent to the "FASTLYISSTAGING" environment variable and to fastly.is_staging in VCL.

Returns

bool