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>
This commit is contained in:
Scott Anderson
2025-05-05 12:13:53 -04:00
committed by GitHub
parent 7092e9c166
commit 5d828f7d42
+1 -1
View File
@@ -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}`;
}