github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/website/pages/_error.jsx (about)

     1  import NotFound from './404'
     2  import Bugsnag from '@hashicorp/nextjs-scripts/lib/bugsnag'
     3  
     4  function Error({ statusCode }) {
     5    return <NotFound statusCode={statusCode} />
     6  }
     7  
     8  Error.getInitialProps = ({ res, err }) => {
     9    if (err) Bugsnag.notify(err)
    10    const statusCode = res ? res.statusCode : err ? err.statusCode : 404
    11    return { statusCode }
    12  }
    13  
    14  export default Error