Skip to content

Commit 79f5c1a

Browse files
committed
fix(redis): declare redis variable and resolve compilation error
1 parent 646e57e commit 79f5c1a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/lib/cache/redis.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { Redis } from "@upstash/redis";
22

3+
let redis: Redis | null = null;
4+
35
const isMockRedis =
46
!process.env.UPSTASH_REDIS_REST_URL ||
57
process.env.UPSTASH_REDIS_REST_URL.includes("mock") ||

0 commit comments

Comments
 (0)