From 31bd3738283a6096ed743221993a48da19a91db0 Mon Sep 17 00:00:00 2001 From: me Date: Fri, 14 Mar 2025 10:21:20 +0200 Subject: [PATCH] port as env var --- backend/src/main.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main.mjs b/backend/src/main.mjs index 0c92858..6679831 100644 --- a/backend/src/main.mjs +++ b/backend/src/main.mjs @@ -65,7 +65,7 @@ migrate(db, migrations, 1); // server const app = express(); -const port = 8080; +const port = env.process.PORT || 8080; app.use(express.urlencoded({ extended: true })); app.use(compression());