@cocalc/backend
Version:
CoCalc backend functionality: functionality used by either the hub, the next.js server or the project.
17 lines (15 loc) • 475 B
JavaScript
;
/* Determine the port that the hub will serve on.
If the environment variable PORT is set, use that port; otherwise, use port 5000.
The default export of this module is the port number.
*/
Object.defineProperty(exports, "__esModule", { value: true });
const DEFAULT_PORT = 5000;
function port() {
if (process.env.PORT) {
return parseInt(process.env.PORT);
}
return DEFAULT_PORT;
}
exports.default = port();
//# sourceMappingURL=port.js.map