Use localhost:3001 as fallback when cdn endpoints are null rather than 3003
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user