import type { MetadataRoute } from "next"; export default function manifest(): MetadataRoute.Manifest { return { name: "CM Bot V2", short_name: "CM Bot", description: "CM Bot account and user dashboard", start_url: "/", display: "standalone", orientation: "portrait", background_color: "#fafafa", theme_color: "#18181b", icons: [ // Trailing slash on /icon/ and /apple-icon/ matches the canonical URL // Next.js serves under `trailingSlash: true`. Without the slash the // browser would hit a 308 redirect, then the gated /icon/ path, then // get HTML back instead of the PNG. { src: "/icon/", sizes: "any", type: "image/png" }, { src: "/apple-icon/", sizes: "180x180", type: "image/png" }, ], }; }