We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d96b06 commit 78fae77Copy full SHA for 78fae77
2 files changed
packages/js-sdk/tests/runtimes/browser/run.test.tsx
@@ -12,7 +12,10 @@ function E2BTest() {
12
13
useEffect(() => {
14
const getText = async () => {
15
- const sandbox = await Sandbox.create(template, { apiKey: inject('E2B_API_KEY') })
+ const sandbox = await Sandbox.create(template, {
16
+ apiKey: inject('E2B_API_KEY'),
17
+ domain: inject('E2B_DOMAIN')
18
+ })
19
20
try {
21
await sandbox.commands.run('echo "Hello World" > hello.txt')
packages/js-sdk/vitest.workspace.mts
@@ -34,6 +34,7 @@ export default defineWorkspace([
34
},
35
provide: {
36
E2B_API_KEY: process.env.E2B_API_KEY || env.parsed?.E2B_API_KEY,
37
+ E2B_DOMAIN: process.env.E2B_DOMAIN || env.parsed?.E2B_DOMAIN,
38
39
40
0 commit comments