29 lines
981 B
TypeScript
29 lines
981 B
TypeScript
import type { MetadataRoute } from "next";
|
|||
|
|
|
||
|
|
// Required under output: "export" — a manifest route has no per-request
|
||
|
|
// dynamic behavior anyway, so this just makes that explicit to the build.
|
||
|
|
export const dynamic = "force-static";
|
||
|
|
|
||
|
|
export default function manifest(): MetadataRoute.Manifest {
|
||
|
|
return {
|
||
|
|
name: "vpinball — Visual Pinball in your browser",
|
||
|
|
short_name: "vpinball",
|
||
|
|
description: "Play real .vpx pinball tables in the browser, powered by WebAssembly.",
|
||
|
|
start_url: "/",
|
||
|
|
display: "fullscreen",
|
||
|
|
background_color: "#0b0b0f",
|
||
|
|
theme_color: "#0b0b0f",
|
||
|
|
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",
|
||
|
|
},
|
||
|
|
{ src: "/icons/icon.svg", sizes: "any", type: "image/svg+xml" },
|
||
|
|
],
|
||
|
|
};
|
||
|
|
}
|