From cce776e2e99a1898dbdd453d743d4f5ecc220f6d Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Thu, 5 Aug 2021 13:44:50 +0200 Subject: :arrow_up: update demo test client --- src/Server.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/Server.ts b/src/Server.ts index 52e217f8..aa66b5b6 100644 --- a/src/Server.ts +++ b/src/Server.ts @@ -160,10 +160,12 @@ export class FosscordServer extends Server { res.set("Cache-Control", "public, max-age=" + 60 * 60 * 24); res.set("content-type", "text/html"); res.send( - indexHTML.replace( - /CDN_HOST: ".+"/, - `CDN_HOST: "${(Config.get().cdn.endpoint || "http://localhost:3003").replace(/https?:/, "")}"` - ) + indexHTML + .replace( + /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"}"`) ); }); return super.start(); -- cgit 1.5.1