We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7acbca5 commit ab30d00Copy full SHA for ab30d00
app/api/files/sandbox/list/route.ts
@@ -33,14 +33,13 @@ const E2B_API_KEY = process.env.E2B_API_KEY
33
const sandboxTimeout = 10 * 60 * 1000
34
35
export async function GET(request: NextRequest) {
36
+ if (!E2B_API_KEY) {
37
+ return NextResponse.json(
38
+ { error: 'E2B_API_KEY environment variable not found' },
39
+ { status: 500 },
40
+ )
41
+ }
42
try {
- if (!E2B_API_KEY) {
- return NextResponse.json(
- { error: 'E2B_API_KEY environment variable not found' },
- { status: 500 },
- )
- }
43
-
44
const searchParams = request.nextUrl.searchParams
45
const sandboxId = searchParams.get('sandboxId')
46
0 commit comments