diff --git a/src/app.ts b/src/app.ts index 008177ea..44fd2e95 100644 --- a/src/app.ts +++ b/src/app.ts @@ -256,8 +256,9 @@ export class GBServer { const host = req.headers.host; // Roteamento com base no domínio. - + if (host === process.env.API_HOST) { + GBLog.info(`Redirecting to API...`); return httpProxy.web(req, res, { target: 'http://localhost:1111' }); // Express server }