{"size": 538, "ext": "js", "max_stars_repo_path": "examples/with-sentry-simple/pages/_app.js", "max_stars_repo_name": "fabienheureux/next.js", "max_stars_repo_stars_event_min_datetime": "2019-10-26T19:41:02.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-21T11:27:57.000Z", "max_issues_repo_path": "examples/with-sentry-simple/pages/_app.js", "max_issues_repo_name": "o8o8/next.js", "max_issues_repo_issues_event_min_datetime": "2022-01-22T20:44:29.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-11T00:29:42.000Z", "max_forks_repo_path": "examples/with-sentry-simple/pages/_app.js", "max_forks_repo_name": "o8o8/next.js", "max_forks_repo_forks_event_min_datetime": "2019-10-01T11:37:24.000Z", "max_forks_repo_forks_event_max_datetime": "2019-10-01T11:37:24.000Z"}
{"max_stars_count": 7, "max_issues_count": 2, "max_forks_count": 1, "avg_line_length": 23.3913043478, "max_line_length": 67, "alphanum_fraction": 0.6895910781}
import React from 'react'
import App from 'next/app'
import * as Sentry from '@sentry/node'

Sentry.init({
  // Replace with your project's Sentry DSN
  dsn: 'https://00000000000000000000000000000000@sentry.io/1111111'
})

class MyApp extends App {
  render () {
    const { Component, pageProps } = this.props

    // Workaround for https://github.com/zeit/next.js/issues/8592
    const { err } = this.props
    const modifiedPageProps = { ...pageProps, err }

    return <Component {...modifiedPageProps} />
  }
}

export default MyApp
