Files
PAGIVA/src/app/manifest.ts
T
Loma Bot Ops 4a673ebb28 Support sub-path deploy via NEXT_PUBLIC_BASE_PATH (loma.chat/pagiva)
Adds basePath config, withBase/appUrl helpers, base-path-aware cookies,
OAuth redirects, manifest, service worker and cron runner.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 16:48:42 +07:00

29 lines
1.2 KiB
TypeScript

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") },
],
};
}