From 857ddb712472afde4d7a0e9f879c4e6ab926684e Mon Sep 17 00:00:00 2001 From: anatolykopyl Date: Tue, 9 May 2023 22:10:44 +0300 Subject: [PATCH] Port from .env --- index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.ts b/index.ts index 0eb6a9a..e32eba5 100644 --- a/index.ts +++ b/index.ts @@ -1,8 +1,9 @@ +const PORT = process.env.PORT const BOT_TOKEN = process.env.BOT_TOKEN as string const CHAT_ID = process.env.CHAT_ID as string const server = Bun.serve({ - port: 3000, + port: PORT, async fetch(req) { if (!req.body) { throw new Error("woops!");