import type { MetadataRoute } from 'next'; /** * The install manifest. Deliberately minimal: name, icons, and a start URL that lands on * the position rather than the marketing page, since anyone installing this already has an * account. * * The locale in `start_url` is the deployment default. Switching language rewrites the URL * the reader is on, and the app remembers the choice against the profile, so an installed * shortcut that opens `/es/inicio` still shows English to an English speaker. */ export default function manifest(): MetadataRoute.Manifest { const locale = process.env['NEXT_PUBLIC_DEFAULT_LOCALE'] ?? 'es'; return { name: 'Impuestos', short_name: 'Impuestos', description: 'Escanea tus comprobantes y no te pierdas ningun vencimiento.', start_url: `/${locale}/inicio`, scope: '/', display: 'standalone', orientation: 'portrait', background_color: '#fbfbfc', theme_color: '#0d6b6b', icons: [ { src: '/icon-192.png', sizes: '192x192', type: 'image/png', purpose: 'any' }, { src: '/icon-512.png', sizes: '512x512', type: 'image/png', purpose: 'any' }, { src: '/icon-maskable-512.png', sizes: '512x512', type: 'image/png', purpose: 'maskable' }, ], }; }