-
Notifications
You must be signed in to change notification settings - Fork 46
/
fec.config.js
43 lines (42 loc) · 1.18 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
const path = require('path');
module.exports = {
appUrl: '/settings/integrations',
debug: true,
useProxy: true,
proxyVerbose: true,
/**
* Change to false after your app is registered in configuration files
*/
interceptChromeConfig: false,
/**
* Add additional webpack plugins
*/
plugins: [],
moduleFederation: {
exposes: {
'./RootApp': path.resolve(__dirname, './src/AppEntry.js'),
'./IntegrationsWidget': path.resolve(__dirname, './src/components/Widget/IntegrationsWidget'),
},
exclude: ['react-router-dom'],
shared: [{ 'react-router-dom': { singleton: true, version: '^6.8.0' } }],
},
hotReload: process.env.HOT === 'true',
routes: {
...(process.env.LOCAL_NOTIFICATIONS && {
'/beta/apps/notifications': {
host: `http://localhost:8003`,
},
'/apps/notifications': {
host: `http://localhost:8003`,
},
}),
...(process.env.CONFIG_PORT && {
'/api/chrome-service/v1/static': {
host: `http://localhost:${process.env.CONFIG_PORT}`,
},
'/api/chrome-service/v1/dashboard-templates': {
host: `http://localhost:${process.env.CONFIG_PORT}`,
},
}),
},
};