Closed unstubbable closed 6 months ago
Syncing this with: https://github.com/upstash/ratelimit/blob/3c3818daade86a2fa294cb4785535ecd981d706d/src/ratelimit.ts#L63
Potential follow-up: Maybe the three types RatelimitConfig, RegionRatelimitConfig, and MultiRegionRatelimitConfig should share a base config type that contains the common properties (prefix, ephemeralCache, timeout, and analytics).
RatelimitConfig
RegionRatelimitConfig
MultiRegionRatelimitConfig
prefix
ephemeralCache
timeout
analytics
@unstubbable is attempting to deploy a commit to the Upstash Team on Vercel.
A member of the Team first needs to authorize it.
Thanks. I'll discuss the shared config option with the team.
Syncing this with: https://github.com/upstash/ratelimit/blob/3c3818daade86a2fa294cb4785535ecd981d706d/src/ratelimit.ts#L63
Potential follow-up: Maybe the three types
RatelimitConfig
,RegionRatelimitConfig
, andMultiRegionRatelimitConfig
should share a base config type that contains the common properties (prefix
,ephemeralCache
,timeout
, andanalytics
).