feature(backend): PORT-EnvVar wordt nu ook via envvar.ts ingelezen

This commit is contained in:
Gerald Schmittinger 2025-02-26 23:18:11 +01:00
parent 73a84fa3ef
commit ee5fe4774e
4 changed files with 4 additions and 3 deletions

View file

@ -1,8 +1,9 @@
import express, { Express, Response } from 'express';
import { initORM } from './orm.js';
import {EnvVars, getNumericEnvVar} from "./util/envvars.js";
const app: Express = express();
const port: string | number = process.env.PORT || 3000;
const port: string | number = getNumericEnvVar(EnvVars.Port);
// TODO Replace with Express routes
app.get('/', (_, res: Response) => {