Skip to content

Commit 01c0f9e

Browse files
Ripwordsclaude
andcommitted
feat(env): add user-file intake size budgets
Adds INTAKE_USER_FILE_MAX_BYTES (10 MiB), INTAKE_USER_FILES_TOTAL_MAX_BYTES (25 MiB), and INTAKE_USER_FILES_MAX_COUNT (5) knobs to the env schema. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 9fd59b1 commit 01c0f9e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • apps/dashboard/server/lib

apps/dashboard/server/lib/env.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ const Schema = z.object({
7878
INTAKE_RATE_PER_IP: intString(20),
7979
INTAKE_RATE_PER_KEY_ANON: intString(10),
8080
INTAKE_MAX_BYTES: intString(5_242_880),
81+
INTAKE_USER_FILE_MAX_BYTES: intString(10 * 1024 * 1024),
82+
INTAKE_USER_FILES_TOTAL_MAX_BYTES: intString(25 * 1024 * 1024),
83+
INTAKE_USER_FILES_MAX_COUNT: intString(5),
8184
INTAKE_REQUIRE_DWELL: boolString.default(true),
8285
INTAKE_MIN_DWELL_MS: intString(1_500),
8386

0 commit comments

Comments
 (0)