invidious-companion-patches/patches/0019-chore-sets-a-default-timeout-of-30-seconds-on-reques.patch
Fijxu 0f8f95b87e
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 12s
add 0018 and 0019
2025-04-22 15:43:05 -04:00

26 lines
962 B
Diff

From 22285b4dd0a965eb942ea8bdd946200ae6edb67a Mon Sep 17 00:00:00 2001
From: Fijxu <fijxu@nadeko.net>
Date: Tue, 22 Apr 2025 15:42:23 -0400
Subject: [PATCH 19/19] chore: sets a default timeout of 30 seconds on requests
From: https://github.com/iv-org/invidious-companion/pull/106
---
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