chore: allow longer workflow preview fetch timeout

This commit is contained in:
Your Name 2026-05-28 20:02:17 +08:00
parent 5ccd392b75
commit dfd55a136a

View File

@ -6,7 +6,7 @@ import { uploadFile } from "@/lib/storage/service";
const PREVIEW_WIDTH = 230;
const PREVIEW_QUALITY = 76;
const FETCH_TIMEOUT_MS = 15_000;
const FETCH_TIMEOUT_MS = Number(process.env.AGENT_WORKFLOW_PREVIEW_FETCH_TIMEOUT_MS || 15_000);
const MAX_SOURCE_BYTES = 40 * 1024 * 1024;
const DEFAULT_CONCURRENCY = 3;