Skip to content

Commit 3db3cce

Browse files
committed
feat: Export ErrorBoundary
1 parent b6b8748 commit 3db3cce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/nextjs/src/node.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ import { NextjsOptions } from './utils/nextjsOptions';
66

77
export * from '@sentry/node';
88

9+
// Here we want to make sure to only include what doesn't have browser specifics
10+
// because or SSR of next.js we can only use this.
11+
export { ErrorBoundary, withErrorBoundary } from '@sentry/react';
12+
913
/** Inits the Sentry NextJS SDK on node. */
1014
export function init(options: NextjsOptions): any {
1115
const metadataBuilder = new MetadataBuilder(options, ['nextjs', 'node']);

0 commit comments

Comments
 (0)