From 19c38f721eb73be5ef65164d6011fc384e0dc427 Mon Sep 17 00:00:00 2001 From: Leandro Facchinetti Date: Tue, 16 Mar 2021 01:35:44 +0000 Subject: [PATCH] --- deployment-example/configuration.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deployment-example/configuration.js b/deployment-example/configuration.js index 7a54894..e075b85 100644 --- a/deployment-example/configuration.js +++ b/deployment-example/configuration.js @@ -15,8 +15,8 @@ module.exports = async (require) => { const reverseProxy = express(); reverseProxy.use((req, res, next) => { - if (req.hostname !== new URL(app.get("url")).hostname) - return res.redirect(`${app.get("url")}${req.originalUrl}`); + if (req.hostname !== new URL(webApplication.get("url")).hostname) + return res.redirect(`${webApplication.get("url")}${req.originalUrl}`); next(); });