build
Some checks failed
Build & Deploy / deploy (push) Failing after 3m24s

This commit is contained in:
2026-01-18 15:57:17 +01:00
parent b05a21350c
commit c14556816e
3 changed files with 43 additions and 9 deletions

View File

@@ -2,7 +2,6 @@ import { AppServices } from './app-services';
import { NoopAnalyticsService } from './analytics/noop-analytics-service';
import { UmamiAnalyticsService } from './analytics/umami-analytics-service';
import { MemoryCacheService } from './cache/memory-cache-service';
import { RedisCacheService } from './cache/redis-cache-service';
import { GlitchtipErrorReportingService } from './errors/glitchtip-error-reporting-service';
import { NoopErrorReportingService } from './errors/noop-error-reporting-service';
@@ -31,13 +30,10 @@ export function getAppServices(): AppServices {
? new GlitchtipErrorReportingService({ enabled: true })
: new NoopErrorReportingService();
const redisUrl = process.env.REDIS_URL;
const cache = redisUrl
? new RedisCacheService({
url: redisUrl,
keyPrefix: process.env.REDIS_KEY_PREFIX ?? 'klz:',
})
: new MemoryCacheService();
// IMPORTANT: This module is imported by client components.
// Do not import Node-only modules (like the `redis` client) here.
// Use [`getServerAppServices()`](lib/services/create-services.server.ts:1) on the server.
const cache = new MemoryCacheService();
singleton = new AppServices(analytics, errors, cache);
return singleton;