fix: remove redundant Authorization header from storage upload

This commit is contained in:
2026-06-04 20:31:38 +00:00
parent fd9d6424d5
commit b240b7b56e
+5 -1
View File
@@ -38,7 +38,11 @@ export async function uploadProductImage(
`${supabaseUrl}/storage/v1/object/${PRODUCT_IMAGES_BUCKET_ID}/${path}`, `${supabaseUrl}/storage/v1/object/${PRODUCT_IMAGES_BUCKET_ID}/${path}`,
{ {
method: "PUT", method: "PUT",
headers: { ...svcHeaders(supabaseKey), "Authorization": `Bearer ${supabaseKey}`, "Content-Type": `image/${ext}`, "x-upsert": "true" }, headers: {
...svcHeaders(supabaseKey),
"Content-Type": `image/${ext}`,
"x-upsert": "true"
},
body: buffer, body: buffer,
} }
); );