1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-01-17 14:18:17 +01:00

debug code

This commit is contained in:
Kamran Ahmed 2024-07-02 00:07:32 +01:00
parent e738936b5e
commit 6686e9361c

View File

@ -25,6 +25,11 @@ export const GET: APIRoute<any, Params> = async (context) => {
}
const svg = await getResourceOpenGraph('roadmap', slug);
if (slug === 'devrel') {
console.log(svg);
}
const transformer = Transformer.fromSvg(svg).crop(0, 0, 1200, 630);
return new Response(await transformer.png(), {