import { buildManifest } from '@lumina/market/server'; import type { MetadataRoute } from 'next'; import { i18n } from '../i18n'; // Every request renders fresh, as every metadata route does: nothing is cached on the server. export const dynamic = 'force-dynamic'; // Both apps serve this same manifest (0053). Browsers fetch it without cookies, so it speaks the // app's one locale, and it is the same bytes until the next deploy, so it is built once, when the // module loads; each request only serializes it. const MANIFEST = buildManifest({ name: i18n.t('app.name'), description: i18n.t('app.description'), lang: i18n.language, dir: i18n.dir(), }); /** The web app manifest at `/manifest.webmanifest`; Next.js adds its ``. */ export default function manifest(): MetadataRoute.Manifest { return MANIFEST; }