Skip to content

Commit

Permalink
Merge pull request #816 from OpenUpSA/feature/api-dns
Browse files Browse the repository at this point in the history
Feature/api dns
  • Loading branch information
paulmwatson authored Nov 8, 2024
2 parents fd2a9ed + 650e10d commit 2e79cab
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "wazimap-ng",
"version": "1.0.0",
"main": "index.js",
"author": "Adi Eyal <adi@openup.org.za>",
"author": "CTO <cto@openup.org.za>",
"license": "MIT",
"engines": {
"node": "16.20.2"
Expand Down
2 changes: 1 addition & 1 deletion src/js/dev-tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/js/tabular_comparison/tabular-comparison.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2e79cab

Please sign in to comment.