diff --git a/src/api/routes/gateway/bot.ts b/src/api/routes/gateway/bot.ts index df84a0170..80fa95124 100644 --- a/src/api/routes/gateway/bot.ts +++ b/src/api/routes/gateway/bot.ts @@ -34,7 +34,7 @@ router.get( (req: Request, res: Response) => { const { endpointPublic } = Config.get().gateway; res.json({ - url: endpointPublic || process.env.GATEWAY || "ws://localhost:3001", + url: endpointPublic, shards: 1, session_start_limit: { total: 1000, diff --git a/src/api/routes/gateway/index.ts b/src/api/routes/gateway/index.ts index b614870e3..1fafbf5bc 100644 --- a/src/api/routes/gateway/index.ts +++ b/src/api/routes/gateway/index.ts @@ -34,7 +34,7 @@ router.get( (req: Request, res: Response) => { const { endpointPublic } = Config.get().gateway; res.json({ - url: endpointPublic || process.env.GATEWAY || "ws://localhost:3001", + url: endpointPublic, }); }, );