There was an error while loading. Please reload this page.
1 parent 04410fa commit 316db63Copy full SHA for 316db63
1 file changed
apps/webapp/app/services/apiRateLimit.server.ts
@@ -74,7 +74,8 @@ export const apiRateLimiter = authorizationRateLimitMiddleware({
74
75
return {
76
config: authenticatedEnv.environment.organization.apiRateLimiterConfig,
77
- identifier: authenticatedEnv.environment.id,
+ // Public keys are browser-distributed, so keep them on per-key buckets.
78
+ identifier: authenticatedEnv.type === "PRIVATE" ? authenticatedEnv.environment.id : undefined,
79
};
80
},
81
pathMatchers: [/^\/api/],
0 commit comments