From 382be3c1dfbde28c565db3ace7763b7953233d7c Mon Sep 17 00:00:00 2001 From: localhost Date: Tue, 25 Feb 2025 09:01:38 +0100 Subject: [PATCH] new storage --- src/utils/upload.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/upload.ts b/src/utils/upload.ts index 5f27395..547da3d 100644 --- a/src/utils/upload.ts +++ b/src/utils/upload.ts @@ -21,7 +21,7 @@ const images3 = new S3({ async function uploadVideo(video: string) { const videoFile = fs.readFileSync(video) const uploaded = await videos3.put(video.split('/')[2], videoFile) - return uploaded.url.replace(keys.endpoint, 'https://s2.archive.party') + return uploaded.url.replace(keys.endpoint, 'https://s3.archive.party') } async function uploadImage(id: string, url: string) { @@ -32,7 +32,7 @@ async function uploadImage(id: string, url: string) { const buffer = Buffer.from(await response.arrayBuffer()) const uploaded = await images3.put(`${id}.webp`, buffer) - return uploaded.url.replace(keys.endpoint, 'https://s2.archive.party') + return uploaded.url.replace(keys.endpoint, 'https://s3.archive.party') } export { uploadVideo, uploadImage } \ No newline at end of file