import { withBase } from "@/lib/base-path"; import type { MetadataRoute } from "next"; export default function manifest(): MetadataRoute.Manifest { return { id: withBase("/"), name: "ระบบจัดการเพจ", short_name: "จัดการเพจ", description: "โพสต์ อนุมัติ ตอบแชท และดู insights ของเพจ Facebook และ Instagram", start_url: withBase("/"), scope: withBase("/"), display: "standalone", orientation: "portrait", background_color: "#eef8ff", theme_color: "#e0f2fe", lang: "th", icons: [ { src: withBase("/icons/192"), sizes: "192x192", type: "image/png", purpose: "any" }, { src: withBase("/icons/512"), sizes: "512x512", type: "image/png", purpose: "any" }, { src: withBase("/icons/maskable-512"), sizes: "512x512", type: "image/png", purpose: "maskable" }, ], shortcuts: [ { name: "สร้างโพสต์", short_name: "สร้างโพสต์", url: withBase("/posts/new") }, { name: "Inbox", url: withBase("/inbox") }, { name: "ปฏิทิน", url: withBase("/calendar") }, ], }; }