fix: add both apikey and Authorization headers for storage upload

This commit is contained in:
2026-06-04 20:31:58 +00:00
parent b240b7b56e
commit 8a91494009
+2 -1
View File
@@ -39,7 +39,8 @@ export async function uploadProductImage(
{ {
method: "PUT", method: "PUT",
headers: { headers: {
...svcHeaders(supabaseKey), "apikey": supabaseKey,
"Authorization": `Bearer ${supabaseKey}`,
"Content-Type": `image/${ext}`, "Content-Type": `image/${ext}`,
"x-upsert": "true" "x-upsert": "true"
}, },