Skip to content

Commit

Permalink
Allow automatic static optimization in with-sentry-simple examp… (ver…
Browse files Browse the repository at this point in the history
  • Loading branch information
HaNdTriX authored and timneutkens committed Jul 25, 2019
1 parent 55e87ea commit b844a32
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions examples/with-sentry-simple/pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,6 @@ Sentry.init({
})

class MyApp extends App {
static async getInitialProps ({ Component, ctx }) {
let pageProps = {}

if (Component.getInitialProps) {
pageProps = await Component.getInitialProps(ctx)
}

return { pageProps }
}

componentDidCatch (error, errorInfo) {
Sentry.withScope(scope => {
Object.keys(errorInfo).forEach(key => {
Expand Down

0 comments on commit b844a32

Please sign in to comment.