Branchwell

Jotley / website · jotley.ai / src / app / api / og / route.tsx

Raw 401 B on 9f5272c5f39b346af9e28d5fc68fe05aab70ce39
1import { readFile } from 'node:fs/promises';
2import { join } from 'node:path';
3
4export const runtime = 'nodejs';
5
6// Keep the existing image endpoint consistent with the static social card.
7export 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}