a tool for shared writing and social publishing

fix microlink screenshot width in getMicroLinkOgImage for proper aspect ratio

+1 -1
+1 -1
src/utils/getMicroLinkOgImage.ts
··· 9 9 let protocol = headersList.get("x-forwarded-proto"); 10 10 let full_path = `${protocol}://${hostname}${path}`; 11 11 let response = await fetch( 12 - `https://pro.microlink.io/?url=${encodeURIComponent(full_path)}&screenshot=true&viewport.width=${options?.width || 1200}&viewport.height=${options?.height || 733}&viewport.deviceScaleFactor=${options?.deviceScaleFactor || 1}&meta=false&embed=screenshot.url&force=true`, 12 + `https://pro.microlink.io/?url=${encodeURIComponent(full_path)}&screenshot=true&viewport.width=${options?.width || 1400}&viewport.height=${options?.height || 733}&viewport.deviceScaleFactor=${options?.deviceScaleFactor || 1}&meta=false&embed=screenshot.url&force=true`, 13 13 { 14 14 headers: { 15 15 "x-api-key": process.env.MICROLINK_API_KEY!,