chore: add robots.txt and sitemap.xml configuration
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { MetadataRoute } from 'next'
|
||||
import { routing } from '@/i18n/routing'
|
||||
|
||||
export default function sitemap(): MetadataRoute.Sitemap {
|
||||
const baseUrl = 'https://menu.moybeachakyaka.com'
|
||||
|
||||
return routing.locales.map((locale) => ({
|
||||
url: `${baseUrl}/${locale}`,
|
||||
lastModified: new Date(),
|
||||
changeFrequency: 'daily',
|
||||
priority: locale === routing.defaultLocale ? 1 : 0.8,
|
||||
}))
|
||||
}
|
||||
Reference in New Issue
Block a user