learn-request-queue/src/config.ts

7 lines
167 B
TypeScript
Raw Normal View History

2020-06-24 21:34:53 +00:00
if (!process.env.PORT) {
console.log("Missing environment variable PORT");
process.exit(1);
}
export const port: number = parseInt(process.env.PORT as string, 10);