e2b-cookbook
e2b-cookbook copied to clipboard
Replace unnecessary code-interpreter import in custom-sandbox-domain-proxy
Summary
- Changed
custom-sandbox-domain-proxyexample to use basee2bSDK instead of@e2b/code-interpreter - This example only uses
sandbox.commands.run(),sandbox.getHost(), andsandbox.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 installin the example directory to verify dependency resolves - [ ] Verify the import
import Sandbox from 'e2b'works correctly - [ ] Confirm the example still functions