feat(admin): add production error center and refresh CMS dependencies
This commit is contained in:
1 parent
c6b919c01d
commit
816e3875c2
47 files changed
+1545
-547
No files matched your search
@@ -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,
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user