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:
parent
3c9e48cbda
commit
e23c82fff0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user