Skip to content

Commit 7e5884a

Browse files
committed
Update constants in the code for ohm
1 parent ce0c35b commit 7e5884a

File tree

3 files changed

+5
-15
lines changed

3 files changed

+5
-15
lines changed

Dockerfile

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,6 @@ FROM node:22-alpine as builder
22

33
ENV DEBIAN_FRONTEND noninteractive
44

5-
ENV REACT_APP_PAGE_SIZE: "25"
6-
ENV REACT_APP_OVERPASS_BASE: "//overpass-api.openhistoricalmap.org/api/interpreter"
7-
ENV REACT_APP_MAPBOX_ACCESS_TOKEN: "pk.eyJ1Ijoib3Blbmhpc3RvcmljYWxtYXAiLCJhIjoiY202a3ZqcHN1MDJnYzJpcHhlczVqbXBuNiJ9.DvNrZEF1ISEluA9k-MSHtA"
8-
ENV REACT_APP_OSM_URL: "https://www.openhistoricalmap.org"
9-
ENV REACT_APP_OSM_API: "https://api.openhistoricalmap.org/api/0.6"
10-
ENV REACT_APP_NOMINATIM_URL: "https://nominatim-api.openhistoricalmap.org/search.php"
11-
ENV REACT_APP_DEFAULT_FROM_DATE: "2"
12-
ENV REACT_APP_DEFAULT_TO_DATE: "5"
13-
ENV REACT_APP_DISABLE_REAL_CHANGESETS: "false"
14-
155
ARG BUILD_ENV=prod
166

177
WORKDIR /app

src/config/constants.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@ import { API_URL } from './';
44
export const PAGE_SIZE = process.env.REACT_APP_PAGE_SIZE || 25;
55
export const overpassBase =
66
process.env.REACT_APP_OVERPASS_BASE ||
7-
'//overpass.osmcha.org/api/interpreter';
7+
'//overpass-api.openhistoricalmap.org/api/interpreter';
88
export const mapboxAccessToken =
99
process.env.REACT_APP_MAPBOX_ACCESS_TOKEN ||
10-
'pk.eyJ1Ijoib3BlbnN0cmVldG1hcCIsImEiOiJjam10OXpmc2YwMXI5M3BqeTRiMDBqMHVyIn0.LIcIDe3TZLSDdTWDoojzNg';
10+
'k.eyJ1Ijoib3Blbmhpc3RvcmljYWxtYXAiLCJhIjoiY202a3ZqcHN1MDJnYzJpcHhlczVqbXBuNiJ9.DvNrZEF1ISEluA9k-MSHtA';
1111
export const statusUrl =
1212
'https://raw.githubusercontent.com/osmcha/osmcha-frontend/status/status.json';
13-
export const enableRealChangesets = !process.env
14-
.REACT_APP_DISABLE_REAL_CHANGESETS;
13+
export const enableRealChangesets = false;
1514

1615
export const osmchaSocialTokenUrl = `${API_URL}/social-auth/`;
1716
export const osmchaUrl = API_URL.replace('api/v1', '');

src/config/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ export const stack = process.env.REACT_APP_STACK;
99
export const appVersion = version;
1010

1111
let url =
12-
process.env.REACT_APP_PRODUCTION_API_URL || 'https://osmcha.org/api/v1';
12+
process.env.REACT_APP_PRODUCTION_API_URL ||
13+
'https://osmcha.dev.staging.openhistoricalmap.org/api/v1';
1314

1415
window.debug_info = () =>
1516
`isDev=${isDev.toString()} isStaging=${isStaging.toString()} isProd=${isProd.toString()} isLocal=${isLocal.toString()} stack=${stack ||

0 commit comments

Comments
 (0)