perf(images): serve optimized portfolio media

This commit is contained in:
poyrazavsever
2026-08-31 10:20:02 +03:00
parent 5c48b029ca
commit 87e6279dec
127 changed files with 367 additions and 73 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ export async function generateMetadata({
]);
const localizedPath = locale === "en" ? "/en/animation-sources" : "/animation-sources";
const url = `${SITE_URL}${localizedPath}`;
const socialImagePath = sources[0]?.coverImage ?? "/logo/logo.png";
const socialImagePath = sources[0]?.coverImage ?? "/logo/logo.webp";
const socialImageUrl = new URL(socialImagePath, SITE_URL).toString();
const isGif = socialImagePath.toLowerCase().endsWith(".gif");
+4 -4
View File
@@ -36,10 +36,10 @@ export async function generateMetadata({
icons: {
icon: [
{ url: "/favicon.ico", sizes: "any" },
{ url: "/logo/logo.png", type: "image/jpeg" },
{ url: "/logo/logo.webp", type: "image/webp" },
],
shortcut: "/favicon.ico",
apple: "/logo/logo.png",
apple: "/logo/apple-touch-icon.png",
},
authors: [{ name: "Poyraz Avsever" }],
creator: "Poyraz Avsever",
@@ -53,7 +53,7 @@ export async function generateMetadata({
description: description,
images: [
{
url: "/logo/logo.png",
url: "/logo/logo.webp",
width: 1200,
height: 1200,
alt: "Poyraz Avsever Logo",
@@ -64,7 +64,7 @@ export async function generateMetadata({
card: "summary_large_image",
title: title,
description: description,
images: ["/logo/logo.png"],
images: ["/logo/logo.webp"],
creator: "@poyrazavsever",
},
keywords: [