From 181ef9a8f45c52faadff91ae27b504f2bcdd147e Mon Sep 17 00:00:00 2001 From: Yuzu Date: Sun, 12 Jul 2026 18:50:44 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20remove=20export=20default?= =?UTF-8?q?=20causing=20false=20EADDRINUSE=20in=20Docker?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/index.ts b/src/index.ts index d353f46..3584deb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,6 @@ import { Elysia } from "elysia"; -const app = new Elysia() +new Elysia() .get("/", ({ server, request }) => { const ip = server?.requestIP(request); const ipStr = ip ? (typeof ip === "object" ? ip.address : ip) : "unknown"; @@ -26,8 +26,6 @@ const app = new Elysia() return data; }) - .listen({ port: 3000, hostname: "0.0.0.0" }); + .listen(3000); console.log("Listening on port 3000"); - -export default app;