-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathconfig.js
53 lines (44 loc) · 984 Bytes
/
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
const isProd = typeof window !== 'undefined'
? window.location.hostname !== 'localhost'
: process.env.NODE_ENV === 'production'
/**
* Is site running in production?
*/
exports.isProd = isProd
/**
* Name of the site
*/
exports.name = 'Play'
/**
* Description of the site
*/
exports.description = 'Music lovers, rejoice.'
/**
* Website hostname + port
*/
exports.host = isProd
? 'play.cash'
: 'localhost:4000'
/**
* HTTP origin
*/
exports.httpOrigin = (isProd ? 'https' : 'http') + '://' + exports.host
/**
* Root path of project
*/
exports.root = __dirname
/**
* Maximum time to cache static resources (in milliseconds). This value is sent in the HTTP
* cache-control header.
*/
exports.maxAge = isProd
? 7 * 24 * 3600000 // 7 days
: 0
/**
* Time to wait in milliseconds before an API request is considered timed out.
*/
exports.apiTimeout = 30 * 1000
/**
* User agent for API requests
*/
exports.apiUserAgent = 'Play/1.0.0 (https://play.cash)'