optional GATEWAY .env variable

This commit is contained in:
Flam3rboy 2021-05-26 13:30:29 +02:00
parent 3c9e48cbda
commit e23c82fff0

View File

@ -5,7 +5,7 @@ const router = Router();
router.get("/", (req, res) => { router.get("/", (req, res) => {
const { endpoint } = Config.get().gateway; 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; export default router;