forked from RedHatInsights/vulnerability-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfec.config.js
29 lines (28 loc) · 895 Bytes
/
fec.config.js
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
/* eslint-disable no-undef */
const { resolve } = require('path');
module.exports = {
appUrl: '/insights/vulnerability',
debug: true,
useProxy: process.env.PROXY === 'true',
proxyVerbose: true,
interceptChromeConfig: false,
plugins: [],
...(process.env.HOT ? { hotReload: process.env.HOT === 'true' } : { hotReload: true }),
...(process.env.port ? { port: parseInt(process.env.port) } : {}),
moduleFederation: {
shared: [
{
'react-router-dom': {
singleton: true,
import: false,
version: '^6.8.1',
requiredVersion: '>=6.0.0 <7.0.0'
}
}
],
exposes: {
'./RootApp': resolve(__dirname, './src/AppEntry'),
'./SystemDetail': resolve(__dirname, './src/index.js')
}
}
};