Merge pull request #219 from cubedro/develop
added LITE env var in express render
This commit is contained in:
commit
f7948d03b4
@ -11,7 +11,7 @@ app.use(bodyParser.urlencoded({ extended: false }));
|
|||||||
app.use(express.static(path.join(__dirname, '../dist')));
|
app.use(express.static(path.join(__dirname, '../dist')));
|
||||||
|
|
||||||
app.get('/', function(req, res) {
|
app.get('/', function(req, res) {
|
||||||
res.render('index');
|
res.render((process.env.LITE === true ? 'index-lite' : 'index'));
|
||||||
});
|
});
|
||||||
|
|
||||||
// catch 404 and forward to error handler
|
// catch 404 and forward to error handler
|
||||||
|
Loading…
Reference in New Issue
Block a user