mirror of
https://github.com/Myzel394/amiopen.now.git
synced 2025-06-18 15:35:27 +02:00
fix: Fix timeout
This commit is contained in:
parent
ef877edd13
commit
dc31bf880c
@ -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,
|
||||||
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user