From c24e921b28f9de6d5b5f5fa4ec58acfcaf553251 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sat, 7 Aug 2021 16:46:53 +0200 Subject: :bug: fix gateway endpoint --- src/Server.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/Server.ts') diff --git a/src/Server.ts b/src/Server.ts index aa66b5b6..49bb2398 100644 --- a/src/Server.ts +++ b/src/Server.ts @@ -165,7 +165,10 @@ export class FosscordServer extends Server { /CDN_HOST: ".+"/, `CDN_HOST: "${(Config.get().cdn.endpoint || "http://localhost:3003").replace(/https?:/, "")}"` ) - .replace(/GATEWAY_ENDPOINT: ".+"/, `GATEWAY_ENDPOINT: "${Config.get().gateway.endpoint || "ws://localhost:3002"}"`) + .replace( + /GATEWAY_ENDPOINT: ".+"/, + `GATEWAY_ENDPOINT: "${Config.get().gateway.endpoint || process.env.GATEWAY || "ws://localhost:3002"}"` + ) ); }); return super.start(); -- cgit 1.5.1