From 5d828f7d42a9c0ecfa4b303528ed75f9200f98c5 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Mon, 5 May 2025 12:13:53 -0400 Subject: [PATCH] Add a new apiHost configuration for local development (#655) ## Description: Allow developers to override the API base. ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [x] I understand that submitting code with bugs that could have been caught through manual testing blocks releases and new features for all contributors Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com> --- src/client/jwt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}`; }