-
Notifications
You must be signed in to change notification settings - Fork 1
/
fec.config.js
37 lines (32 loc) · 956 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
const path = require('path');
const extraExposes = {};
const appUrl = [];
if (process.env.STANDALONE === 'true') {
extraExposes['./RootApp'] = path.resolve(__dirname, './src/SharedComponents/AstroVirtualAssistant/AstroVirtualAssistant.tsx');
appUrl.push('/staging/virtual-assistant');
}
const getRoutes = () => {
if (process.env.USE_LOCAL_RASA && process.env.USE_LOCAL_RASA !== '') {
return {
'/api/virtual-assistant/v1': { host: 'http://localhost:5005' },
};
}
return undefined;
};
module.exports = {
appUrl: appUrl,
debug: true,
useProxy: true,
proxyVerbose: true,
routes: getRoutes(),
interceptChromeConfig: true,
moduleFederation: {
exposes: {
'./AstroVirtualAssistant': path.resolve(__dirname, './src/SharedComponents/AstroVirtualAssistant/AstroVirtualAssistant.tsx'),
...extraExposes,
},
},
plugins: [],
sassPrefix: '.virtualAssistant',
hotReload: process.env.HOT === 'true',
};