Redis fixes again?
This commit is contained in:
parent
895576dffd
commit
9630968e6f
1 changed files with 2 additions and 0 deletions
|
@ -1,7 +1,9 @@
|
||||||
import { Redis } from "@upstash/redis";
|
import { Redis } from "@upstash/redis";
|
||||||
import { env } from "~/env.mjs";
|
import { env } from "~/env.mjs";
|
||||||
|
import https from "https";
|
||||||
|
|
||||||
export const redis = new Redis({
|
export const redis = new Redis({
|
||||||
url: env.UPSTASH_REDIS_REST_URL,
|
url: env.UPSTASH_REDIS_REST_URL,
|
||||||
token: env.UPSTASH_REDIS_REST_TOKEN,
|
token: env.UPSTASH_REDIS_REST_TOKEN,
|
||||||
|
agent: new https.Agent({ keepAlive: true }),
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue