mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 12:22:29 +00:00
⬆️ update demo test client
This commit is contained in:
1 parent
e9d387f3b5
commit
cce776e2e9
2 files changed
+12
-8
No files matched your search
+6
-4
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user