Closed sds closed 1 month ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
hub-monorepo | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Sep 25, 2024 5:13pm |
Latest commit: 090be5726c3f521df5e92e0dd599e2d1a9c2c0f2
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Why is this change needed?
When using a proxy in front of the hub you'll get rate limit errors even though the traffic is coming from different IPs.
Until we support the
X-Forwarded-For
, this is a quick way to unblock the use of reverse proxies like nginx or Caddy.Related to #1721.
Merge Checklist
PR-Codex overview
This PR focuses on enhancing the rate limiting functionality to ignore rate limits for local loopback traffic, specifically allowing requests from
127.0.0.1
without restrictions.Detailed summary
rateLimits.ts
to bypass rate limits for local loopback IP127.0.0.1
.server.ts
for local requests.rateLimits.test.ts
to ensure local requests are not rate limited.