From e1d4c9df67958f6e5dbb46c6ac9f28aba2fb9312 Mon Sep 17 00:00:00 2001 From: Niklas Volcz Date: Fri, 20 Feb 2026 12:11:27 +0100 Subject: [PATCH] feat(presets): add BUN_CONFIG_MAX_HTTP_REQUESTS to safe global env Update the `safeEnv` preset to allow configuring `BUN_CONFIG_MAX_HTTP_REQUESTS=100` to limit the memory usage of Bun. Ref: https://bun.com/docs/runtime/environment-variables#configuring-bun --- lib/config/presets/internal/global.preset.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/config/presets/internal/global.preset.ts b/lib/config/presets/internal/global.preset.ts index b145432adaf..6610b720e49 100644 --- a/lib/config/presets/internal/global.preset.ts +++ b/lib/config/presets/internal/global.preset.ts @@ -2,7 +2,12 @@ import type { GlobalPreset } from '../types.ts'; export const presets: Record = { safeEnv: { - allowedEnv: ['GO*', 'GRADLE_OPTS', 'RUSTC_BOOTSTRAP'], + allowedEnv: [ + 'BUN_CONFIG_MAX_HTTP_REQUESTS', + 'GO*', + 'GRADLE_OPTS', + 'RUSTC_BOOTSTRAP', + ], description: 'Hopefully safe environment variables to allow users to configure.', },