From 915162f9010afcf972667fd806b081d18e71aa3d Mon Sep 17 00:00:00 2001 From: alma Date: Fri, 16 Jan 2026 23:33:50 +0100 Subject: [PATCH] Fondation --- app/api/debug-email/route.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/api/debug-email/route.ts b/app/api/debug-email/route.ts index 41dde05..8c75e36 100644 --- a/app/api/debug-email/route.ts +++ b/app/api/debug-email/route.ts @@ -42,6 +42,9 @@ export async function GET(request: Request) { if (!source) { return NextResponse.json({ error: 'Email source not available' }, { status: 404 }); } + if (!envelope) { + return NextResponse.json({ error: 'Email envelope not available' }, { status: 404 }); + } const rawSource = source.toString(); // Parse the email with multiple options to debug