-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathfec.config.js
More file actions
65 lines (64 loc) · 1.92 KB
/
fec.config.js
File metadata and controls
65 lines (64 loc) · 1.92 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
const { resolve } = require('path');
const packageJson = require('./package.json');
const { sentryWebpackPlugin } = require('@sentry/webpack-plugin');
module.exports = {
appUrl: '/insights/dashboard',
debug: true,
useProxy: process.env.PROXY === 'true',
proxyVerbose: true,
devtool: 'hidden-source-map',
_unstableSpdy: true,
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: 'dashboard-rhel',
moduleMetadata: ({ release }) => ({
dsn: `https://f8eb44de949e487e853185c09340f3cf@o490301.ingest.us.sentry.io/4505397435367424`,
org: 'red-hat-it',
project: 'dashboard-rhel',
release,
}),
}),
]
: []),
],
...(process.env.port ? { port: parseInt(process.env.port) } : {}),
moduleFederation: {
shared: [
{
'react-router-dom': {
singleton: true,
import: false,
version: packageJson.dependencies['react-router-dom'],
requiredVersion: '>=6.0.0 <7.0.0',
},
},
],
exposes: {
'./AppZeroState': resolve(
__dirname,
'./src/PresentationalComponents/ZeroState/AppZeroState.js'
),
'./ZeroStateBanner': resolve(
__dirname,
'./src/PresentationalComponents/ZeroState/ZeroStateBanner.js'
),
'./AppSection': resolve(
__dirname,
'./src/PresentationalComponents/ZeroState/AppSection.js'
),
'./ZeroStateFooter': resolve(
__dirname,
'./src/PresentationalComponents/ZeroState/ZeroStateFooter.js'
),
'./RootApp': resolve(__dirname, './src/AppEntry.js'),
},
},
frontendCRDPath: 'frontend.yaml',
};