Update public/_kleap/kleap-nextjs-error-detector.js

This commit is contained in:
kleap-admin 2026-01-18 17:17:39 +00:00
parent f227de63f9
commit 70f9068d68
1 changed files with 5 additions and 2 deletions

View File

@ -69,7 +69,9 @@
type: 'build-error',
message: title || 'Build error detected',
details: body,
fullText: `${title}\n\n${body}`.trim(),
fullText: `${title}
${body}`.trim(),
};
}
@ -97,7 +99,8 @@
text.includes('Runtime Error')) {
// Extract first meaningful line as message
const lines = text.split('\n').map(l => l.trim()).filter(Boolean);
const lines = text.split('
').map(l => l.trim()).filter(Boolean);
const message = lines[0] || 'Build error detected';
return {