Organize/app/manifest.ts

28 lines
928 B
TypeScript

import type { MetadataRoute } from "next";
// Built-in Next.js metadata route -- generates the /manifest.webmanifest
// response. Only what's needed for installability: this app requires
// internet access for its database anyway, so there's no offline-caching
// story to build here, just the manifest + icons.
export default function manifest(): MetadataRoute.Manifest {
return {
name: "Organize",
short_name: "Organize",
description: "An extended to-do list and notes organizer.",
start_url: "/",
display: "standalone",
background_color: "#ffffff",
theme_color: "#4f46e5",
icons: [
{ src: "/icons/icon-192.png", sizes: "192x192", type: "image/png" },
{ src: "/icons/icon-512.png", sizes: "512x512", type: "image/png" },
{
src: "/icons/icon-512-maskable.png",
sizes: "512x512",
type: "image/png",
purpose: "maskable",
},
],
};
}