import { getBrandAssets } from "@/lib/brand"; import { renderBrandIcon } from "@/lib/brand-icon"; export const size = { width: 180, height: 180 }; export const contentType = "image/png"; // Wie app/icon.tsx: im Admin austauschbar, deshalb nicht zur Build-Zeit festschreiben. export const dynamic = "force-dynamic"; /** * Apple-Touch-Icon fuer "Zum Home-Bildschirm hinzufuegen" auf iOS/iPadOS — * Apple akzeptiert dafuer ausschliesslich PNG/JPG, kein SVG. Ohne diese * Datei nimmt iOS ersatzweise einen Screenshot der Seite als Icon. Gleiche * Quelle wie das Favicon, aber auf Creme-Grund: iOS stellt transparente * Flaechen schwarz dar. */ export default async function AppleIcon(): Promise { const { favicon } = await getBrandAssets(); const png = await renderBrandIcon(favicon, size.width, "#FAF8F3"); return new Response(new Uint8Array(png), { headers: { "Content-Type": contentType, "Cache-Control": "no-cache" }, }); }