-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(sentry): Update Sentry Flow (#1352)
- Loading branch information
1 parent
4fcd08d
commit 310a3f0
Showing
2 changed files
with
34 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,33 +8,22 @@ module.exports = { | |
proxyVerbose: false, | ||
devtool: 'hidden-source-map', | ||
plugins: [ | ||
...(process.env.SENTRY_AUTH_TOKEN | ||
? [ | ||
sentryWebpackPlugin({ | ||
authToken: process.env.SENTRY_AUTH_TOKEN, | ||
org: 'red-hat-it', | ||
project: 'advisor-rhel', | ||
moduleMetadata: ({ release }) => ({ | ||
dsn: 'https://[email protected]/4505397435367424', | ||
release, | ||
org: 'red-hat-it', | ||
project: 'advisor-rhel', | ||
}), | ||
}), | ||
] | ||
: [ | ||
// Justs injects the debug ids | ||
sentryWebpackPlugin({ | ||
org: 'red-hat-it', | ||
project: 'advisor-rhel', | ||
moduleMetadata: ({ release }) => ({ | ||
dsn: 'https://[email protected]/4505397435367424', | ||
release, | ||
org: 'red-hat-it', | ||
project: 'advisor-rhel', | ||
}), | ||
}), | ||
]), | ||
//Sentry Plugin should be at the end | ||
process.env.ENABLE_SENTRY && [ | ||
sentryWebpackPlugin({ | ||
...(process.env.SENTRY_AUTH_TOKEN && { | ||
authToken: process.env.SENTRY_AUTH_TOKEN, | ||
}), | ||
org: 'red-hat-it', | ||
project: 'advisor-rhel', | ||
moduleMetadata: ({ release }) => ({ | ||
dsn: `https://[email protected]/4505397435367424`, | ||
org: 'red-hat-it', | ||
project: 'advisor-rhel', | ||
release, | ||
}), | ||
}), | ||
], | ||
], | ||
moduleFederation: { | ||
shared: [ | ||
|