diff --git a/lib/auth/getApiKeyAccountId.ts b/lib/auth/getApiKeyAccountId.ts index 49af4106..7cff5afc 100644 --- a/lib/auth/getApiKeyAccountId.ts +++ b/lib/auth/getApiKeyAccountId.ts @@ -29,7 +29,10 @@ export async function getApiKeyAccountId(request: NextRequest): Promise { const validated = await validateSandboxBody(request); if (validated instanceof NextResponse) { + const errorBody = await validated.clone().json(); + console.error("[POST /api/sandboxes] Validation/auth failed:", errorBody); return validated; } @@ -33,6 +35,7 @@ export async function createSandboxPostHandler(request: NextRequest): Promise