mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Re-export the original route segment config in metadata routes loader, so they can be picked up by app route module wrapper Closes #54057 Closes NEXT-1645
20 lines
397 B
TypeScript
20 lines
397 B
TypeScript
import 'server-only'
|
|
import { MetadataRoute } from 'next'
|
|
|
|
export default function sitemap(): MetadataRoute.Sitemap {
|
|
return [
|
|
{
|
|
url: 'https://example.com',
|
|
lastModified: '2021-01-01',
|
|
changeFrequency: 'weekly',
|
|
priority: 0.5,
|
|
},
|
|
{
|
|
url: 'https://example.com/about',
|
|
lastModified: '2021-01-01',
|
|
},
|
|
]
|
|
}
|
|
|
|
export const dynamic = 'force-dynamic'
|