Skip to content

Commit

Permalink
Comment out Sentry deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
nenadV91 committed May 6, 2022
1 parent 8926a13 commit 1b96bd7
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions craco.config.js
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const path = require('path')
const SentryWebpackPlugin = require('@sentry/webpack-plugin')
// const SentryWebpackPlugin = require('@sentry/webpack-plugin')
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
const { version } = require('./package.json')
// const { version } = require('./package.json')

// see https://github.com/gsoft-inc/craco/blob/master/packages/craco/README.md#configuration-overview

const plugins = []
const SENTRY_AUTH_TOKEN = process.env.REACT_APP_SENTRY_AUTH_TOKEN
const SENTRY_RELEASE_VERSION = 'CowSwap@v' + version
// const SENTRY_AUTH_TOKEN = process.env.REACT_APP_SENTRY_AUTH_TOKEN
// const SENTRY_RELEASE_VERSION = 'CowSwap@v' + version
const ANALYZE_BUNDLE = process.env.REACT_APP_ANALYZE_BUNDLE

if (ANALYZE_BUNDLE) {
plugins.push(new BundleAnalyzerPlugin())
}

if (SENTRY_AUTH_TOKEN) {
plugins.push(
new SentryWebpackPlugin({
// sentry-cli configuration - can also be done directly through sentry-cli
// see https://docs.sentry.io/product/cli/configuration/ for details
authToken: SENTRY_AUTH_TOKEN,
org: 'cowprotocol',
project: 'cowswap',
release: SENTRY_RELEASE_VERSION,
// if (SENTRY_AUTH_TOKEN) {
// plugins.push(
// new SentryWebpackPlugin({
// // sentry-cli configuration - can also be done directly through sentry-cli
// // see https://docs.sentry.io/product/cli/configuration/ for details
// authToken: SENTRY_AUTH_TOKEN,
// org: 'cowprotocol',
// project: 'cowswap',
// release: SENTRY_RELEASE_VERSION,

// other SentryWebpackPlugin configuration
include: '.',
ignore: ['node_modules', 'webpack.config.js'],
})
)
}
// // other SentryWebpackPlugin configuration
// include: '.',
// ignore: ['node_modules', 'webpack.config.js'],
// })
// )
// }

module.exports = {
babel: {
Expand Down

0 comments on commit 1b96bd7

Please sign in to comment.