2026-10-06 16:28:05 +03:30
|
|
|
import { siteConfig } from "../../shared/config/site";
|
|
|
|
|
|
2026-10-21 20:31:05 +03:30
|
|
|
export default defineEventHandler(async (event) => {
|
|
|
|
|
const name = await fetchSite()
|
|
|
|
|
.then((s) => s.sections.settings.name)
|
|
|
|
|
.catch(() => "ایمن پیشگامان");
|
|
|
|
|
|
2026-10-06 16:28:05 +03:30
|
|
|
setHeader(event, "Content-Type", "application/manifest+json; charset=utf-8");
|
|
|
|
|
return {
|
2026-10-21 20:31:05 +03:30
|
|
|
name,
|
|
|
|
|
short_name: name,
|
2026-10-06 16:28:05 +03:30
|
|
|
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",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
};
|
|
|
|
|
});
|