increase the rate limit for /api/i endpoint, preventing some 429 errors if multiple tabs reload simultaneously
This commit is contained in:
@@ -31,10 +31,12 @@ export const meta = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
// 3 calls per second
|
// up to 20 calls, then 1 per second.
|
||||||
|
// This handles bursty traffic when all tabs reload as a group
|
||||||
limit: {
|
limit: {
|
||||||
duration: 1000,
|
max: 20,
|
||||||
max: 3,
|
dripSize: 1,
|
||||||
|
dripRate: 1000,
|
||||||
},
|
},
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user