mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 13:26:07 +00:00
91ee7990cc
* website: purge existing directory * website: bulk update from master with changes specific to the upcoming 1.9 release excluded * test: revert envoy_version to 1.14.2 for existing-ca-path golden file
16 lines
399 B
JavaScript
16 lines
399 B
JavaScript
import NotFound from './404'
|
|
import Bugsnag from '@hashicorp/nextjs-scripts/lib/bugsnag'
|
|
|
|
function Error({ statusCode }) {
|
|
console.log('this is working')
|
|
return <NotFound statusCode={statusCode} />
|
|
}
|
|
|
|
Error.getInitialProps = ({ res, err }) => {
|
|
if (err) Bugsnag.notify(err)
|
|
const statusCode = res ? res.statusCode : err ? err.statusCode : 404
|
|
return { statusCode }
|
|
}
|
|
|
|
export default Error
|