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:
Matteo Pagliazzi
2016-03-30 17:20:01 +02:00
parent e54bd0f364
commit 6cbbdcdcbe
24 changed files with 420 additions and 267 deletions
-3
View File
@@ -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')