From 5405630490bdd56a6154550f0ed67951d9b3682b Mon Sep 17 00:00:00 2001 From: Hydroxycarbamide Date: Wed, 3 Jan 2024 12:09:12 +0100 Subject: [PATCH] Set environement variables --- index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.ts b/index.ts index 6196168..20e2cc4 100644 --- a/index.ts +++ b/index.ts @@ -41,8 +41,8 @@ const fetch = (req: Request) => { } Bun.serve({ - port: 80, - hostname: "localhost", + port: Bun.env.PORT || 80, + hostname: Bun.env.HOSTNAME || "localhost", fetch });