Skip to content

Commit

Permalink
fix: Fixed an error which caused the failing of the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FleetAdmiralJakob committed Jan 22, 2024
1 parent 405c0f1 commit a0b522c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/src/trpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const ratelimit = new Ratelimit({
prefix: "@upstash/ratelimit",
});

const EXCLUDED_IPS = env.UPSTASH_RATELIMITER_EXCLUDED_IPS.split(",");
const EXCLUDED_IPS = (env.UPSTASH_RATELIMITER_EXCLUDED_IPS ?? "").split(",");

const rateLimitMiddleware = t.middleware(async ({ ctx, path, next }) => {
const identifier = `${ctx.ip}:${path}`;
Expand Down

1 comment on commit a0b522c

@vercel
Copy link

@vercel vercel bot commented on a0b522c Jan 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.