a tool for shared writing and social publishing
0
fork

Configure Feed

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

resize url preview images properly

+3 -4
+3 -4
actions/addLinkCard.ts
··· 63 63 return { 64 64 ...result, 65 65 screenshot: { 66 - url: supabase.storage 67 - .from("url-previews") 68 - .getPublicUrl(key, { transform: { width: 240, height: 208 } }).data 69 - .publicUrl, 66 + url: supabase.storage.from("url-previews").getPublicUrl(key, { 67 + transform: { width: 240, height: 208, resize: "contain" }, 68 + }).data.publicUrl, 70 69 height: 208, 71 70 width: 240, 72 71 },