tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
28
pulls
pipelines
cache microlink requests
awarm.space
5 months ago
a9ce8b9f
99859b57
+6
2 changed files
expand all
collapse all
unified
split
app
api
link_previews
route.ts
src
utils
getMicroLinkOgImage.ts
+3
app/api/link_previews/route.ts
···
33
33
headers: {
34
34
"x-api-key": process.env.MICROLINK_API_KEY!,
35
35
},
36
36
+
next: {
37
37
+
revalidate: 600,
38
38
+
},
36
39
},
37
40
);
38
41
let key = await hash(url);
+3
src/utils/getMicroLinkOgImage.ts
···
14
14
headers: {
15
15
"x-api-key": process.env.MICROLINK_API_KEY!,
16
16
},
17
17
+
next: {
18
18
+
revalidate: 600,
19
19
+
},
17
20
},
18
21
);
19
22
const clonedResponse = response.clone();