a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

await image upload on url previews

+5 -3
+5 -3
actions/addPageLink.ts
··· 54 54 ]); 55 55 56 56 let key = await hash(url); 57 - supabase.storage.from("url-previews").upload(key, await image.arrayBuffer(), { 58 - contentType: image.headers.get("content-type") || undefined, 59 - }); 57 + await supabase.storage 58 + .from("url-previews") 59 + .upload(key, await image.arrayBuffer(), { 60 + contentType: image.headers.get("content-type") || undefined, 61 + }); 60 62 61 63 let result = expectedAPIResponse.safeParse(await response.json()); 62 64 return {