update glass + pattenr + ...
deploy to danak / build_and_deploy (push) Has been cancelled

This commit is contained in:
hamid zarghami
2026-07-07 14:48:33 +03:30
parent 2dc44d1c77
commit c08b4ec023
45 changed files with 1576 additions and 317 deletions
+13
View File
@@ -0,0 +1,13 @@
const DEFAULT_TIMEOUT_MS = 5000;
export async function fetchWithTimeout(
url: string,
options: RequestInit & { timeoutMs?: number } = {},
): Promise<Response> {
const { timeoutMs = DEFAULT_TIMEOUT_MS, ...fetchOptions } = options;
return fetch(url, {
...fetchOptions,
signal: AbortSignal.timeout(timeoutMs),
});
}