diff --git a/src/js/dev-tools.js b/src/js/dev-tools.js index 6cebafa4..1e2f30f5 100644 --- a/src/js/dev-tools.js +++ b/src/js/dev-tools.js @@ -80,7 +80,7 @@ async function getProfileData(profileUrl) { export async function install() { let data = [] let profileUrl = 'https://api.wazimap.com/api/v1/profiles'; - let stagingProfileUrl = 'https://staging.wazimap-ng.openup.org.za/api/v1/profiles'; + let stagingProfileUrl = 'https://staging-api.wazimap.com/api/v1/profiles'; data = data.concat(await getProfileData(profileUrl)) data = data.concat(await getProfileData(stagingProfileUrl)) const devtools = new DevTools({ diff --git a/src/js/index.js b/src/js/index.js index 2a90d62b..1e667e4d 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -8,7 +8,7 @@ import * as Sentry from '@sentry/browser'; import {getHostname, getAPIUrl, loadDevTools} from './utils'; import {ErrorNotifier} from "./error-notifier"; -const mainUrl = getAPIUrl('https://staging.wazimap-ng.openup.org.za'); +const mainUrl = getAPIUrl('https://staging-api.wazimap.com'); const productionUrl = getAPIUrl('https://api.wazimap.com'); let config = new SAConfig(); diff --git a/src/js/server.js b/src/js/server.js index 431a8d19..339ca7a0 100644 --- a/src/js/server.js +++ b/src/js/server.js @@ -74,7 +74,7 @@ export function makeServer({environment = "development"} = {}) { //API needs to send the data for the children of the current geo only. routes() { - this.urlPrefix = 'https://staging.wazimap-ng.openup.org.za/'; + this.urlPrefix = 'https://staging-api.wazimap.com/'; this.namespace = "api/v1"; this.timing = 750; diff --git a/src/js/tabular_comparison/tabular-comparison.js b/src/js/tabular_comparison/tabular-comparison.js index 2ff497a9..43818b4f 100644 --- a/src/js/tabular_comparison/tabular-comparison.js +++ b/src/js/tabular_comparison/tabular-comparison.js @@ -17,7 +17,7 @@ const TabularComparison = (props) => { const [render, setRender] = useState(true); const [defaultVersionName, setDefaultVersionName] = useState(null); - const mainUrl = getAPIUrl('https://staging.wazimap-ng.openup.org.za'); + const mainUrl = getAPIUrl('https://staging-api.wazimap.com'); const productionUrl = getAPIUrl('https://api.wazimap.com'); const defaultProfile = 8; const defaultUrl = productionUrl;