From 1e599b6ce5ab34df7057a69c02aee95989b13ce9 Mon Sep 17 00:00:00 2001 From: "Mark R. Florkowski" Date: Sun, 21 Jan 2024 18:43:49 -0800 Subject: [PATCH] use utfs.io --- src/app/api/uploadthing/core.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/api/uploadthing/core.ts b/src/app/api/uploadthing/core.ts index a926b263..204a69de 100644 --- a/src/app/api/uploadthing/core.ts +++ b/src/app/api/uploadthing/core.ts @@ -49,14 +49,14 @@ const onUploadComplete = async ({ key: file.key, name: file.name, userId: metadata.userId, - url: `https://uploadthing-prod.s3.us-west-2.amazonaws.com/${file.key}`, + url: `https://utfs.io/${file.key}`, uploadStatus: 'PROCESSING', }, }) try { const response = await fetch( - `https://uploadthing-prod.s3.us-west-2.amazonaws.com/${file.key}` + `https://utfs.io/${file.key}` ) const blob = await response.blob()