From b08bcca847fe32df2b19caac2768ef7ef441e659 Mon Sep 17 00:00:00 2001 From: Giulio Librando <76574961+giuliolibrando@users.noreply.github.com> Date: Mon, 2 Feb 2026 23:03:40 +0100 Subject: [PATCH] fix: allow dynamic server port via environment variable Replaced hardcoded port 3000 with process.env.PORT in src/index.tsx to support custom deployment environments. --- 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}`);