1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-11 05:02:37 +01:00

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) => {
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;