import { siteConfig } from "../../shared/config/site"; export default defineEventHandler(async (event) => { const name = await fetchSite() .then((s) => s.sections.settings.name) .catch(() => "ایمن پیشگامان"); setHeader(event, "Content-Type", "application/manifest+json; charset=utf-8"); return { name, short_name: name, lang: siteConfig.lang, dir: siteConfig.dir, start_url: "/", display: "standalone", background_color: siteConfig.themeColor, theme_color: siteConfig.themeColor, icons: [ { src: siteConfig.favicon, sizes: "any", type: "image/svg+xml", purpose: "any", }, ], }; });