Skip to content

Commit

Permalink
upgrade sentry to v8
Browse files Browse the repository at this point in the history
  • Loading branch information
tsubik committed Oct 23, 2024
1 parent 6984a8e commit 9234089
Show file tree
Hide file tree
Showing 4 changed files with 1,108 additions and 208 deletions.
9 changes: 9 additions & 0 deletions instrumentation.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export async function register() {
if (process.env.NEXT_RUNTIME === "nodejs") {
await import("./sentry.server.config");
}

if (process.env.NEXT_RUNTIME === "edge") {
await import("./sentry.edge.config");
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "ISC",
"main": "index.js",
"dependencies": {
"@sentry/nextjs": "^7.51.2",
"@sentry/nextjs": "^8.35.0",
"@turf/bbox": "^6.5.0",
"classnames": "^2.5.1",
"date-fns": "^3.6.0",
Expand Down
4 changes: 0 additions & 4 deletions pages/_error.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ class ErrorPage extends React.Component {
}

render() {
// If you're using a Nextjs version prior to 12.2.1, uncomment this to
// compensate for https://github.com/vercel/next.js/issues/8592
Sentry.captureUnderscoreErrorException(this.props);

const css = (
<Head>
<style>{`
Expand Down
Loading

0 comments on commit 9234089

Please sign in to comment.