You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/platforms/javascript/guides/nextjs/manual-setup.mdx
+28-53Lines changed: 28 additions & 53 deletions
Original file line number
Diff line number
Diff line change
@@ -79,67 +79,42 @@ In serverless deployment environments, including Vercel, the Next.js server runs
79
79
To capture these errors in Sentry, you can use the Next.js [error page customization](https://nextjs.org/docs/advanced-features/custom-error-page#reusing-the-built-in-error-page) option. To do this, create `pages/_error.js`, and include the following:
80
80
81
81
```javascript {filename:pages/_error.js}
82
-
importNextErrorComponentfrom"next/error";
82
+
/**
83
+
* NOTE: This requires `@sentry/nextjs` version 7.3.0 or higher.
84
+
*
85
+
* This page is loaded by Nextjs:
86
+
* - on the server, when data-fetching methods throw or reject
87
+
* - on the client, when `getInitialProps` throws or rejects
88
+
* - on the client, when a React lifecycle method throws or rejects, and it's
0 commit comments