/** * Apple touch icon (180×180) — also used as the PWA icon source. * * iOS Safari grabs when "Add to Home Screen" * is invoked. Next.js auto-wires this file to that link. */ import { ImageResponse } from 'next/og' const size = { width: 180, height: 180 } const contentType = 'image/png' function AppleIcon() { return new ImageResponse(
α
, { ...size }, ) } export default async function handler( _req: import('next').NextApiRequest, res: import('next').NextApiResponse, ) { const image = AppleIcon() res.setHeader('Content-Type', 'image/png') res.setHeader('Cache-Control', 'public, max-age=86400') res.send(Buffer.from(await image.arrayBuffer())) }