forked from rahul27458/studynotes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
30 lines (22 loc) · 748 Bytes
/
config.js
File metadata and controls
30 lines (22 loc) · 748 Bytes
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
var util = require('./util')
exports.isProd = process.browser
? !/^local/.test(window.location.hostname)
: (process.env.NODE_ENV === 'production')
exports.ports = {
site: exports.isProd ? 7300 : 4000,
liveupdater: exports.isProd ? 7301 : 4001,
admin: 4002
}
exports.siteHost = exports.isProd
? 'www.apstudynotes.org'
: 'localhost:' + exports.ports.site
exports.siteOrigin = '//' + exports.siteHost
exports.secureSiteOrigin = (exports.isProd
? 'https:'
: 'http:'
) + exports.siteOrigin
exports.cdnOrigin = exports.isProd
? '//cdn.apstudynotes.org'
: '/cdn'
exports.secureCdnOrigin = (exports.isProd ? 'https:' : '') + exports.cdnOrigin
util.extend(exports, require('./config-' + (process.browser ? 'browser' : 'node')))