consul/website/lib/bugsnag.js

18 lines
410 B
JavaScript
Raw Normal View History

2020-04-06 20:27:35 +00:00
import React from 'react'
import bugsnag from '@bugsnag/js'
import bugsnagReact from '@bugsnag/plugin-react'
const apiKey =
typeof window === 'undefined'
2020-04-10 20:01:30 +00:00
? 'be8ed0d0fc887d547284cce9e98e60e5'
: '01625078d856ef022c88f0c78d2364f1'
2020-04-06 20:27:35 +00:00
const bugsnagClient = bugsnag({
apiKey,
releaseStage: process.env.NODE_ENV || 'development',
})
bugsnagClient.use(bugsnagReact, React)
export default bugsnagClient