a tool for shared writing and social publishing

add og image to standalone pages

Changed files
+12
app
p
[didOrHandle]
+12
app/p/[didOrHandle]/[rkey]/opengraph-image.ts
··· 1 + import { getMicroLinkOgImage } from "src/utils/getMicroLinkOgImage"; 2 + 3 + export const runtime = "edge"; 4 + export const revalidate = 60; 5 + 6 + export default async function OpenGraphImage(props: { 7 + params: { rkey: string; didOrHandle: string }; 8 + }) { 9 + return getMicroLinkOgImage( 10 + `/p/${decodeURIComponent(props.params.didOrHandle)}/${props.params.rkey}/`, 11 + ); 12 + }