File conventions
Web application manifest
A manifest provides browser-facing app identity and launch presentation metadata. It is not a service worker, offline cache or guarantee that a browser will install the app. Keep URLs public and avoid user-specific data in a manifest. Example context: Next.js 16.x documentation lane; illustrative snippet or file tree, not executed. Exact candidate patch 16.4.6 remains unverified. Expected behavior / verification: Request the generated manifest, verify name and start_url, and test installation requirements separately. This example does not include required installability icons.
Formal Syntax & Structure
nextjs syntaxnextjs
app/manifest.ts; default export returns MetadataRoute.ManifestWorking Example
Example Snippetnextjs
import type { MetadataRoute } from 'next';export default function manifest(): MetadataRoute.Manifest { return { name: 'River Books', short_name: 'River', start_url: '/', display: 'standalone', background_color: '#ffffff', theme_color: '#254b3b' };}