7 lines
167 B
TypeScript
7 lines
167 B
TypeScript
|
if (!process.env.PORT) {
|
||
|
console.log("Missing environment variable PORT");
|
||
|
process.exit(1);
|
||
|
}
|
||
|
|
||
|
export const port: number = parseInt(process.env.PORT as string, 10);
|