feat(admin): add production error center and refresh CMS dependencies

This commit is contained in:
2026-09-05 19:53:09 +02:00
parent c6b919c01d
commit 816e3875c2
47 changed files with 1545 additions and 547 deletions
+1 -2
View File
@@ -5,9 +5,8 @@ import { logger } from "@/lib/logger";
* Domain errors (validation, auth, etc.) should NOT go through here.
*/
export function reportError(error: unknown, context = "Unhandled error"): void {
const message = error instanceof Error ? error.message : String(error);
logger.error(context, {
err: message,
err: error,
name: error instanceof Error ? error.name : undefined,
});
}