Merge dev.

This commit is contained in:
Mike Cao committed 2025-04-28 20:09:58 -07:00
commit be1b2fc272
88 files changed
+4120 -21010

No files matched your search

+3 -3
View File
@@ -4,13 +4,13 @@ const REDIS = 'redis';
const enabled = !!process.env.REDIS_URL;
function getClient() {
const client = new UmamiRedisClient(process.env.REDIS_URL);
const redis = new UmamiRedisClient(process.env.REDIS_URL);
if (process.env.NODE_ENV !== 'production') {
global[REDIS] = client;
global[REDIS] = redis;
}
return client;
return redis;
}
const client = global[REDIS] || getClient();