import type { MetadataRoute } from "next"; import { getCompanyInfo } from "@/lib/company-info"; import { getLocale } from "@/i18n/locale"; import { getDictionary } from "@/i18n/get-dictionary"; /** * Web-App-Manifest fuer "Zum Startbildschirm hinzufuegen" auf Mobilgeraeten — * nutzt das bestehende icon.svg direkt statt zusaetzlich generierter * Raster-Varianten (Chrome/Android unterstuetzen SVG-Manifest-Icons mit * sizes:"any" nativ, siehe MDN). Sprachabhaengig wie der Rest der Seite. */ export default async function manifest(): Promise { const locale = await getLocale(); const t = getDictionary(locale); const company = await getCompanyInfo(); return { name: `${company.name} — ${t.footer.tagline}`, short_name: company.name, description: t.common.siteDescription, start_url: "/", display: "standalone", background_color: "#FAF8F3", theme_color: "#24352B", icons: [ { src: "/icon.svg", sizes: "any", type: "image/svg+xml", purpose: "any", }, ], }; }