-
Notifications
You must be signed in to change notification settings - Fork 30.1k
Sitemap video tag support #69349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
huozhi
merged 12 commits into
vercel:canary
from
archanaagivale30:sitemap_video_tag_support
Sep 26, 2024
Merged
Sitemap video tag support #69349
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
97e3364
video tag support in sitemap.xml
archanaagivale30 b7566c7
merge branch canary
archanaagivale30 79a6520
documentation update for video tag support in sitemap.xml
archanaagivale30 280d9c8
update video tag url changed
archanaagivale30 33702f0
Merge branch 'canary' into sitemap_video_tag_support
samcx e57db77
Merge branch 'canary' of https://github.com/vercel/next.js into sitem…
archanaagivale30 42b9382
test case failed issue fixed
archanaagivale30 4bd93ad
Merge branch 'sitemap_video_tag_support' of https://github.com/archan…
archanaagivale30 78ff45f
added all props of video tag in sitemap test case
archanaagivale30 bb47455
video sitemap all props check test case added
archanaagivale30 a6d8bfb
Merge branch 'canary' into sitemap_video_tag_support
archanaagivale30 3bf5eed
fix test
huozhi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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: [ | ||
| { | ||
archanaagivale30 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.