checking ENV variables if no restpack config is provided