add better favicon support

This commit is contained in:
miloschwartz
2026-09-25 15:55:14 -04:00
parent c96700714f
commit 64ef738c8f
9 changed files with 33 additions and 2 deletions
+28
View File
@@ -0,0 +1,28 @@
import type { MetadataRoute } from 'next';
import { appName, siteDescription } from '@/lib/shared';
export default function manifest(): MetadataRoute.Manifest {
return {
name: appName,
short_name: appName,
description: siteDescription,
start_url: '/',
display: 'standalone',
background_color: '#FAF9F2',
theme_color: '#FAF9F2',
icons: [
{
src: '/web-app-manifest-192x192.png',
sizes: '192x192',
type: 'image/png',
purpose: 'maskable',
},
{
src: '/web-app-manifest-512x512.png',
sizes: '512x512',
type: 'image/png',
purpose: 'maskable',
},
],
};
}