UNPKG

1 kBJavaScriptView Raw
1module.exports = {
2 api: {
3 port: 3000,
4 cacheExp: 60,
5 group: 'ui',
6
7 /**
8 * Databases
9 */
10 mongoUrl: 'mongodb://localhost/',
11 mongoDb: 'cubic-ui',
12 cacheDb: 2,
13
14 /**
15 * Endpoint config
16 */
17 endpointPath: [`${process.cwd()}/ui/endpoints`, `${process.cwd()}/ui/sites`],
18 endpointExtension: /(\.js|\.vue)$/,
19 endpointParent: `${__dirname}/../endpoint.js`
20 },
21
22 /**
23 * Web client config
24 */
25 client: {
26 apiUrl: 'ws://localhost:3003/ws',
27 authUrl: 'ws://localhost:3030/ws',
28 sessionKey: 'cubic-ui-session'
29 },
30
31 /**
32 * SSR client config
33 */
34 server: {
35 apiUrl: 'ws://localhost:3003/ws',
36 authUrl: 'ws://localhost:3030/ws'
37 },
38
39 /**
40 * Webpack config
41 */
42 webpack: {
43 skipBuild: false,
44 clientConfig: `${process.cwd()}/config/webpack/client.config.js`,
45 serverConfig: `${process.cwd()}/config/webpack/server.config.js`
46 },
47
48 sourcePath: `${process.cwd()}/ui`
49}