Updating how endpoints are set when codebase is running in the staging environment...