Skip to content

Commit

Permalink
fix: update screenshot manifest types
Browse files Browse the repository at this point in the history
Updates the `screenshots` section of `MetadataRoute.Manifest` to include
`form_factor`, `label`, and `platform`, per the spec

fixes: vercel#62161
refs: https://w3c.github.io/manifest-app-info/#screenshots-member
refs: https://developer.mozilla.org/en-US/docs/Web/Manifest/screenshots
  • Loading branch information
redbmk committed Aug 2, 2024
1 parent 93824b9 commit efba8d6
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion packages/next/src/lib/metadata/types/manifest-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,25 @@ export type Manifest = {
}[]
scope?: string
screenshots?: {
form_factor?: 'narrow' | 'wide'
label?: string
platform?:
| 'android'
| 'chromeos'
| 'ipados'
| 'ios'
| 'kaios'
| 'macos'
| 'windows'
| 'xbox'
| 'chrome_web_store'
| 'play'
| 'itunes'
| 'microsoft-inbox'
| 'microsoft-store'
sizes?: string
src: string
type?: string
sizes?: string
}[]
serviceworker?: {
src?: string
Expand Down

0 comments on commit efba8d6

Please sign in to comment.