From 4b201434806809c1bcadb9b03ccc7754a25f0d01 Mon Sep 17 00:00:00 2001 From: Cfp Date: Thu, 3 Jul 2025 18:54:16 +0200 Subject: [PATCH] fix: require http scheme for dev LNV server --- src/lib/services/hosts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/services/hosts.ts b/src/lib/services/hosts.ts index 9f6d429..d05b4ed 100644 --- a/src/lib/services/hosts.ts +++ b/src/lib/services/hosts.ts @@ -5,6 +5,6 @@ export const ROUTING_SERVER = "https://valhalla1.openstreetmap.de/"; export const SEARCH_SERVER = "https://photon.komoot.io/"; export const OVERPASS_SERVER = "https://overpass-api.de/api/interpreter"; export const LNV_SERVER = - location.hostname == "localhost" + location.hostname == "localhost" && location.protocol == "http:" ? "http://localhost:3000/api" : "https://trafficcue-api.picoscratch.de/api";