This commit is contained in:
parent
dc38b481cb
commit
ce02ade61d
|
|
@ -10,7 +10,7 @@ async function uploadVideo(video: string) {
|
||||||
body: await Bun.file(video).arrayBuffer()
|
body: await Bun.file(video).arrayBuffer()
|
||||||
})
|
})
|
||||||
if (!uploaded.ok) throw new Error(`failed to upload video - ${uploaded.status} (${uploaded.statusText})`)
|
if (!uploaded.ok) throw new Error(`failed to upload video - ${uploaded.status} (${uploaded.statusText})`)
|
||||||
return uploaded.url.replace(keys.endpoint, 'https://s0-2.archive.party')
|
return uploaded.url.replace(keys.endpoint, 'https://s5.archive.party')
|
||||||
}
|
}
|
||||||
|
|
||||||
async function uploadImage(id: string, url: string) {
|
async function uploadImage(id: string, url: string) {
|
||||||
|
|
@ -33,7 +33,7 @@ async function uploadImage(id: string, url: string) {
|
||||||
},
|
},
|
||||||
body: arrayBuffer
|
body: arrayBuffer
|
||||||
})
|
})
|
||||||
return uploaded.url.replace(keys.endpoint, 'https://s0-2.archive.party')
|
return uploaded.url.replace(keys.endpoint, 'https://s5.archive.party')
|
||||||
}
|
}
|
||||||
|
|
||||||
export { uploadVideo, uploadImage }
|
export { uploadVideo, uploadImage }
|
||||||
Loading…
Reference in New Issue