Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🐛 fix: expose CRAWLER_TIMEOUT env for crawler (#14274)

Zhijie He49a71bed6ecc
diff --git a/packages/web-crawler/src/utils/withTimeout.ts b/packages/web-crawler/src/utils/withTimeout.ts
index bcc8d628297..5bd670d655b 100644
--- a/packages/web-crawler/src/utils/withTimeout.ts
+++ b/packages/web-crawler/src/utils/withTimeout.ts
@@ -1,6 +1,8 @@
import { TimeoutError } from './errorType';
-export const DEFAULT_TIMEOUT = 10_000;
+export const DEFAULT_TIMEOUT = process.env.CRAWLER_TIMEOUT
+ ? Number(process.env.CRAWLER_TIMEOUT)
+ : 10_000;
/**
* Wraps a factory function with a timeout and abort support.