Skip to content

Commit

Permalink
feat(nuxt config): add sentry configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Oct 14, 2020
1 parent 7d5d0c7 commit 64406bb
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default {
/*
** Nuxt.js modules
*/
modules: ['@nuxtjs/pwa', '@nuxtjs/sitemap'],
modules: ['@nuxtjs/pwa', '@nuxtjs/sentry', '@nuxtjs/sitemap'],

/*
** Progressive web app
Expand Down Expand Up @@ -136,6 +136,22 @@ export default {
],
},

/*
** Sentry.io
*/
sentry: {
dsn: process.env.SENTRY_DSN || '',

lazy: true,

disabled: isDevEnv,
disableClientSide: false,
disableServerSide: true,

// Additional config
// config: {},
},

/*
** Sitemap configuration
*/
Expand Down

0 comments on commit 64406bb

Please sign in to comment.