add sitemap by code

This commit is contained in:
Philip Cheung 2024-12-01 21:36:40 +08:00
parent 223ecbbcbb
commit 8c95f5cb9d
1 changed files with 24 additions and 0 deletions

24
app/sitemap.ts Normal file
View File

@ -0,0 +1,24 @@
import type { MetadataRoute } from 'next'
export default function sitemap(): MetadataRoute.Sitemap {
return [
{
url: 'https://oneandallmusic.net/',
lastModified: new Date(),
changeFrequency: 'yearly',
priority: 1,
},
{
url: 'https://oneandallmusic.net/aboutus',
lastModified: new Date(),
changeFrequency: 'monthly',
priority: 0.8,
},
{
url: 'https://oneandallmusic.net/electronicorgan',
lastModified: new Date(),
changeFrequency: 'weekly',
priority: 0.8,
},
]
}