Skip to content

Commit

Permalink
fix: added Env to disable sentry by default (#459)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArushKapoorJuspay authored Jun 26, 2024
1 parent 186500b commit c622e4f
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ module.exports = (publicPath = "auto") => {
);
}

if (process.env.SENTRY_AUTH_TOKEN) {
if (process.env.SENTRY_AUTH_TOKEN && process.env.IS_SENTRY_ENABLED === "true") {
plugins.push(
sentryWebpackPlugin({
org: "sentry",
Expand Down Expand Up @@ -127,18 +127,18 @@ module.exports = (publicPath = "auto") => {
sdkEnv === "local"
? {}
: {
sideEffects: true,
minimize: true,
minimizer: [
new TerserPlugin({
terserOptions: {
compress: {
drop_console: false,
},
sideEffects: true,
minimize: true,
minimizer: [
new TerserPlugin({
terserOptions: {
compress: {
drop_console: false,
},
}),
],
},
},
}),
],
},
plugins,
module: {
rules: [
Expand Down

0 comments on commit c622e4f

Please sign in to comment.