open-nomad/website/lib/bugsnag.js

18 lines
409 B
JavaScript
Raw Normal View History

2020-02-06 23:45:31 +00:00
import React from 'react'
import bugsnag from '@bugsnag/js'
import bugsnagReact from '@bugsnag/plugin-react'
const apiKey =
typeof window === 'undefined'
2020-03-03 22:51:24 +00:00
? '61141296f1ba00a95a8788b7871e1184'
: '4fa712dfcabddd05da29fd1f5ea5a4c0'
2020-02-06 23:45:31 +00:00
const bugsnagClient = bugsnag({
apiKey,
releaseStage: process.env.NODE_ENV || 'development'
})
bugsnagClient.use(bugsnagReact, React)
export default bugsnagClient