mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-24 18:46:40 +07:00
debug REACT_APP_API_ADDR
This commit is contained in:
parent
93eefa3b3c
commit
12f27b8307
2 changed files with 8 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
REACT_APP_PUBLIC_PATH = https://alpha-map.vault48.org/
|
||||
REACT_APP_API_ADDR = https://alpha-map.vault48.org:3001
|
||||
REACT_APP_PUBLIC_PATH = https://map.vault48.org/
|
||||
REACT_APP_API_ADDR = https://backend.map.vault48.org
|
||||
REACT_APP_OSRM_URL = https://vault48.org:5001/route/v1
|
||||
REACT_APP_OSRM_PROFILE = bike
|
||||
|
|
|
@ -5,9 +5,12 @@ const PUBLIC_PATH = process.env.REACT_APP_PUBLIC_PATH || '';
|
|||
const API_ADDR = process.env.REACT_APP_API_ADDR || '';
|
||||
const OSRM_URL = process.env.REACT_APP_OSRM_URL || '';
|
||||
const OSRM_PROFILE = process.env.REACT_APP_OSRM_PROFILE || 'bike';
|
||||
const OSRM_TEST_URL = ([south_west, north_east]: LatLngLiteral[]) => (
|
||||
`${OSRM_URL}/${OSRM_PROFILE}/${Object.values(south_west).join(',')};${Object.values(north_east).join(',')}`
|
||||
);
|
||||
const OSRM_TEST_URL = ([south_west, north_east]: LatLngLiteral[]) =>
|
||||
`${OSRM_URL}/${OSRM_PROFILE}/${Object.values(south_west).join(',')};${Object.values(
|
||||
north_east
|
||||
).join(',')}`;
|
||||
|
||||
console.log('its', process.env.REACT_APP_API_ADDR);
|
||||
|
||||
export const CLIENT = {
|
||||
OSRM_URL,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue