Skip to content

Commit

Permalink
icon.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
abernier committed Aug 14, 2024
1 parent 6099ecf commit 3730ed2
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
5 changes: 0 additions & 5 deletions apps/website/app/icon.svg

This file was deleted.

26 changes: 26 additions & 0 deletions apps/website/app/icon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { ImageResponse } from "next/og";

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

// https://nextjs.org/docs/app/api-reference/file-conventions/metadata/app-icons#generate-icons-using-code-js-ts-tsx
// https://www.linkedin.com/posts/delbaoliveira_nextjs-file-based-metadata-icon-add-activity-7222279799346544641-2fTy?utm_source=share&utm_medium=member_desktop
export default function Icon() {
return new ImageResponse(
(
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
<text y=".9em" font-size="90">
🍱
</text>
</svg>
),
{ ...size }
);
}

// export function generateStaticParams() {
// return [{ __metadata_id__: "99ac51dfda5dd831" }];
// }

0 comments on commit 3730ed2

Please sign in to comment.