From 430fedf594aad6cfdf08019c1c8b4f05dee0176f Mon Sep 17 00:00:00 2001 From: Munchy <80545175+thedudedies21@users.noreply.github.com> Date: Mon, 17 Mar 2025 12:49:24 -0400 Subject: [PATCH] Update index.ts --- src/index.ts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/index.ts b/src/index.ts index 0165c86..6e08ff4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -99,10 +99,6 @@ const instances = JSON.parse( readFileSync(process.env.JANK_INSTANCES_PATH || __dirname + "/webpage/instances.json").toString(), ) as instace[]; -const manifest = JSON.parse( - readFileSync(process.env.JANK_INSTANCES_PATH || __dirname + "/webpage/manifest.json").toString(), -) as object; - const instanceNames = new Map(); for (const instance of instances) { @@ -187,11 +183,6 @@ app.use("/", async (req: Request, res: Response) => { return; } - if (req.path.startsWith("/manifest.json")) { - res.json(manifest); - return; - } - if (req.path.startsWith("/invite/")) { res.sendFile(path.join(__dirname, "webpage", "invite.html")); return; @@ -202,7 +193,7 @@ app.use("/", async (req: Request, res: Response) => { app.set("trust proxy", (ip: string) => ip.startsWith("127.")); -const PORT = process.env.PORT || Number(process.argv[2]) || 8333; +const PORT = process.env.PORT || Number(process.argv[2]) || 8080; app.listen(PORT, () => { console.log(`Server running on port ${PORT}`); });