diff --git a/app/api/debug-email/route.ts b/app/api/debug-email/route.ts index 6d4b867..41dde05 100644 --- a/app/api/debug-email/route.ts +++ b/app/api/debug-email/route.ts @@ -39,6 +39,9 @@ export async function GET(request: Request) { // Get raw source content const { source, envelope } = message; + if (!source) { + return NextResponse.json({ error: 'Email source not available' }, { status: 404 }); + } const rawSource = source.toString(); // Parse the email with multiple options to debug diff --git a/package.json b/package.json index 2f2dfd3..0fbbf1d 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "author": "Neah Team", "scripts": { "dev": "next dev", - "build": "next build", + "build": "next build --turbopack", "start": "next start", "lint": "next lint", "sync-users": "node scripts/sync-users.js",