update port checking on prod
This commit is contained in:
+2
-1
@@ -5,7 +5,8 @@ import https from "https";
|
||||
process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = 0;
|
||||
|
||||
let BASE_URL;
|
||||
BASE_URL = process.env.API_ROOT || "http://localhost";
|
||||
const port = parseInt(process.env.PORT, 10) || 3000;
|
||||
BASE_URL = process.env.API_ROOT || `http://localhost:${port}`;
|
||||
|
||||
const agent = new https.Agent({
|
||||
rejectUnauthorized: false,
|
||||
|
||||
Reference in New Issue
Block a user