From eae9718ab3011f3f76c0e52ca1cafd9e507f242b Mon Sep 17 00:00:00 2001 From: Roman Shtylman Date: Sun, 24 Jul 2016 21:34:34 -0400 Subject: [PATCH] redirect to github site for landing page avoid proxying all the landing page requests --- server.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server.js b/server.js index 87bf4bc..a21dcd8 100644 --- a/server.js +++ b/server.js @@ -249,13 +249,15 @@ module.exports = function(opt) { }); app.get('/', function(req, res, next) { - proxy.web(req, res); + res.redirect('https://localtunnel.github.io/www/'); }); + // TODO(roman) remove after deploying redirect above app.get('/assets/*', function(req, res, next) { proxy.web(req, res); }); + // TODO(roman) remove after deploying redirect above app.get('/favicon.ico', function(req, res, next) { proxy.web(req, res); });