Skip to content

Commit

Permalink
fix: remove lib and add redis directly to edge script.
Browse files Browse the repository at this point in the history
  • Loading branch information
vpallegar committed Jan 6, 2025
1 parent c3974c9 commit 0105bcb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 7 additions & 1 deletion api/rate-limit.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import {Ratelimit} from "@upstash/ratelimit";
import { redis as kv } from "../src/lib/redisClient";
import {IncomingMessage} from "http";
import {Aptos, AptosConfig, Network} from "@aptos-labs/ts-sdk";
import { Redis } from '@upstash/redis'

const kv = new Redis({
url: process.env.PROD_KV_KV_REST_API_URL!,
token: process.env.PROD_KV_KV_REST_API_TOKEN!,
})


const ratelimit = new Ratelimit({
redis: kv,
Expand Down
6 changes: 0 additions & 6 deletions src/lib/redisClient.ts

This file was deleted.

0 comments on commit 0105bcb

Please sign in to comment.