From 1dcfd7e9c0ca28d22e9b0d1d51e1b179984737af Mon Sep 17 00:00:00 2001 From: Fedor Katurov Date: Thu, 30 Nov 2023 21:30:48 +0700 Subject: [PATCH] change backend and osrm urls --- .drone.yml | 4 ++-- src/components/panels/UserPanel.tsx | 4 ++-- src/config/frontend.ts | 2 -- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index 23b9bea..2615559 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,8 +14,8 @@ steps: - master environment: 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_API_ADDR: https://backend-map.vault48.org + REACT_APP_OSRM_URL: https://osrm.vault48.org/route/v1 REACT_APP_OSRM_PROFILE: bike settings: dockerfile: docker/www/Dockerfile diff --git a/src/components/panels/UserPanel.tsx b/src/components/panels/UserPanel.tsx index 047643c..ef198b6 100644 --- a/src/components/panels/UserPanel.tsx +++ b/src/components/panels/UserPanel.tsx @@ -63,7 +63,7 @@ export class UserPanelUnconnected extends PureComponent { }; componentDidMount() { - window.addEventListener('message', e => { + window.addEventListener('message', (e) => { const { data } = e; if ( @@ -123,7 +123,7 @@ export class UserPanelUnconnected extends PureComponent { openGpxDialog = () => { this.props.editorChangeMode(MODES.GPX); - } + }; render() { const { diff --git a/src/config/frontend.ts b/src/config/frontend.ts index bc96649..af1bdb2 100644 --- a/src/config/frontend.ts +++ b/src/config/frontend.ts @@ -10,8 +10,6 @@ const OSRM_TEST_URL = ([south_west, north_east]: LatLngLiteral[]) => north_east ).join(',')}`; -console.log('its', process.env.REACT_APP_API_ADDR); - export const CLIENT = { OSRM_URL, API_ADDR,