How to do redirect in node/express

app.use(function ( req, res, next ) {

if (req.headers.host === "stevemu.com") {
res.redirect('https://www.stevemu.com')
}
next();
});

Here when we detect the host name is stevemu.com, it will redirect to www.stevemu.com. Since I always use https, I just hard coded https there.