fix: Fix timeout

This commit is contained in:
Myzel394 2024-11-09 14:36:16 +01:00
parent ef877edd13
commit dc31bf880c
No known key found for this signature in database
GPG Key ID: ED20A1D1D423AF3F

View File

@ -1,10 +1,11 @@
import { Hono } from "hono"; import { Hono } from "hono";
import { portRoute } from "./routes/port"; import { portRoute } from "./routes/port";
import { timeout } from "hono/timeout";
const app = new Hono(); const app = new Hono();
app.use(timeout(90_000));
app.route("/", portRoute); app.route("/", portRoute);
export default app; Bun.serve({
...app,
idleTimeout: 90,
})