fix favicon delivery and cache invalidation

This commit is contained in:
MOH
2026-03-07 19:19:58 +01:00
parent cd6ec7fa78
commit 3d1976a7a5
8 changed files with 193 additions and 7 deletions
+30
View File
@@ -0,0 +1,30 @@
import type { MetadataRoute } from "next";
import { getDynamicSiteIconUrls } from "@/lib/site-icons";
export const dynamic = "force-dynamic";
export const revalidate = 0;
export default async function manifest(): Promise<MetadataRoute.Manifest> {
const iconUrls = await getDynamicSiteIconUrls();
return {
name: iconUrls.siteName,
short_name: iconUrls.siteName,
icons: [
{
src: iconUrls.appleIconHref,
sizes: "180x180",
type: "image/png",
},
{
src: iconUrls.faviconHref,
sizes: "32x32",
type: "image/x-icon",
},
],
display: "standalone",
background_color: "#ffffff",
theme_color: "#111827",
};
}