Safety around no config data

master
j 2024-04-07 22:00:49 -04:00
parent 4ca5f8bd20
commit be1dd71f73
1 changed files with 1 additions and 0 deletions

View File

@ -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),