modify API_ROOT to use server code is running on unless developing on localhost