mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-24 18:46:40 +07:00
change backend and osrm urls
This commit is contained in:
parent
49a2015510
commit
1dcfd7e9c0
3 changed files with 4 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -63,7 +63,7 @@ export class UserPanelUnconnected extends PureComponent<Props, State> {
|
|||
};
|
||||
|
||||
componentDidMount() {
|
||||
window.addEventListener('message', e => {
|
||||
window.addEventListener('message', (e) => {
|
||||
const { data } = e;
|
||||
|
||||
if (
|
||||
|
@ -123,7 +123,7 @@ export class UserPanelUnconnected extends PureComponent<Props, State> {
|
|||
|
||||
openGpxDialog = () => {
|
||||
this.props.editorChangeMode(MODES.GPX);
|
||||
}
|
||||
};
|
||||
|
||||
render() {
|
||||
const {
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue