File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
apps/web/src/app/(landing)/play/checker/api Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import { z } from "zod";
1717export const runtime = "edge" ;
1818
1919const RATE_LIMIT_WINDOW = 60 ; // 60 seconds
20- const MAX_REQUESTS_PER_WINDOW = 5 ;
20+ const MAX_REQUESTS_PER_WINDOW = 3 ;
2121
2222// Request schema validation
2323const playCheckerRequestSchema = z . object ( {
@@ -208,7 +208,7 @@ export async function POST(request: Request) {
208208 if ( ! rateLimitResult . success ) {
209209 return createErrorResponse (
210210 "RATE_LIMIT_EXCEEDED" ,
211- " You have exceeded the rate limit of 10 requests per 60 seconds" ,
211+ ` You have exceeded the rate limit of ${ MAX_REQUESTS_PER_WINDOW } requests per ${ RATE_LIMIT_WINDOW } seconds` ,
212212 429 ,
213213 {
214214 limit : rateLimitResult . limit ,
You can’t perform that action at this time.
0 commit comments