Add Sentry to client for error handling (#43920)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
@ -6,7 +6,8 @@ const {
|
||||
localeChallengesRootDir
|
||||
} = require('./utils/build-challenges');
|
||||
|
||||
const { clientLocale, curriculumLocale, homeLocation } = envData;
|
||||
const { clientLocale, curriculumLocale, homeLocation, sentryClientDSN } =
|
||||
envData;
|
||||
|
||||
const curriculumIntroRoot = path.resolve(__dirname, './src/pages');
|
||||
const pathPrefix =
|
||||
@ -24,6 +25,12 @@ module.exports = {
|
||||
},
|
||||
pathPrefix: pathPrefix,
|
||||
plugins: [
|
||||
{
|
||||
resolve: '@sentry/gatsby',
|
||||
options: {
|
||||
dsn: sentryClientDSN
|
||||
}
|
||||
},
|
||||
{
|
||||
resolve: 'gatsby-plugin-webpack-bundle-analyser-v2',
|
||||
options: {
|
||||
|
Reference in New Issue
Block a user