diff --git a/src/client/jwt.ts b/src/client/jwt.ts index aa4d7edf2..5a6d245e7 100644 --- a/src/client/jwt.ts +++ b/src/client/jwt.ts @@ -16,7 +16,7 @@ function getAudience() { function getApiBase() { const domainname = getAudience(); return domainname === "localhost" - ? "http://localhost:8787" + ? (localStorage.getItem("apiHost") ?? "http://localhost:8787") : `https://api.${domainname}`; }