From 1e99474780951043e1b001e1877de3f2eb45cfba Mon Sep 17 00:00:00 2001 From: BennyKok Date: Thu, 18 Jan 2024 02:40:52 +0800 Subject: [PATCH] fix: max duration for 5mins incase modal cold start too long --- web/src/app/(app)/api/[[...routes]]/route.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/web/src/app/(app)/api/[[...routes]]/route.ts b/web/src/app/(app)/api/[[...routes]]/route.ts index 6d92a34..ea42f63 100644 --- a/web/src/app/(app)/api/[[...routes]]/route.ts +++ b/web/src/app/(app)/api/[[...routes]]/route.ts @@ -8,6 +8,7 @@ import type { Context, Next } from "hono"; import { handle } from "hono/vercel"; export const dynamic = "force-dynamic"; +export const maxDuration = 300; // 5 minutes declare module "hono" { interface ContextVariableMap {