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

This commit is contained in:
kleap-admin 2026-01-18 20:47:47 +00:00
parent 39af6fdd59
commit e434ce4bb9
1 changed files with 2 additions and 5 deletions

View File

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