feat: convert app to PWA with offline support and service worker

This commit is contained in:
2026-02-26 18:01:33 +01:00
parent 1d72f34b65
commit f20cedffd5
5 changed files with 129 additions and 0 deletions

29
app/manifest.ts Normal file
View File

@@ -0,0 +1,29 @@
import { MetadataRoute } from 'next';
export const dynamic = 'force-static';
export default function manifest(): MetadataRoute.Manifest {
return {
name: 'Kit - Creative Toolkit',
short_name: 'Kit',
description: 'A curated collection of creative and utility tools for developers and creators.',
start_url: '/',
display: 'standalone',
background_color: '#0a0a0f',
theme_color: '#8b5cf6',
icons: [
{
src: '/icon.png',
sizes: '512x512',
type: 'image/png',
purpose: 'any',
},
{
src: '/icon.png',
sizes: '512x512',
type: 'image/png',
purpose: 'maskable',
},
],
};
}