fec.config.js: use webpack plugin to inject sentry debug ids
The module metadata, which is only available in the webpack plugin, is needed for correct routing.
This commit is contained in:
parent
ba449ac2a5
commit
196f52b821
1 changed files with 15 additions and 3 deletions
|
|
@ -59,10 +59,22 @@ if (process.env.SENTRY_AUTH_TOKEN) {
|
|||
plugins.push(
|
||||
sentryWebpackPlugin({
|
||||
authToken: process.env.SENTRY_AUTH_TOKEN,
|
||||
org: process.env.SENTRY_ORG,
|
||||
project: process.env.SENTRY_PROJECT,
|
||||
org: 'red-hat-it',
|
||||
project: 'image-builder-rhel',
|
||||
moduleMetadata: ({ release }) => ({
|
||||
dsn: process.env.SENTRY_DSN,
|
||||
dsn: 'https://f4b4288bbb7cf6c0b2ac1a2b90a076bf@o490301.ingest.us.sentry.io/4508297557901312',
|
||||
release,
|
||||
}),
|
||||
})
|
||||
);
|
||||
} else {
|
||||
// justs injects the debug ids
|
||||
plugins.push(
|
||||
sentryWebpackPlugin({
|
||||
org: 'red-hat-it',
|
||||
project: 'image-builder-rhel',
|
||||
moduleMetadata: ({ release }) => ({
|
||||
dsn: 'https://f4b4288bbb7cf6c0b2ac1a2b90a076bf@o490301.ingest.us.sentry.io/4508297557901312',
|
||||
release,
|
||||
}),
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue