[feature] HTTP API timeouts (#290)

* write an extractor for timeout

* Use timeout

* Default timeout 10min
This commit is contained in:
Igor Katson 2024-12-04 18:28:28 +01:00 committed by GitHub
parent a1de63e486
commit fce467e005
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 76 additions and 7 deletions

View file

@ -11,7 +11,7 @@ import {
// Define API URL and base path
const apiUrl = (() => {
if (window.origin === "null" || window.origin === "http://localhost:3031") {
return "http://localhost:3030"
return "http://localhost:3030";
}
let port = /http.*:\/\/.*:(\d+)/.exec(window.origin)?.[1];
if (port == "3031") {