Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 1m16s
Build & Deploy / 🧪 QA (push) Failing after 1m30s
Build & Deploy / 🏗️ Build (push) Has been skipped
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 2s
- fixed Sentry NDJSON parsing error in relay endpoint - fully isolated Annotator bundle via next/dynamic (60kb chunk, completely removed from main thread) - aligned images for Kabelleitungsbau & Bohrtechnik across Start and Kompetenzen pages - extended transition fallback timeout for slow dev server cold starts
14 lines
515 B
TypeScript
14 lines
515 B
TypeScript
import { NextResponse } from 'next/server';
|
|
|
|
export async function POST(req: Request) {
|
|
try {
|
|
const rawText = await req.text();
|
|
// Sentry sends NDJSON (Newline Delimited JSON). Split by newline to parse safely.
|
|
const items = rawText.split('\n').filter(Boolean).map(line => JSON.parse(line));
|
|
console.log("CLIENT ERROR INTERCEPTED:", JSON.stringify(items[0], null, 2));
|
|
} catch (e) {
|
|
console.log("Failed to parse relay body (NDJSON)", e);
|
|
}
|
|
return NextResponse.json({ success: true });
|
|
}
|