Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 2 additions & 13 deletions app/apple-icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,11 @@ export const size = { width: 180, height: 180 };
export const contentType = "image/png";

export default async function AppleIcon() {
const mark = await readFile(join(process.cwd(), "public/pull-mark-dark.png"));
const mark = await readFile(join(process.cwd(), "public/pull-apple-touch-icon-v2.png"));
const markSrc = Uint8Array.from(mark).buffer;

return new ImageResponse(
<div
style={{
width: "100%",
height: "100%",
display: "flex",
alignItems: "center",
justifyContent: "center",
background: "#231e1e",
}}
>
<img src={markSrc as unknown as string} width={128} height={128} alt="" />
</div>,
<img src={markSrc as unknown as string} width={size.width} height={size.height} alt="" />,
{ ...size },
);
}
15 changes: 2 additions & 13 deletions app/icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,11 @@ export const contentType = "image/png";

/** Safari-friendly PNG favicon generated at build time (hashed URL busts cache). */
export default async function Icon() {
const mark = await readFile(join(process.cwd(), "public/pull-mark-dark.png"));
const mark = await readFile(join(process.cwd(), "public/pull-icon-v2.png"));
const markSrc = Uint8Array.from(mark).buffer;

return new ImageResponse(
<div
style={{
width: "100%",
height: "100%",
display: "flex",
alignItems: "center",
justifyContent: "center",
background: "#231e1e",
}}
>
<img src={markSrc as unknown as string} width={22} height={22} alt="" />
</div>,
<img src={markSrc as unknown as string} width={size.width} height={size.height} alt="" />,
{ ...size },
);
}
12 changes: 7 additions & 5 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,21 @@ export const metadata: Metadata = {
},
description: siteConfig.description,
icons: {
// Unique paths so Safari does not reuse a cached favicon URL.
// Unique paths so Safari does not reuse a cached favicon URL — bumped to
// -v2 for the terminal-prompt redesign so browsers don't keep showing
// the old mark from cache.
icon: [
{ url: "/pull-icon.png", type: "image/png", sizes: "32x32" },
{ url: "/pull-favicon.ico", sizes: "32x32" },
{ url: "/pull-icon-v2.png", type: "image/png", sizes: "32x32" },
{ url: "/pull-favicon-v2.ico", sizes: "32x32" },
],
apple: [
{
url: "/pull-apple-touch-icon.png",
url: "/pull-apple-touch-icon-v2.png",
sizes: "180x180",
type: "image/png",
},
],
shortcut: "/pull-favicon.ico",
shortcut: "/pull-favicon-v2.ico",
},
};

Expand Down
2 changes: 1 addition & 1 deletion next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const CSP_HEADER = {
"frame-src 'self' https://www.youtube-nocookie.com https://player.vimeo.com",
"img-src 'self' data: blob: https: data:",
"style-src 'self' 'unsafe-inline'",
"script-src 'self' 'unsafe-eval' 'unsafe-inline' https://va.vercel-scripts.com",
"script-src 'self' 'unsafe-eval' 'unsafe-inline' https://va.vercel-scripts.com https://www.googletagmanager.com",
"font-src 'self' data:",
["connect-src 'self' https: wss:", localSupabaseOrigin].filter(Boolean).join(" "),
"worker-src 'self' blob:",
Expand Down
Binary file modified public/favicon.ico
Binary file not shown.
Binary file added public/pull-apple-touch-icon-v2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/pull-favicon-v2.ico
Binary file not shown.
Binary file added public/pull-icon-v2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading