We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd6a636 commit f04b161Copy full SHA for f04b161
client/src/App.tsx
@@ -59,6 +59,7 @@ const DEFAULT_REQUEST_TIMEOUT_MSEC = 10000;
59
60
const params = new URLSearchParams(window.location.search);
61
const PROXY_PORT = params.get("proxyPort") ?? "3000";
62
+const REQUEST_TIMEOUT = parseInt(params.get("timeout") ?? "") || DEFAULT_REQUEST_TIMEOUT_MSEC;
63
const PROXY_SERVER_URL = `http://localhost:${PROXY_PORT}`;
64
65
const App = () => {
@@ -243,7 +244,7 @@ const App = () => {
243
244
const abortController = new AbortController();
245
const timeoutId = setTimeout(() => {
246
abortController.abort("Request timed out");
- }, DEFAULT_REQUEST_TIMEOUT_MSEC);
247
+ }, REQUEST_TIMEOUT);
248
249
let response;
250
try {
0 commit comments