From 1b96bd728598c4df2f017883175702916cf17ec2 Mon Sep 17 00:00:00 2001 From: nenadV91 Date: Fri, 6 May 2022 15:11:31 +0200 Subject: [PATCH] Comment out Sentry deployment --- craco.config.js | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/craco.config.js b/craco.config.js index f6296b3c9f..68a28daa71 100644 --- a/craco.config.js +++ b/craco.config.js @@ -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: {