tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
294
fork
atom
a tool for shared writing and social publishing
294
fork
atom
overview
issues
31
pulls
pipelines
add og image to standalone pages
awarm.space
4 months ago
7955fabe
16ad5487
+12
1 changed file
expand all
collapse all
unified
split
app
p
[didOrHandle]
[rkey]
opengraph-image.ts
+12
app/p/[didOrHandle]/[rkey]/opengraph-image.ts
···
1
1
+
import { getMicroLinkOgImage } from "src/utils/getMicroLinkOgImage";
2
2
+
3
3
+
export const runtime = "edge";
4
4
+
export const revalidate = 60;
5
5
+
6
6
+
export default async function OpenGraphImage(props: {
7
7
+
params: { rkey: string; didOrHandle: string };
8
8
+
}) {
9
9
+
return getMicroLinkOgImage(
10
10
+
`/p/${decodeURIComponent(props.params.didOrHandle)}/${props.params.rkey}/`,
11
11
+
);
12
12
+
}