diff --git a/lib/browserid/views.js b/lib/browserid/views.js
index 819d8b271828819c0b27aee460765567070892a7..d87269bd1bb467ce5ee0f20174bf28cd17569286 100644
--- a/lib/browserid/views.js
+++ b/lib/browserid/views.js
@@ -52,10 +52,9 @@ exports.setup = function(app) {
   });
 
   app.get('/include.js', function(req, res, next) {
-    var env = config.get('env');
-
     req.url = "/include_js/include.js";
-    if (env === 'production') {
+
+    if (config.get('use_minified_resources') === true) {
       req.url = "/production/include.js"
     }