⬆️ update demo test client

This commit is contained in:
Flam3rboy committed 2021-08-05 13:44:50 +02:00
1 parent e9d387f3b5
commit cce776e2e9
2 files changed
+12 -8

No files matched your search

+6 -4
View File
@@ -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();