summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-26 13:30:29 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-26 13:30:29 +0200
commite23c82fff070d31519b38d77eafd85933df56093 (patch)
tree425858941c335ce1c7ce67edac42a25606c9cd15
parentfix message loading (diff)
downloadserver-e23c82fff070d31519b38d77eafd85933df56093.tar.xz
optional GATEWAY .env variable
-rw-r--r--src/routes/gateway.ts2
1 files changed, 1 insertions, 1 deletions
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;