df34412570
* new documentation website * ci job adjustment * update to latest version on downloads page * remove transition-period scripts * add netlify toml file * fix docs patch * fix ci config? * revert go.mod changes * a couple last markdown formatting fixes
14 lines
387 B
JavaScript
14 lines
387 B
JavaScript
import React from 'react'
|
|
import ErrorPage from 'next/error'
|
|
import bugsnagClient from '../lib/bugsnag'
|
|
|
|
export default class Page extends React.Component {
|
|
static async getInitialProps(ctx) {
|
|
if (ctx.err) bugsnagClient.notify(ctx.err)
|
|
return ErrorPage.getInitialProps(ctx)
|
|
}
|
|
render() {
|
|
return <ErrorPage statusCode={this.props.statusCode || '¯\\_(ツ)_/¯'} />
|
|
}
|
|
}
|