Skip to content

favicon - #38

Open
azhao8 wants to merge 1 commit into
devfrom
zeyuanzhao/favicon
Open

favicon#38
azhao8 wants to merge 1 commit into
devfrom
zeyuanzhao/favicon

Conversation

@azhao8

@azhao8 azhao8 commented May 12, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings May 12, 2026 12:12

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a programmatic favicon/icon route to the Next.js App Router so the app can serve a generated 32×32 PNG icon.

Changes:

  • Introduces app/icon.tsx using next/og’s ImageResponse to render an SVG-based icon.
  • Exports icon metadata (size, contentType) for Next’s icon route handling.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread app/icon.tsx
Comment on lines +1 to +6
import { ImageResponse } from "next/og";

export const size = { width: 32, height: 32 };
export const contentType = "image/png";

export default function Icon() {
Comment thread app/icon.tsx
/>
</svg>
</div>,
{ ...size },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants