[feature] HTTP API timeouts (#290)
* write an extractor for timeout * Use timeout * Default timeout 10min
This commit is contained in:
parent
a1de63e486
commit
fce467e005
2 changed files with 76 additions and 7 deletions
|
|
@ -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") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue