aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Lee <andrew@alee14.me>2025-01-23 16:34:02 -0500
committerAndrew Lee <andrew@alee14.me>2025-01-23 16:34:02 -0500
commitd993f4671634bbcf2b9bb373513b0a1cfcf8cd27 (patch)
tree0abea6ae3d2951fa9917e161436cc45fb042e0dc
parenta1b29429b53f0c97a014403534312596da0f4cc1 (diff)
downloadbnbaim-auth-d993f4671634bbcf2b9bb373513b0a1cfcf8cd27.tar.gz
bnbaim-auth-d993f4671634bbcf2b9bb373513b0a1cfcf8cd27.tar.bz2
bnbaim-auth-d993f4671634bbcf2b9bb373513b0a1cfcf8cd27.zip
No longer hardcoding the port
-rw-r--r--index.js2
1 files changed, 1 insertions, 1 deletions
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}`));