From 9d226f33870897444bf9284447611f1c70b6e8b7 Mon Sep 17 00:00:00 2001 From: Jannik Date: Sat, 6 Sep 2025 18:03:31 +0200 Subject: [PATCH] feat: automatically choose staging server --- src/lib/services/hosts.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/services/hosts.ts b/src/lib/services/hosts.ts index d05b4ed..eb17bc1 100644 --- a/src/lib/services/hosts.ts +++ b/src/lib/services/hosts.ts @@ -7,4 +7,6 @@ export const OVERPASS_SERVER = "https://overpass-api.de/api/interpreter"; export const LNV_SERVER = location.hostname == "localhost" && location.protocol == "http:" ? "http://localhost:3000/api" + : location.hostname.includes("staging") + ? "https://staging-trafficcue-api.picoscratch.de/api" : "https://trafficcue-api.picoscratch.de/api";