We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
wrapRemixHandleError
1 parent cb5a978 commit 1b5f701Copy full SHA for 1b5f701
packages/remix/src/utils/instrumentServer.ts
@@ -72,7 +72,12 @@ async function extractResponseError(response: Response): Promise<unknown> {
72
}
73
74
/**
75
+ * Sentry utility to be used in place of `handleError` function of Remix v2
76
+ * Remix Docs: https://remix.run/docs/en/main/file-conventions/entry.server#handleerror
77
*
78
+ * Should be used in `entry.server` like:
79
+ *
80
+ * export const handleError = Sentry.wrapRemixHandleError
81
*/
82
export function wrapRemixHandleError(err: unknown, { request }: DataFunctionArgs): void {
83
// We are skipping thrown responses here as they are either handled:
0 commit comments