From 05bf74aca5d7ec598cde2e8bfa44e58ed217316b Mon Sep 17 00:00:00 2001 From: thomasabishop Date: Fri, 17 Oct 2025 19:14:01 +0100 Subject: [PATCH] refactor: change default port to 4000 to avoid clashes on server --- src/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/index.js b/src/index.js index 7a9e20d..69f485b 100644 --- a/src/index.js +++ b/src/index.js @@ -5,7 +5,7 @@ import cors from "cors" import { validateApiKey } from "./middlewear/auth.js" const app = express() -const port = process.env.PORT || 3000 +const port = process.env.PORT || 4000 app.use(cors()) app.use(express.json()) @@ -14,10 +14,10 @@ app.use("/entries", entries) app.use("/tags", tags) app.listen(port, () => { - console.info(`TB-INFO eolas-api running on NodeJS ${process.version}`) - console.info(`TB-INFO eolas-api server running at http://localhost:${port}`) + console.info(`TB-INFO eolas-api running on NodeJS ${process.version}`) + console.info(`TB-INFO eolas-api server running at http://localhost:${port}`) }) app.get("/health", (req, res) => { - res.status(200).json({ status: ok }) + res.status(200).json({ status: ok }) })