2020-03-18 18:46:47 -04:00
|
|
|
import React from 'react'
|
|
|
|
import bugsnag from '@bugsnag/js'
|
|
|
|
import bugsnagReact from '@bugsnag/plugin-react'
|
|
|
|
|
|
|
|
const apiKey =
|
|
|
|
typeof window === 'undefined'
|
2020-03-31 18:26:45 -04:00
|
|
|
? 'b6c57b27a37e531a5de94f065dd98bc0'
|
|
|
|
: 'de0b822b269aa57b620efd8927e03744'
|
2020-03-18 18:46:47 -04:00
|
|
|
|
|
|
|
const bugsnagClient = bugsnag({
|
|
|
|
apiKey,
|
2020-03-31 18:26:45 -04:00
|
|
|
releaseStage: process.env.NODE_ENV || 'development',
|
2020-03-18 18:46:47 -04:00
|
|
|
})
|
|
|
|
|
|
|
|
bugsnagClient.use(bugsnagReact, React)
|
|
|
|
|
|
|
|
export default bugsnagClient
|