diff --git a/src/server/app.ts b/src/server/app.ts index 3293fa3..e37edf7 100644 --- a/src/server/app.ts +++ b/src/server/app.ts @@ -74,6 +74,10 @@ class App { this.app.use(express.static(path.join(__dirname, "../dist"))); this.app.get("*", (req: Request, res: Response) => { + console.log({ hostname: req.hostname }); + if (req.hostname === "herokuapp") { + return res.status(308).redirect("https://www.githubjobs.io/"); + } res.sendFile(path.join(__dirname, "../dist/index.html")); }); }