From c8025737e85b5c8143ebe9f63505b0383ffa50d9 Mon Sep 17 00:00:00 2001 From: SpiralP Date: Thu, 29 Feb 2024 00:03:41 -0800 Subject: [PATCH] fix types --- web/discord-embed-proxy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/discord-embed-proxy.ts b/web/discord-embed-proxy.ts index 1c05851..0482307 100644 --- a/web/discord-embed-proxy.ts +++ b/web/discord-embed-proxy.ts @@ -11,7 +11,7 @@ import { promisify } from "util"; import { decodeComponent } from "./src/utils.js"; const HOST = process.env.HOST || "0.0.0.0"; -const PORT = process.env.PORT || 8080; +const PORT = parseInt(process.env.PORT || "8080", 10); const DISCORD_USER_AGENT = "Mozilla/5.0 (compatible; Discordbot/2.0; +https://discordapp.com)";