invidious-companion-patches/patches/0017-chore-sets-a-default-timeout-of-30-seconds-on-reques.patch
Fijxu 5553757d97
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m3s
updated patches and invidious-companion
2025-04-24 18:10:53 -04:00

25 lines
901 B
Diff

From a6824288f9b9bd42c3dc99bf76f0b7ddf5d0dadb Mon Sep 17 00:00:00 2001
From: Fijxu <fijxu@nadeko.net>
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