docs: replace outdated ALL_TRAFFIC syntax with selector callbacks#231
docs: replace outdated ALL_TRAFFIC syntax with selector callbacks#231mishushakov wants to merge 2 commits into
Conversation
PR SummaryLow Risk Overview Examples that used Prose is tightened across JS/Python: camelCase / snake_case option names, clearer allow/deny wording, and per-host rules examples now include explicit Reviewed by Cursor Bugbot for commit fc2008f. Bugbot is set up for automated code reviews on this repo. Configure here. |
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
Updates
docs/sandbox/internet-access.mdxto replace the outdatedALL_TRAFFICconstant in all code examples with the recommended selector-callback syntax (denyOut: ({ allTraffic }) => [allTraffic]in JS,"deny_out": lambda ctx: [ctx.all_traffic]in Python), per e2b-dev/E2B#1286, and dropsALL_TRAFFICfrom the relevant imports. The dedicated ALL_TRAFFIC helper section is removed since the Selector callbacks section already documents the deny-all pattern. Also adds a note that updating per-hostnetwork.rules(transforms) on a running sandbox currently has no effect, since transforms only apply at creation time.🤖 Generated with Claude Code