diff --git a/browserid/app.js b/browserid/app.js index 03c05aca2bc3195b1cb190f8dd896390c4511a91..0c572dfb3ea582ab85484c439691b19ac5721f57 100644 --- a/browserid/app.js +++ b/browserid/app.js @@ -22,8 +22,6 @@ const const COOKIE_SECRET = secrets.hydrateSecret('cookie_secret', VAR_DIR); const COOKIE_KEY = 'browserid_state'; -const PRODUCTION = true; - function internal_redirector(new_url) { return function(req, resp, next) { req.url = new_url; @@ -34,7 +32,7 @@ function internal_redirector(new_url) { function router(app) { app.set("views", __dirname + '/views'); - app.set('view options', { production: PRODUCTION }); + app.set('view options', { production: exports.production }); // this should probably be an internal redirect // as soon as relative paths are figured out. @@ -110,7 +108,7 @@ function router(app) { }; exports.varDir = VAR_DIR; -exports.production = PRODUCTION; +exports.production = true;