From e23c82fff070d31519b38d77eafd85933df56093 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Wed, 26 May 2021 13:30:29 +0200 Subject: [PATCH] optional GATEWAY .env variable --- src/routes/gateway.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;