fix: require http scheme for dev LNV server
Some checks failed
TrafficCue CI / check (push) Failing after 55s
TrafficCue CI / build (push) Successful in 47s

This commit is contained in:
Cfp
2025-07-03 18:54:16 +02:00
parent cecba34979
commit 143c1b7c6e

View File

@ -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";