fix favicon delivery and cache invalidation
This commit is contained in:
@@ -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",
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user