@sentry/wizard
Version:
Sentry wizard helping you to configure your project
14 lines • 533 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.HANDLE_ERROR_TEMPLATE = exports.ERROR_BOUNDARY_TEMPLATE = void 0;
exports.ERROR_BOUNDARY_TEMPLATE = `const ErrorBoundary = () => {
const error = useRouteError();
captureRemixErrorBoundaryError(error);
return <div>Something went wrong</div>;
};
`;
exports.HANDLE_ERROR_TEMPLATE = `const handleError = Sentry.wrapHandleErrorWithSentry((error, { request }) => {
// Custom handleError implementation
});
`;
//# sourceMappingURL=templates.js.map