/
config.js
57 lines (51 loc) · 1.09 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
const extend = require('xtend/mutable')
/**
* Is site running in production?
* @type {Boolean}
*/
const isProd = exports.isProd = process.browser
? !/^local/.test(window.location.hostname)
: process.env.NODE_ENV === 'production'
/**
* Website hostname
* @type {string}
*/
exports.siteHost = isProd
? 'www.apstudynotes.org'
: 'localhost:4000'
/**
* Origin of the website
* @type {string}
*/
exports.siteOrigin = (isProd ? 'https' : 'http') + '://' + exports.siteHost
/**
* Price of paid products (in cents!)
* @type {Object}
*/
exports.product = {
pro: {
price: 2900,
desc: '100+ Top College Essays'
},
'review-proofreading': {
price: 19900,
desc: 'Essay Review (Proofreading)'
},
'review-standard': {
price: 39900,
desc: 'Essay Review (Standard)'
},
'review-premium': {
price: 79900,
desc: 'Essay Review (Premium)'
}
}
/**
* Stripe publishable token
* @type {string}
*/
exports.stripe = isProd
? 'pk_live_uQgfjT84EYgqyXWasBY0xuOE'
: 'pk_test_7PVccMkybStuChGcJD0HAi40'
const config = require('./config-node')
extend(exports, config)