fix: require http scheme for dev LNV server
This commit is contained in:
@ -5,6 +5,6 @@ export const ROUTING_SERVER = "https://valhalla1.openstreetmap.de/";
|
|||||||
export const SEARCH_SERVER = "https://photon.komoot.io/";
|
export const SEARCH_SERVER = "https://photon.komoot.io/";
|
||||||
export const OVERPASS_SERVER = "https://overpass-api.de/api/interpreter";
|
export const OVERPASS_SERVER = "https://overpass-api.de/api/interpreter";
|
||||||
export const LNV_SERVER =
|
export const LNV_SERVER =
|
||||||
location.hostname == "localhost"
|
(location.hostname == "localhost" && location.protocol == "http:")
|
||||||
? "http://localhost:3000/api"
|
? "http://localhost:3000/api"
|
||||||
: "https://trafficcue-api.picoscratch.de/api";
|
: "https://trafficcue-api.picoscratch.de/api";
|
||||||
|
|||||||
Reference in New Issue
Block a user