Branchwell

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

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}