chore(serve): set idleTimeout to 120 seconds in Bun.serve

This commit is contained in:
yiling
2026-07-11 21:11:18 +08:00
parent b57a3e0239
commit bcb17acaf7
+1
View File
@@ -114,6 +114,7 @@ async function run() {
const server = Bun.serve({
port,
idleTimeout: 120,
maxRequestBodySize: process.env.MAX_REQUEST_BODY_SIZE
? parseInt(process.env.MAX_REQUEST_BODY_SIZE)
: 1024 * 1024 * 1024 * 10, // Default 10GB