Fix with-sentry-simple
example (#13404)
Previous referencing the incorrect `Error` global.
This commit is contained in:
parent
b3e45fab5e
commit
dcfa35faa6
1 changed files with 4 additions and 1 deletions
|
@ -13,7 +13,10 @@ const MyError = ({ statusCode, hasGetInitialPropsRun, err }) => {
|
|||
}
|
||||
|
||||
MyError.getInitialProps = async ({ res, err, asPath }) => {
|
||||
const errorInitialProps = await Error.getInitialProps({ res, err })
|
||||
const errorInitialProps = await NextErrorComponent.getInitialProps({
|
||||
res,
|
||||
err,
|
||||
})
|
||||
|
||||
// Workaround for https://github.com/zeit/next.js/issues/8592, mark when
|
||||
// getInitialProps has run
|
||||
|
|
Loading…
Reference in a new issue