v3: port static pages, make routes lib more flexible, share middlewares between v2 and v3, port v1, simplify server.js
This commit is contained in:
@@ -167,9 +167,6 @@ module.exports.analytics = { track: function() { }, trackPurchase: function() {
|
||||
* Load nconf and define default configuration values if config.json or ENV vars are not found
|
||||
*/
|
||||
module.exports.setupConfig = function(){
|
||||
IS_PROD = nconf.get('NODE_ENV') === 'production';
|
||||
BASE_URL = nconf.get('BASE_URL');
|
||||
|
||||
if (nconf.get('IS_DEV'))
|
||||
Error.stackTraceLimit = Infinity;
|
||||
if (IS_PROD && nconf.get('NEW_RELIC_ENABLED') === 'true')
|
||||
|
||||
Reference in New Issue
Block a user