trading-app/src/app/pwa-icon/[size]/route.tsx
David 27a358038a
Some checks failed
Tick / tick (push) Failing after 1s
Cagnotte V1: IA news-driven trading sim, sandbox, PEA tracking, PWA
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 19:06:17 +01:00

11 lines
411 B
TypeScript

import { ImageResponse } from "next/og";
import { IconArt } from "@/lib/icon-art";
const SIZES = new Set([192, 512]);
export async function GET(_req: Request, ctx: RouteContext<"/pwa-icon/[size]">) {
const size = Number((await ctx.params).size);
if (!SIZES.has(size)) return new Response("Not found", { status: 404 });
return new ImageResponse(<IconArt size={size} />, { width: size, height: size });
}