-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathfec.config.js
More file actions
46 lines (42 loc) · 1.36 KB
/
fec.config.js
File metadata and controls
46 lines (42 loc) · 1.36 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
const path = require('path');
const extraExposes = {};
const getRoutes = () => {
if (process.env.USE_LOCAL_RASA && process.env.USE_LOCAL_RASA !== '') {
return {
'/api/virtual-assistant/v2': { host: 'http://localhost:5000' },
};
}
return undefined;
};
module.exports = {
appUrl: ['/go-to-landing-page'],
debug: true,
useProxy: true,
proxyVerbose: true,
routes: getRoutes(),
interceptChromeConfig: false,
moduleFederation: {
exclude: ['react-router-dom'],
shared: [
{
'react-router-dom': {
singleton: true,
import: false,
version: '^6.3.0',
},
},
],
exposes: {
'./AstroVirtualAssistant': path.resolve(__dirname, './src/SharedComponents/AstroVirtualAssistant/AstroVirtualAssistant.tsx'),
'./VAEmbed': path.resolve(__dirname, './src/SharedComponents/VAEmbed/VAEmbed.tsx'),
'./useArhChatbot': path.resolve(__dirname, './src/aiClients/useArhClient.ts'),
'./useRhelChatbot': path.resolve(__dirname, './src/aiClients/useRhelLightSpeedManager.ts'),
'./useVaChatbot': path.resolve(__dirname, './src/aiClients/useVaManager.ts'),
'./state/globalState': path.resolve(__dirname, './src/utils/VirtualAssistantStateSingleton.ts'),
...extraExposes,
},
},
plugins: [],
sassPrefix: '.virtualAssistant',
hotReload: process.env.HOT === 'true',
};