summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-10-23 14:10:46 +0200
committerRory& <root@rory.gay>2025-12-17 10:11:33 +0100
commit0dd12d0380dd3411ded6b0d42315b5221b96bd5e (patch)
tree838a1335f5c17a872ca280d0088311e701984163
parentDont directly export all config subtypes (diff)
downloadserver-ts-0dd12d0380dd3411ded6b0d42315b5221b96bd5e.tar.xz
Remove GATEWAY/CDN env variables in favor of single source of truth
-rw-r--r--src/api/routes/gateway/bot.ts2
-rw-r--r--src/api/routes/gateway/index.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/api/routes/gateway/bot.ts b/src/api/routes/gateway/bot.ts

index df84a017..80fa9512 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 b614870e..1fafbf5b 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, }); }, );