From 0dd12d0380dd3411ded6b0d42315b5221b96bd5e Mon Sep 17 00:00:00 2001 From: Rory& Date: Thu, 23 Oct 2025 14:10:46 +0200 Subject: [PATCH] Remove GATEWAY/CDN env variables in favor of single source of truth --- src/api/routes/gateway/bot.ts | 2 +- src/api/routes/gateway/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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, }); }, );