Add session driver
This commit is contained in:
parent
057ee6e56d
commit
94c1dd5782
6 changed files with 135 additions and 1 deletions
|
@ -2,5 +2,10 @@ if (!process.env.PORT) {
|
|||
console.log("Missing environment variable PORT");
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
export const port: number = parseInt(process.env.PORT as string, 10);
|
||||
|
||||
if (!process.env.SESSION_SECRET) {
|
||||
console.log("Missing environment variable SESSION_SECRET");
|
||||
process.exit(1);
|
||||
}
|
||||
export const sessionSecret: string = process.env.SESSION_SECRET;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue