summary refs log tree commit diff
path: root/src/util/util/cdn.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-01-26 10:18:16 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-01-26 10:18:16 +1100
commit1886d5394341e5ab3ceb089015dda12c90954c63 (patch)
tree79aaa9d0cc06a722c2a3a767dc6952cb2e564c11 /src/util/util/cdn.ts
parentDon't set default cdn endpoints. Null endpoints means to not update them in G... (diff)
downloadserver-1886d5394341e5ab3ceb089015dda12c90954c63.tar.xz
Use localhost:3001 as fallback when cdn endpoints are null rather than 3003
Diffstat (limited to '')
-rw-r--r--src/util/util/cdn.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/util/cdn.ts b/src/util/util/cdn.ts

index 7f447c53..69d50159 100644 --- a/src/util/util/cdn.ts +++ b/src/util/util/cdn.ts
@@ -36,7 +36,7 @@ export async function uploadFile( }); const response = await fetch( - `${Config.get().cdn.endpointPrivate || "http://localhost:3003"}${path}`, + `${Config.get().cdn.endpointPrivate || "http://localhost:3001"}${path}`, { headers: { signature: Config.get().security.requestSignature, @@ -75,7 +75,7 @@ export async function handleFile( export async function deleteFile(path: string) { const response = await fetch( - `${Config.get().cdn.endpointPrivate || "http://localhost:3003"}${path}`, + `${Config.get().cdn.endpointPrivate || "http://localhost:3001"}${path}`, { headers: { signature: Config.get().security.requestSignature,