Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Disable Ratelimitter Locally #351

Merged
merged 2 commits into from
Apr 25, 2023
Merged

🐛 Disable Ratelimitter Locally #351

merged 2 commits into from
Apr 25, 2023

Conversation

awtkns
Copy link
Member

@awtkns awtkns commented Apr 25, 2023

No description provided.

@vercel
Copy link

vercel bot commented Apr 25, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
agent-gpt ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 25, 2023 6:08pm

@awtkns awtkns requested a review from asim-shrestha April 25, 2023 18:05
limiter: Ratelimit.slidingWindow(
env.RATE_LIMITER_REQUESTS_PER_MINUTE ?? 100,
"60 s"
),
analytics: true,
prefix: "@upstash/ratelimit",
});

export const isAllowed = env.UPSTASH_REDIS_REST_TOKEN
Copy link
Contributor

Choose a reason for hiding this comment

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

Leave comment saying if env is not set, rate limiting is disabled

@awtkns awtkns merged commit 1a59c02 into main Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants