summary refs log tree commit diff
path: root/src/Server.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-07 16:46:53 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-07 16:46:53 +0200
commitc24e921b28f9de6d5b5f5fa4ec58acfcaf553251 (patch)
tree3f6d2dcec40119e9360d626dec09f696ebbf6197 /src/Server.ts
parentnpm i @fosscord/server-util@1.3.37 (diff)
downloadserver-c24e921b28f9de6d5b5f5fa4ec58acfcaf553251.tar.xz
:bug: fix gateway endpoint
Diffstat (limited to 'src/Server.ts')
-rw-r--r--src/Server.ts5
1 files changed, 4 insertions, 1 deletions
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();