forked from vercel/next.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sitemap video tag support (vercel#69349)
Co-authored-by: Sam Ko <sam@vercel.com> Co-authored-by: Jiachi Liu <inbox@huozhi.im>
- Loading branch information
Showing
8 changed files
with
264 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
test/e2e/app-dir/metadata-dynamic-routes/app/sitemap-video/sitemap.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { MetadataRoute } from 'next' | ||
|
||
export default function sitemap(): MetadataRoute.Sitemap { | ||
return [ | ||
{ | ||
url: 'https://example.com/about', | ||
videos: [ | ||
{ | ||
title: 'example', | ||
thumbnail_loc: 'https://example.com/image.jpg', | ||
description: 'this is the description', | ||
content_loc: 'http://streamserver.example.com/video123.mp4', | ||
player_loc: 'https://www.example.com/videoplayer.php?video=123', | ||
duration: 2, | ||
view_count: 50, | ||
tag: 'summer', | ||
rating: 4, | ||
expiration_date: '2025-09-16', | ||
publication_date: '2024-09-16', | ||
family_friendly: 'yes', | ||
requires_subscription: 'no', | ||
live: 'no', | ||
restriction: { | ||
relationship: 'allow', | ||
content: 'IE GB US CA', | ||
}, | ||
platform: { | ||
relationship: 'allow', | ||
content: 'web', | ||
}, | ||
uploader: { | ||
info: 'https://www.example.com/users/grillymcgrillerson', | ||
content: 'GrillyMcGrillerson', | ||
}, | ||
}, | ||
], | ||
}, | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters