From bd9053f6722412faf99d00f1b0217ec5c50e9109 Mon Sep 17 00:00:00 2001 From: Muhammad Ali Date: Mon, 23 Feb 2026 16:28:52 -0800 Subject: [PATCH 1/2] Fix DurableObjectNamespace type annotations in env vars examples --- .../docs/sandbox/configuration/environment-variables.mdx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/content/docs/sandbox/configuration/environment-variables.mdx b/src/content/docs/sandbox/configuration/environment-variables.mdx index fa00e71980b1fcf..152dbde0c877fa0 100644 --- a/src/content/docs/sandbox/configuration/environment-variables.mdx +++ b/src/content/docs/sandbox/configuration/environment-variables.mdx @@ -183,9 +183,10 @@ Then pass them to your sandbox: ```typescript import { getSandbox } from "@cloudflare/sandbox"; +export { Sandbox } from "@cloudflare/sandbox"; interface Env { - Sandbox: DurableObjectNamespace; + Sandbox: DurableObjectNamespace; OPENAI_API_KEY: string; DATABASE_URL: string; } @@ -278,9 +279,10 @@ Bucket mounting requires production deployment. It does not work with `wrangler ```typescript import { getSandbox } from "@cloudflare/sandbox"; +export { Sandbox } from "@cloudflare/sandbox"; interface Env { - Sandbox: DurableObjectNamespace; + Sandbox: DurableObjectNamespace; AWS_ACCESS_KEY_ID: string; AWS_SECRET_ACCESS_KEY: string; } From c7fc6a3cef42d507d7168f0a00e532617305383c Mon Sep 17 00:00:00 2001 From: Muhammad Ali Date: Mon, 23 Feb 2026 16:41:22 -0800 Subject: [PATCH 2/2] Remove trailing comma in JSONC wrangler config example --- .../docs/sandbox/configuration/environment-variables.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/sandbox/configuration/environment-variables.mdx b/src/content/docs/sandbox/configuration/environment-variables.mdx index 152dbde0c877fa0..e92d8bed627b381 100644 --- a/src/content/docs/sandbox/configuration/environment-variables.mdx +++ b/src/content/docs/sandbox/configuration/environment-variables.mdx @@ -27,7 +27,7 @@ Controls the transport protocol for SDK-to-container communication. WebSocket tr { "vars": { "SANDBOX_TRANSPORT": "websocket" - }, + } } ```