feat(admin): add production error center and refresh CMS dependencies
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { reportBrowserError } from "@/lib/browser-errors";
|
||||
|
||||
window.addEventListener("error", (event) => {
|
||||
if (event.error) reportBrowserError(event.error);
|
||||
});
|
||||
window.addEventListener("unhandledrejection", (event) =>
|
||||
reportBrowserError(event.reason, "browser.unhandled_rejection"),
|
||||
);
|
||||
Reference in New Issue
Block a user