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!");