From 09568ef684395af75cde45a43b43fa548113376c Mon Sep 17 00:00:00 2001 From: m5r Date: Mon, 2 Aug 2021 15:38:13 +0800 Subject: [PATCH] test api route timeout --- app/api/ddd.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/api/ddd.ts b/app/api/ddd.ts index 34a4149..f6bdc7e 100644 --- a/app/api/ddd.ts +++ b/app/api/ddd.ts @@ -49,5 +49,7 @@ export default async function ddd(req: BlitzApiRequest, res: BlitzApiResponse) { console.log("messagesReceived", messagesReceived.sort((a, b) => a.dateCreated.getTime() - b.dateCreated.getTime())); // console.log("messagesReceived", messagesReceived);*/ - res.status(200).end(); + setTimeout(() => { + res.status(200).end(); + }, 1000 * 60 * 5); }