mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Co-authored-by: Sam Ko <[email protected]> Co-authored-by: Jiachi Liu <[email protected]>
40 lines
1.1 KiB
TypeScript
40 lines
1.1 KiB
TypeScript
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',
|
|
},
|
|
},
|
|
],
|
|
},
|
|
]
|
|
}
|