Skip to content

Commit

Permalink
fix: disable Sentry for testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
Tien Nam Dao authored and tiendn committed Mar 3, 2023
1 parent edf0f38 commit 1984a2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,5 @@ const sentryWebpackPluginOptions = {
// https://github.com/getsentry/sentry-webpack-plugin#options.
}

module.exports = withSentryConfig(moduleExports, sentryWebpackPluginOptions)
module.exports =
process.env.NEXT_PUBLIC_ENV === 'mainnet' ? withSentryConfig(moduleExports, sentryWebpackPluginOptions) : nextConfig

0 comments on commit 1984a2f

Please sign in to comment.