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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Flam3rboy
						Flam3rboy