From 3b1885a96fab0ff970275ae0138faa1b77869204 Mon Sep 17 00:00:00 2001 From: cubedro Date: Wed, 22 Jul 2015 13:06:50 +0300 Subject: [PATCH] added LITE env var in express render --- lib/express.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/express.js b/lib/express.js index 747fe4e..d8feedf 100644 --- a/lib/express.js +++ b/lib/express.js @@ -11,7 +11,7 @@ app.use(bodyParser.urlencoded({ extended: false })); app.use(express.static(path.join(__dirname, '../dist'))); app.get('/', function(req, res) { - res.render('index'); + res.render((process.env.LITE === true ? 'index-lite' : 'index')); }); // catch 404 and forward to error handler