From dc31bf880c588f4cda61f329b901cdf047365bfd Mon Sep 17 00:00:00 2001 From: Myzel394 <50424412+Myzel394@users.noreply.github.com> Date: Sat, 9 Nov 2024 14:36:16 +0100 Subject: [PATCH] fix: Fix timeout --- src/index.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index 537adba..3973e68 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,10 +1,11 @@ import { Hono } from "hono"; import { portRoute } from "./routes/port"; -import { timeout } from "hono/timeout"; const app = new Hono(); -app.use(timeout(90_000)); app.route("/", portRoute); -export default app; +Bun.serve({ + ...app, + idleTimeout: 90, +})