diff --git a/.env.example b/.env.example index 45ee3bf..58ec1e8 100644 --- a/.env.example +++ b/.env.example @@ -2,4 +2,6 @@ MSSQL_USER="" MSSQL_PASSWORD="" MSSQL_DB="" MSSQL_HOST="localhost" -MSSQL_PORT="1433" \ No newline at end of file +MSSQL_PORT="1433" +REPORT_CONCURRENT_PARSE_CLIENTS="3" +PORT="3000" \ No newline at end of file diff --git a/index.js b/index.js index cc75720..31e0f27 100644 --- a/index.js +++ b/index.js @@ -4,7 +4,7 @@ import { reportsHandlers } from "./handlers/index.js"; import packageJson from "./package.json" with { type: "json" }; import db from "./db.js"; -const SERVER_PORT = 3000; +const SERVER_PORT = Number.parseInt(`${process.env.PORT || "3000"}`, 10); /** @type {Map} */ export const clients = new Map();