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
|
- master
|
||||||
environment:
|
environment:
|
||||||
REACT_APP_PUBLIC_PATH: https://map.vault48.org/
|
REACT_APP_PUBLIC_PATH: https://map.vault48.org/
|
||||||
REACT_APP_API_ADDR: https://backend.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_URL: https://osrm.vault48.org/route/v1
|
||||||
REACT_APP_OSRM_PROFILE: bike
|
REACT_APP_OSRM_PROFILE: bike
|
||||||
settings:
|
settings:
|
||||||
dockerfile: docker/www/Dockerfile
|
dockerfile: docker/www/Dockerfile
|
||||||
|
|
|
@ -63,7 +63,7 @@ export class UserPanelUnconnected extends PureComponent<Props, State> {
|
||||||
};
|
};
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
window.addEventListener('message', e => {
|
window.addEventListener('message', (e) => {
|
||||||
const { data } = e;
|
const { data } = e;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
@ -123,7 +123,7 @@ export class UserPanelUnconnected extends PureComponent<Props, State> {
|
||||||
|
|
||||||
openGpxDialog = () => {
|
openGpxDialog = () => {
|
||||||
this.props.editorChangeMode(MODES.GPX);
|
this.props.editorChangeMode(MODES.GPX);
|
||||||
}
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const {
|
const {
|
||||||
|
|
|
@ -10,8 +10,6 @@ const OSRM_TEST_URL = ([south_west, north_east]: LatLngLiteral[]) =>
|
||||||
north_east
|
north_east
|
||||||
).join(',')}`;
|
).join(',')}`;
|
||||||
|
|
||||||
console.log('its', process.env.REACT_APP_API_ADDR);
|
|
||||||
|
|
||||||
export const CLIENT = {
|
export const CLIENT = {
|
||||||
OSRM_URL,
|
OSRM_URL,
|
||||||
API_ADDR,
|
API_ADDR,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue