Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(plugins): say where the sandbox worker env comes from

Yudhi Armyndharisdffd77ea0885
diff --git a/src/core/plugins/sandbox/worker-thread-channel.ts b/src/core/plugins/sandbox/worker-thread-channel.ts
index 3c32a158d..dc0be25b0 100644
--- a/src/core/plugins/sandbox/worker-thread-channel.ts
+++ b/src/core/plugins/sandbox/worker-thread-channel.ts
@@ -8,7 +8,7 @@ export interface WorkerThreadChannelOptions {
maxOldGenerationSizeMb?: number;
/** Extra Node args for the worker (e.g. a TS loader in tests). */
execArgv?: string[];
- /** Environment for the worker. Later phases use this to hand the worker a minimal, scrubbed env. */
+ /** Environment for the worker; production passes the allowlisted env from buildSandboxWorkerEnv(). */
env?: NodeJS.ProcessEnv;
}