a tool for shared writing and social publishing

fix scrollbar styling in screenshots

+6 -2
+6 -2
src/utils/getMicroLinkOgImage.ts
··· 10 10 }, 11 11 ) { 12 12 const headersList = await headers(); 13 - const hostname = headersList.get("x-forwarded-host"); 13 + let hostname = headersList.get("x-forwarded-host"); 14 14 let protocol = headersList.get("x-forwarded-proto"); 15 + if (process.env.NODE_ENV === "development") { 16 + protocol === "https"; 17 + hostname = "leaflet.pub"; 18 + } 15 19 let full_path = `${protocol}://${hostname}${path}`; 16 20 return getWebpageImage(full_path, options); 17 21 } ··· 38 42 scrollPage: true, 39 43 addStyleTag: [ 40 44 { 41 - content: `* {overflow: hidden !important; }`, 45 + content: `* {scrollbar-width:none; }`, 42 46 }, 43 47 ], 44 48 gotoOptions: {