Skip to content

Commit

Permalink
chore: Update fec packages and test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Johnson committed Feb 13, 2025
1 parent b2f3811 commit 6f678a4
Show file tree
Hide file tree
Showing 21 changed files with 2,765 additions and 2,164 deletions.
38 changes: 19 additions & 19 deletions fec.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable no-undef */
const { resolve } = require('path');
const { sentryWebpackPlugin } = require("@sentry/webpack-plugin");
const { sentryWebpackPlugin } = require('@sentry/webpack-plugin');

module.exports = {
appUrl: '/insights/vulnerability',
Expand All @@ -10,24 +10,24 @@ module.exports = {
interceptChromeConfig: false,
devtool: 'hidden-source-map',
plugins: [
// Put the Sentry Webpack plugin after all other plugins
...(process.env.ENABLE_SENTRY
? [
sentryWebpackPlugin({
...(process.env.SENTRY_AUTH_TOKEN && {
authToken: process.env.SENTRY_AUTH_TOKEN,
}),
org: 'red-hat-it',
project: 'vulnerability-rhel',
moduleMetadata: ({ release }) => ({
dsn: `https://[email protected]/4508683271077888`,
org: 'red-hat-it',
project: 'vulnerability-rhel',
release,
}),
}),
]
: []),
// Put the Sentry Webpack plugin after all other plugins
...(process.env.ENABLE_SENTRY
? [
sentryWebpackPlugin({
...(process.env.SENTRY_AUTH_TOKEN && {
authToken: process.env.SENTRY_AUTH_TOKEN
}),
org: 'red-hat-it',
project: 'vulnerability-rhel',
moduleMetadata: ({ release }) => ({
dsn: `https://[email protected]/4508683271077888`,
org: 'red-hat-it',
project: 'vulnerability-rhel',
release
})
})
]
: [])
],
...(process.env.HOT ? { hotReload: process.env.HOT === 'true' } : { hotReload: true }),
...(process.env.port ? { port: parseInt(process.env.port) } : {}),
Expand Down
Loading

0 comments on commit 6f678a4

Please sign in to comment.