override default port with runtime args

This commit is contained in:
srgooglo 2021-06-15 14:57:39 +02:00
parent fe21554210
commit f606853011

View File

@ -96,7 +96,7 @@ const DEFAULT_HEADERS = {
"Access-Control-Allow-Methods": "GET, POST, OPTIONS, PUT, PATCH, DELETE",
"Access-Control-Allow-Credentials": "true",
}
const DEFAULT_PORT = process.parsedArgs.listenPort ?? 1010
const DEFAULT_PORT = runtime.args.listenPort ?? 1010
//* HELPERS
function getUptime() {