Files
imen_pishghaman/server/routes/manifest.webmanifest.ts
T

24 lines
594 B
TypeScript
Raw Normal View History

import { siteConfig } from "../../shared/config/site";
export default defineEventHandler((event) => {
setHeader(event, "Content-Type", "application/manifest+json; charset=utf-8");
return {
name: siteConfig.name,
short_name: siteConfig.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",
},
],
};
});