Next.js · Junior · Question 69 of 75
How do you add a web app manifest for a PWA?
- ✓Correct answer: Add
app/manifest.ts(or a staticmanifest.json) to theappfolder - 2Next.js does not support manifests
- 3Put a
manifestfield intopackage.json
Explanation
manifest.ts returns MetadataRoute.Manifest with the name, icons and colors, and Next.js adds the <link rel="manifest"> tag.