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:
parent
20b1558dd7
commit
9f12d13dea
4 changed files with 96 additions and 18 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue