From d993f4671634bbcf2b9bb373513b0a1cfcf8cd27 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Thu, 23 Jan 2025 16:34:02 -0500 Subject: No longer hardcoding the port --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d127d85..fab16f3 100644 --- a/index.js +++ b/index.js @@ -205,5 +205,5 @@ app.get("/logout", (req, res) => { }); }); -const port = 3000; +const port = process.env.PORT; app.listen(port, () => console.log(`Server running on http://localhost:${port}`)); -- cgit v1.2.3