Keep is_development and _is_production correct when env() is changed