port as env var

This commit is contained in:
me 2025-03-14 10:21:20 +02:00
parent 99341d7778
commit 31bd373828

View File

@ -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());