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);
|
2020-07-04 18:29:07 +00:00
|
|
|
|
|
|
|
if (!process.env.SESSION_SECRET) {
|
|
|
|
console.log("Missing environment variable SESSION_SECRET");
|
|
|
|
process.exit(1);
|
|
|
|
}
|
|
|
|
export const sessionSecret: string = process.env.SESSION_SECRET;
|