e2b-cookbook icon indicating copy to clipboard operation
e2b-cookbook copied to clipboard

Replace unnecessary code-interpreter import in custom-sandbox-domain-proxy

Open beran-t opened this issue 8 months ago • 0 comments

Summary

  • Changed custom-sandbox-domain-proxy example to use base e2b SDK instead of @e2b/code-interpreter
  • This example only uses sandbox.commands.run(), sandbox.getHost(), and sandbox.kill() — none of which require code-interpreter
  • Updated import, package.json dependency, and README link

Why

The @e2b/code-interpreter package should only be used when runCode() is needed. This example demonstrates domain proxying with sandbox commands and networking, which are all available in the base e2b SDK.

Test plan

  • [ ] Run npm install in the example directory to verify dependency resolves
  • [ ] Verify the import import Sandbox from 'e2b' works correctly
  • [ ] Confirm the example still functions

beran-t avatar Mar 23 '26 14:03 beran-t