forked from RedHatInsights/patchman-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfec.config.js
More file actions
49 lines (48 loc) · 1.67 KB
/
fec.config.js
File metadata and controls
49 lines (48 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
const path = require('path');
const { dependencies, insights } = require('./package.json');
const { sentryWebpackPlugin } = require('@sentry/webpack-plugin');
module.exports = {
appName: insights.appname,
appUrl: '/insights/patch',
useProxy: process.env.PROXY === 'true',
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: 'patchman-rhel',
moduleMetadata: ({ release }) => ({
dsn: `https://7308344e3a96d7a5c31a2d3899328f10@o490301.ingest.us.sentry.io/4508683262951424`,
org: 'red-hat-it',
project: 'patchman-rhel',
release
})
})
]
: [])
],
moduleFederation: {
moduleName: insights.appname,
exposes: {
'./RootApp': path.resolve(__dirname, './src/AppEntry'),
'./SystemDetail': path.resolve(__dirname, './src/index.js')
},
shared: [
{
'react-router-dom': {
singleton: true,
import: false,
version: dependencies['react-router-dom'],
requiredVersion: '>=6.0.0 <7.0.0'
}
}
]
},
frontendCRDPath: 'deploy/frontend.yml',
_unstableSpdy: true
};