feat: automatically choose staging server
This commit is contained in:
@ -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";
|
||||
|
||||
Reference in New Issue
Block a user