Jotley / website · jotley.ai / src / app / api / og / route.tsx
| 1 | import { readFile } from 'node:fs/promises'; |
| 2 | import { join } from 'node:path'; |
| 3 | |
| 4 | export const runtime = 'nodejs'; |
| 5 | |
| 6 | // Keep the existing image endpoint consistent with the static social card. |
| 7 | export async function GET() { |
| 8 | const image = await readFile(join(process.cwd(), 'public/og/jotley-v2.png')); |
| 9 | return new Response(new Uint8Array(image), { |
| 10 | headers: { 'Content-Type': 'image/png' }, |
| 11 | }); |
| 12 | } |