Skip to content

Commit

Permalink
SENTRY_AUTH_TOKEN fix
Browse files Browse the repository at this point in the history
  • Loading branch information
etsraphael committed Sep 3, 2024
1 parent ca6aafd commit 05ebeb3
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions UI/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
const SentryWebpackPlugin = require('@sentry/webpack-plugin');

module.exports = {
devtool: 'source-map',
plugins: [
const plugins = [];

if (process.env.SENTRY_AUTH_TOKEN) {
plugins.push(
new SentryWebpackPlugin({
org: 'chainbrary',
project: 'chainbrary-ui',
authToken: process.env.SENTRY_AUTH_TOKEN,
include: './dist/chainbrary',
release: '0.0.3'
})
]
);
}

module.exports = {
devtool: 'source-map',
plugins: plugins
};

0 comments on commit 05ebeb3

Please sign in to comment.