Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
"cmdk": "^1.0.4",
"date-fns": "^4.1.0",
"date-fns-tz": "^3.2.0",
"e2b": "^2.27.1",
"e2b": "^2.28.0",
"echarts": "^6.0.0",
"echarts-for-react": "^3.0.2",
"fast-xml-parser": "^5.3.5",
Expand Down
2 changes: 1 addition & 1 deletion src/app/sbx/new/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const GET = async (req: NextRequest) => {

const sbx = await Sandbox.create('base', {
domain: process.env.NEXT_PUBLIC_E2B_DOMAIN,
headers: {
apiHeaders: {
...SUPABASE_AUTH_HEADERS(authContext.accessToken, team.id),
},
})
Expand Down
2 changes: 1 addition & 1 deletion src/features/dashboard/sandbox/inspect/context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export default function SandboxInspectProvider({
domain: process.env.NEXT_PUBLIC_E2B_DOMAIN,
// Keep inspect connections from extending sandbox TTL via SDK default connect timeout.
timeoutMs: 1_000,
headers: {
apiHeaders: {
...sandboxManagementAuth.headers,
},
})
Expand Down
4 changes: 2 additions & 2 deletions src/features/dashboard/terminal/sandbox-session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function connectTerminalSandbox(
return Sandbox.connect(sandboxId, {
domain: process.env.NEXT_PUBLIC_E2B_DOMAIN,
timeoutMs: TERMINAL_SANDBOX_TIMEOUT_MS,
headers: {
apiHeaders: {
Comment thread
ben-fornefeld marked this conversation as resolved.
...headers,
},
Comment thread
ben-fornefeld marked this conversation as resolved.
Comment thread
ben-fornefeld marked this conversation as resolved.
})
Expand All @@ -104,7 +104,7 @@ function createTerminalSandbox({
template,
userId,
},
headers: {
apiHeaders: {
...headers,
},
})
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/dashboard-terminal.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ describe('dashboard terminal helpers', () => {
expect(mockConnectSandbox).toHaveBeenCalledWith('sandbox-from-url', {
domain: process.env.NEXT_PUBLIC_E2B_DOMAIN,
timeoutMs: 30 * 60 * 1000,
headers: {
apiHeaders: {
[SUPABASE_TOKEN_HEADER]: 'supabase-token',
[SUPABASE_TEAM_HEADER]: 'team-123',
},
Expand Down Expand Up @@ -243,7 +243,7 @@ describe('dashboard terminal helpers', () => {
template: 'base',
userId: 'user-123',
},
headers: {
apiHeaders: {
[SUPABASE_TOKEN_HEADER]: 'supabase-token',
[SUPABASE_TEAM_HEADER]: 'team-123',
},
Expand Down
Loading