-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.js
62 lines (61 loc) · 1.33 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// General config file
import path from 'path'
import rucksack from 'rucksack-css'
const defaultPort = 8080
module.exports = {
/**
* BACKEND CONFIGS
*/
port: defaultPort,
// Currently forwardedPort and URL are not being used
forwardedPort: process.env.FORWARDED_PORT || defaultPort,
// Core server URL. Default to SERVER_URL env variable
url: process.env.SERVER_URL || 'localhost',
// Core config
web: {
bodyLimit: '100kb',
corsHeaders: ['Link']
},
// Core config
database: {
production: {
client: 'sqlite3',
connection: {
filename: path.join(__dirname, '.database/sqlite/biphub-dev.sqlite3')
},
debug: false
},
development: {
client: 'sqlite3',
connection: {
filename: path.join(__dirname, '.database/sqlite/biphub-dev.sqlite3')
},
debug: false
},
test: {
client: 'sqlite3',
connection: {
filename: ':memory:'
},
debug: true
}
},
/**
* FRONTEND CONFIGS
*/
title: 'bipflow',
publicPath: '/',
babel: {
babelrc: true
},
postcss: [
// add prefix via postcss since it's faster
require('autoprefixer')({
// Vue does not support ie 8 and below
browsers: ['last 2 versions', 'ie > 8']
}),
require('postcss-nested'),
rucksack()
],
cssModules: true
}