From d291f049b8dbd2f5011c474e0f47e5584f7521ee Mon Sep 17 00:00:00 2001 From: Giulio Librando <76574961+giuliolibrando@users.noreply.github.com> Date: Wed, 11 Feb 2026 18:06:23 +0100 Subject: [PATCH] fix: allow dynamic server port via environment variable (#530) --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index c163e74..b48f31a 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -65,7 +65,7 @@ if (process.env.NODE_ENV !== "production") { }); } -app.listen(3000); +app.listen(process.env.PORT || 3000); console.log(`🦊 Elysia is running at http://${app.server?.hostname}:${app.server?.port}${WEBROOT}`);