Skip to content

Commit

Permalink
fix: fix vercel Redis read error.
Browse files Browse the repository at this point in the history
  • Loading branch information
adolphnov committed Aug 21, 2024
1 parent 4ff4922 commit 10a1e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adapter/vercel/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default async (req, res) => {
env.UPSTASH_REDIS_REST_URL ||= process.env.REDIS_URL;
env.UPSTASH_REDIS_REST_TOKEN ||= process.env.REDIS_TOKEN;

env.DATABASE = new Redis.fromEnv();
env.DATABASE = Redis.fromEnv();

const body = await req.text();
const cfReq = new Request(req.url, {
Expand Down

0 comments on commit 10a1e71

Please sign in to comment.