From a6824288f9b9bd42c3dc99bf76f0b7ddf5d0dadb Mon Sep 17 00:00:00 2001 From: Fijxu Date: Tue, 22 Apr 2025 15:47:41 -0400 Subject: [PATCH 17/17] chore: sets a default timeout of 30 seconds on requests --- src/lib/helpers/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/helpers/config.ts b/src/lib/helpers/config.ts index 602e460..4b57a4f 100644 --- a/src/lib/helpers/config.ts +++ b/src/lib/helpers/config.ts @@ -32,7 +32,7 @@ export const ConfigSchema = z.object({ ump: z.boolean().default(false), proxy: z.string().nullable().default(Deno.env.get("PROXY") || null), fetch: z.object({ - timeout_ms: z.number().optional(), + timeout_ms: z.number().default(30_000), retry: z.object({ enabled: z.boolean(), times: z.number().optional(), -- 2.49.0