Skip to content

Commit

Permalink
Additional changes
Browse files Browse the repository at this point in the history
  • Loading branch information
adonispuente committed Sep 17, 2024
1 parent de247e3 commit 73bcacd
Show file tree
Hide file tree
Showing 6 changed files with 454 additions and 797 deletions.
2 changes: 1 addition & 1 deletion config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const commonConfig = ({ dev }) => {
publicPath,
chunkFilename: dev ? '[name].js' : '[name].[contenthash].js',
},
devtool: process.env.SENTRY_AUTH_TOKEN ? 'hidden-source-map' : false,
devtool: 'hidden-source-map',
...(dev
? {
cache: {
Expand Down
23 changes: 12 additions & 11 deletions config/webpack.plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,18 @@ const plugins = (dev = false, beta = false, restricted = false) => {
}),
...(dev ? [new ReactRefreshWebpackPlugin()] : []),
// Put the Sentry Webpack plugin after all other plugins
sentryWebpackPlugin({
authToken: process.env.SENTRY_AUTH_TOKEN,
org: 'red-hat-it',
project: 'cpin-001-insights',
_experiments: {
moduleMetadata: ({ release }) => ({
dsn: process.env.SENTRY_DSN,
release,
}),
},
}),
process.env.SENTRY_AUTH_TOKEN &&
sentryWebpackPlugin({
authToken: process.env.SENTRY_AUTH_TOKEN,
org: 'red-hat-it',
project: 'cpin-001-insights',
_experiments: {
moduleMetadata: ({ release }) => ({
authToken: process.env.SENTRY_AUTH_TOKEN,
release,
}),
},
}),
];
};

Expand Down
Loading

0 comments on commit 73bcacd

Please sign in to comment.