From 28f0e84c42a67ff891eced67b3a4510558416aa4 Mon Sep 17 00:00:00 2001 From: paulmwatson Date: Fri, 8 Nov 2024 11:55:36 +0200 Subject: [PATCH 1/2] Changed production.wazimap-ng.openup.org.za to api.wazimap.com --- README.md | 2 +- src/js/dev-tools.js | 2 +- src/js/index.js | 2 +- src/js/tabular_comparison/tabular-comparison.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6b5fd6e4f..6d6255e57 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ HOSTNAME=youthexplorer.org.za yarn start` | Variable | Default | Description | | ----------------------- | ------------------------------------ | ----------------------------------------------------------------------------------------------------------------- | | HOSTNAME | unset | If set, overrides using the hostname in the address bar to determine the profile being requested. e.g. `youthexplorer.org.za` | -| API_URL | unset | If set, overrides the default production and staging backend URLs. e.g. `https://production.wazimap-ng.openup.org.za`| +| API_URL | unset | If set, overrides the default production and staging backend URLs. e.g. `https://api.wazimap.com`| | ENVIRONMENT | unset | E.g. `production`, `staging`, `sandbox`| | SENTRY_DSN | unset | Required in production, staging and sandbox environment | | GOOGLE_ANALYTICS_ID | unset | ID for Google Analytics. Usually only required in production environment | diff --git a/src/js/dev-tools.js b/src/js/dev-tools.js index 1d315e23a..6cebafa4e 100644 --- a/src/js/dev-tools.js +++ b/src/js/dev-tools.js @@ -79,7 +79,7 @@ async function getProfileData(profileUrl) { export async function install() { let data = [] - let profileUrl = 'https://production.wazimap-ng.openup.org.za/api/v1/profiles'; + let profileUrl = 'https://api.wazimap.com/api/v1/profiles'; let stagingProfileUrl = 'https://staging.wazimap-ng.openup.org.za/api/v1/profiles'; data = data.concat(await getProfileData(profileUrl)) data = data.concat(await getProfileData(stagingProfileUrl)) diff --git a/src/js/index.js b/src/js/index.js index db70d68ba..2a90d62be 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -9,7 +9,7 @@ import {getHostname, getAPIUrl, loadDevTools} from './utils'; import {ErrorNotifier} from "./error-notifier"; const mainUrl = getAPIUrl('https://staging.wazimap-ng.openup.org.za'); -const productionUrl = getAPIUrl('https://production.wazimap-ng.openup.org.za'); +const productionUrl = getAPIUrl('https://api.wazimap.com'); let config = new SAConfig(); let hostname = getHostname(); diff --git a/src/js/tabular_comparison/tabular-comparison.js b/src/js/tabular_comparison/tabular-comparison.js index f55bebe4c..2ff497a96 100644 --- a/src/js/tabular_comparison/tabular-comparison.js +++ b/src/js/tabular_comparison/tabular-comparison.js @@ -18,7 +18,7 @@ const TabularComparison = (props) => { const [defaultVersionName, setDefaultVersionName] = useState(null); const mainUrl = getAPIUrl('https://staging.wazimap-ng.openup.org.za'); - const productionUrl = getAPIUrl('https://production.wazimap-ng.openup.org.za'); + const productionUrl = getAPIUrl('https://api.wazimap.com'); const defaultProfile = 8; const defaultUrl = productionUrl; const defaultConfig = new SAConfig(); From 650e10d87c49b9c381199fa02de20f053981ad49 Mon Sep 17 00:00:00 2001 From: paulmwatson Date: Fri, 8 Nov 2024 11:56:30 +0200 Subject: [PATCH 2/2] Tweak --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7673ccd57..95674acf3 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "wazimap-ng", "version": "1.0.0", "main": "index.js", - "author": "Adi Eyal ", + "author": "CTO ", "license": "MIT", "engines": { "node": "16.20.2"