fec: add sentry plugin
This will enable unminified stacktraces in sentry.
This commit is contained in:
parent
7c99415822
commit
d20ae705fc
3 changed files with 326 additions and 168 deletions
|
|
@ -2,6 +2,7 @@
|
|||
const path = require('path');
|
||||
|
||||
const CopyPlugin = require('copy-webpack-plugin');
|
||||
const { sentryWebpackPlugin } = require("@sentry/webpack-plugin");
|
||||
const webpack = require('webpack');
|
||||
|
||||
const plugins = [];
|
||||
|
|
@ -54,6 +55,22 @@ if (process.env.NODE_ENV) {
|
|||
add_define('process.env.NODE_ENV', process.env.NODE_ENV);
|
||||
}
|
||||
|
||||
if (process.env.SENTRY_AUTH_TOKEN) {
|
||||
plugins.push(
|
||||
sentryWebpackPlugin({
|
||||
authToken: process.env.SENTRY_AUTH_TOKEN,
|
||||
org: process.env.SENTRY_ORG,
|
||||
project: proces.env.SENTRY_PROJECT,
|
||||
_experiments: {
|
||||
moduleMetadata: ({ release }) => ({
|
||||
dsn: process.env.SENTRY_DSN,
|
||||
release,
|
||||
}),
|
||||
},
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
sassPrefix: '.imageBuilder',
|
||||
debug: true,
|
||||
|
|
@ -72,6 +89,7 @@ module.exports = {
|
|||
devServer: process.env.MSW && {
|
||||
headers: { 'Service-Worker-Allowed': '/' },
|
||||
},
|
||||
devtool: 'hidden-source-map',
|
||||
appUrl: '/insights/image-builder',
|
||||
useProxy: true,
|
||||
useAgent: true,
|
||||
|
|
|
|||
475
package-lock.json
generated
475
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -16,6 +16,7 @@
|
|||
"@redhat-cloud-services/frontend-components-utilities": "4.0.19",
|
||||
"@reduxjs/toolkit": "2.3.0",
|
||||
"@scalprum/react-core": "0.9.3",
|
||||
"@sentry/webpack-plugin": "2.22.6",
|
||||
"@unleash/proxy-client-react": "4.3.1",
|
||||
"classnames": "2.5.1",
|
||||
"lodash": "4.17.21",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue