forked from riccardo-forina/service-accounts
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathfec.config.js
40 lines (39 loc) · 871 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
30
31
32
33
34
35
36
37
38
39
40
const pkg = require('./package.json');
module.exports = {
appUrl: pkg.insights.appUrl,
debug: true,
useProxy: true,
proxyVerbose: true,
/**
* Change to false after your app is registered in configuration files
*/
interceptChromeConfig: false,
/**
* Add additional webpack plugins
*/
plugins: [],
_unstableHotReload: process.env.HOT === 'true',
moduleFederation: {
exclude: ['react-router-dom'],
shared: [
{
'react-router-dom': {
singleton: true,
import: false,
version: '^6.3.0',
},
},
],
},
routes: {
...(process.env.REMOTE_CONFIG && {
'/api/chrome-service/v1/static': {
host: `http://localhost:${
isNaN(Number(process.env.REMOTE_CONFIG))
? 8080
: process.env.REMOTE_CONFIG
}`,
},
}),
},
};