peppa/apps/web/app/manifest.ts
2026-11-15 14:47:50 +05:00

20 lines
688 B
TypeScript

import type { MetadataRoute } from "next";
import { PRODUCT_NAME } from "@peppa/shared/i18n";
import { getT } from "@/lib/i18n";
/** Installable as an app (PEP-55): Chrome «Установить Пеппу», badge on the app icon. */
export default async function manifest(): Promise<MetadataRoute.Manifest> {
const t = await getT();
return {
name: PRODUCT_NAME,
short_name: PRODUCT_NAME,
description: t("Проекты, стори и агенты"),
start_url: "/",
scope: "/",
display: "standalone",
background_color: "#0a0a0a",
theme_color: "#0a0a0a",
icons: [{ src: "/icon.svg", sizes: "any", type: "image/svg+xml", purpose: "any" }],
};
}