From a88767ead327af232d2b65888d3d2a90cc80b4ac Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sun, 8 Aug 2021 17:18:28 +0200 Subject: [PATCH] :sparkles: get cdn endpoint from env --- src/Server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Server.ts b/src/Server.ts index 6d1d5009..f9c2619e 100644 --- a/src/Server.ts +++ b/src/Server.ts @@ -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: ".+"/,