We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31c0a9f commit b08fd4cCopy full SHA for b08fd4c
1 file changed
packages/backend/src/interface/auth.module.ts
@@ -69,15 +69,12 @@ const JWT_SIGNER_VERIFIER = 'JWT_SIGNER_VERIFIER';
69
// ── Redis client — URL read via ConfigService, not module-level constant ─
70
{
71
provide: REDIS_CLIENT,
72
- useFactory: (config: ConfigService) => {
73
- const url = new URL(
74
- config.get<string>('REDIS_URL') ?? 'redis://localhost:6379',
75
- );
76
- return new Redis({
77
- host: url.hostname,
78
- port: Number(url.port) || 6379,
79
- });
80
- },
+ useFactory: (config: ConfigService) =>
+ new Redis(config.get<string>('REDIS_URL') ?? 'redis://localhost:6379', {
+ family: 0,
+ maxRetriesPerRequest: null,
+ enableReadyCheck: false,
+ }),
81
inject: [ConfigService],
82
},
83
0 commit comments