PWA functionality

This commit is contained in:
Philipp Traber
2024-10-20 20:15:58 +02:00
parent c49e1b6020
commit 65a75080a4
17 changed files with 74 additions and 40 deletions
+27
View File
@@ -0,0 +1,27 @@
import type { MetadataRoute } from "next";
export default function manifest(): MetadataRoute.Manifest {
return {
name: "traberph/short",
short_name: "short",
description: "A URL shortener",
start_url: "/~/dash",
display: "standalone",
theme_color: "#111827",
background_color: "#111827",
icons: [
{
src:'/icon-192x192.png',
sizes: '192x192',
type: 'image/png',
},
{
src:'/icon-512x512.png',
sizes: '512x512',
type: 'image/png',
},
],
};
}