Safety around no config data
parent
4ca5f8bd20
commit
be1dd71f73
|
@ -14,6 +14,7 @@ class RedisSessionManager {
|
|||
public readonly client: Redis;
|
||||
|
||||
private constructor() {
|
||||
if (!process.env.REDIS_HOST) throw new Error('Unknown Host')
|
||||
const redisConfig: RedisConfig = {
|
||||
host: process.env.REDIS_HOST!,
|
||||
port: Number(process.env.REDIS_PORT),
|
||||
|
|
Loading…
Reference in New Issue