feature(backend): PORT-EnvVar wordt nu ook via envvar.ts ingelezen
This commit is contained in:
parent
73a84fa3ef
commit
ee5fe4774e
4 changed files with 4 additions and 3 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue