diff --git a/src/routes/gateway.ts b/src/routes/gateway.ts index d823354c..ffbbe74c 100644 --- a/src/routes/gateway.ts +++ b/src/routes/gateway.ts @@ -5,7 +5,7 @@ const router = Router(); router.get("/", (req, res) => { const { endpoint } = Config.get().gateway; - res.send({ url: endpoint || "ws://localhost:3002" }); + res.send({ url: endpoint || process.env.GATEWAY || "ws://localhost:3002" }); }); export default router;