Use correct environment to get baseURL