fix: add automatic draft compilation fallback in loader and explicit API error logging

This commit is contained in:
Daniel S
2026-08-10 00:16:41 +02:00
parent db2f607e5a
commit 4b7f3f554b
7 changed files with 63 additions and 2 deletions

View File

@@ -50,6 +50,7 @@ export const POST: APIRoute = async ({ request }) => {
return new Response(JSON.stringify({ success: true, settings: { ...updatedDraft, ...updatedStyles } }), { status: 200 });
} catch (error) {
console.error('[API /api/editor/update-section-settings] Exception:', error);
return new Response(JSON.stringify({ error: 'Fehler beim Aktualisieren der Sektions-Einstellungen' }), { status: 500 });
}
};