mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-07 19:32:34 +01:00
✨ get cdn endpoint from env
This commit is contained in:
parent
200479f135
commit
a88767ead3
@ -163,7 +163,7 @@ export class FosscordServer extends Server {
|
||||
indexHTML
|
||||
.replace(
|
||||
/CDN_HOST: ".+"/,
|
||||
`CDN_HOST: "${(Config.get().cdn.endpoint || "http://localhost:3003").replace(/https?:/, "")}"`
|
||||
`CDN_HOST: "${(Config.get().cdn.endpoint || process.env.CDN || "http://localhost:3003").replace(/https?:/, "")}"`
|
||||
)
|
||||
.replace(
|
||||
/GATEWAY_ENDPOINT: ".+"/,
|
||||
|
Loading…
Reference in New Issue
Block a user