mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-24 11:16:57 +00:00
chore(serve): set idleTimeout to 120 seconds in Bun.serve
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user