Pass environment in as an attribute