throw an error where using staging urls while not on staging server