There was an error while loading. Please reload this page.
1 parent e5f3de0 commit cd2a0c0Copy full SHA for cd2a0c0
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