From 165cc291f2633e6e125cf1aeb2247d25d8632b34 Mon Sep 17 00:00:00 2001 From: localhost Date: Tue, 11 Nov 2025 17:29:44 +0100 Subject: [PATCH] s4 --- 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 547da3d..777386e 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://s3.archive.party') + return uploaded.url.replace(keys.endpoint, 'https://s4.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://s3.archive.party') + return uploaded.url.replace(keys.endpoint, 'https://s4.archive.party') } export { uploadVideo, uploadImage } \ No newline at end of file