Skip to content

Commit f9a911a

Browse files
chore: update e2b sdk (#359)
Co-authored-by: Jakub Novák <jakub@e2b.dev>
1 parent c539a4a commit f9a911a

6 files changed

Lines changed: 9 additions & 9 deletions

File tree

bun.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
"cmdk": "^1.0.4",
102102
"date-fns": "^4.1.0",
103103
"date-fns-tz": "^3.2.0",
104-
"e2b": "^2.27.1",
104+
"e2b": "^2.28.0",
105105
"echarts": "^6.0.0",
106106
"echarts-for-react": "^3.0.2",
107107
"fast-xml-parser": "^5.3.5",

src/app/sbx/new/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const GET = async (req: NextRequest) => {
3131

3232
const sbx = await Sandbox.create('base', {
3333
domain: process.env.NEXT_PUBLIC_E2B_DOMAIN,
34-
headers: {
34+
apiHeaders: {
3535
...SUPABASE_AUTH_HEADERS(authContext.accessToken, team.id),
3636
},
3737
})

src/features/dashboard/sandbox/inspect/context.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export default function SandboxInspectProvider({
183183
domain: process.env.NEXT_PUBLIC_E2B_DOMAIN,
184184
// Keep inspect connections from extending sandbox TTL via SDK default connect timeout.
185185
timeoutMs: 1_000,
186-
headers: {
186+
apiHeaders: {
187187
...sandboxManagementAuth.headers,
188188
},
189189
})

src/features/dashboard/terminal/sandbox-session.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function connectTerminalSandbox(
7777
return Sandbox.connect(sandboxId, {
7878
domain: process.env.NEXT_PUBLIC_E2B_DOMAIN,
7979
timeoutMs: TERMINAL_SANDBOX_TIMEOUT_MS,
80-
headers: {
80+
apiHeaders: {
8181
...headers,
8282
},
8383
})
@@ -104,7 +104,7 @@ function createTerminalSandbox({
104104
template,
105105
userId,
106106
},
107-
headers: {
107+
apiHeaders: {
108108
...headers,
109109
},
110110
})

tests/unit/dashboard-terminal.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ describe('dashboard terminal helpers', () => {
212212
expect(mockConnectSandbox).toHaveBeenCalledWith('sandbox-from-url', {
213213
domain: process.env.NEXT_PUBLIC_E2B_DOMAIN,
214214
timeoutMs: 30 * 60 * 1000,
215-
headers: {
215+
apiHeaders: {
216216
[SUPABASE_TOKEN_HEADER]: 'supabase-token',
217217
[SUPABASE_TEAM_HEADER]: 'team-123',
218218
},
@@ -243,7 +243,7 @@ describe('dashboard terminal helpers', () => {
243243
template: 'base',
244244
userId: 'user-123',
245245
},
246-
headers: {
246+
apiHeaders: {
247247
[SUPABASE_TOKEN_HEADER]: 'supabase-token',
248248
[SUPABASE_TEAM_HEADER]: 'team-123',
249249
},

0 commit comments

Comments
 (0)