Skip to content

Commit

Permalink
chore: sentry critical path removed
Browse files Browse the repository at this point in the history
  • Loading branch information
PritishBudhiraja committed Sep 16, 2024
1 parent 477effc commit 46c5d03
Showing 1 changed file with 23 additions and 14 deletions.
37 changes: 23 additions & 14 deletions webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,20 +114,29 @@ module.exports = (publicPath = "auto") => {
process.env.SENTRY_AUTH_TOKEN &&
process.env.IS_SENTRY_ENABLED === "true"
) {
plugins.push(
sentryWebpackPlugin({
org: "sentry",
project: "hyperswitch-react-sdk",
authToken: process.env.SENTRY_AUTH_TOKEN,
url: process.env.SENTRY_URL,
release: {
name: "0.2",
uploadLegacySourcemaps: {
paths: ["dist"],
},
},
})
);
if (
process.env.SENTRY_AUTH_TOKEN &&
process.env.IS_SENTRY_ENABLED === "true"
) {
try {
plugins.push(
sentryWebpackPlugin({
org: "sentry",
project: "hyperswitch-react-sdk",
authToken: process.env.SENTRY_AUTH_TOKEN,
url: process.env.SENTRY_URL,
release: {
name: "0.2",
uploadLegacySourcemaps: {
paths: ["dist"],
},
},
})
);
} catch (error) {
console.warn("Sentry Webpack Plugin initialization failed:", error);
}
}
}

return {
Expand Down

0 comments on commit 46c5d03

Please sign in to comment.