We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a325bd5 commit 8c01a06Copy full SHA for 8c01a06
1 file changed
apps/webapp/app/components/admin/backOffice/RateLimitSection.tsx
@@ -10,16 +10,18 @@ import * as Property from "~/components/primitives/PropertyTable";
10
11
// Local shape mirrors the server-side discriminated union just enough for this
12
// view. Decoupled from the .server module so the component stays client-safe.
13
+// Duration fields are always suffixed strings — the server's DurationSchema
14
+// rejects anything else, so non-string overrides fall back to the default.
15
export type RateLimitConfig =
16
| {
17
type: "tokenBucket";
18
refillRate: number;
- interval: string | number;
19
+ interval: string;
20
maxTokens: number;
21
}
22
23
type: "fixedWindow" | "slidingWindow";
- window: string | number;
24
+ window: string;
25
tokens: number;
26
};
27
0 commit comments