fix: initialize redis client and pass it to hocuspocus (#5516)

* fix: initialize redis client and pass it to hocuspocus

* chore: renamed func

* fix: yarn lock
This commit is contained in:
M. Palanikannan 2024-09-04 16:35:01 +05:30 committed by GitHub
parent 20b1558dd7
commit 9f12d13dea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 96 additions and 18 deletions

View file

@ -1,6 +1,4 @@
type RedisConfig = string | { host: string; port: number } | null;
export function getRedisConfig(): RedisConfig {
export function getRedisUrl() {
const redisUrl = process.env.REDIS_URL?.trim();
const redisHost = process.env.REDIS_HOST?.trim();
const redisPort = process.env.REDIS_PORT?.trim();