feat: enhance landing page, Telegram webhook, SEO suite, and cookie consent banner
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
import { MetadataRoute } from 'next'
|
||||
|
||||
export default function sitemap(): MetadataRoute.Sitemap {
|
||||
const baseUrl = 'https://ayrislegal.com'
|
||||
const locales = ['tr', 'en']
|
||||
const now = new Date()
|
||||
|
||||
const routes = [
|
||||
{ path: '', priority: 1.0, changeFrequency: 'weekly' as const },
|
||||
{ path: '/iletisim', priority: 0.9, changeFrequency: 'monthly' as const },
|
||||
{ path: '/privacy', priority: 0.3, changeFrequency: 'yearly' as const },
|
||||
]
|
||||
|
||||
const entries: MetadataRoute.Sitemap = []
|
||||
|
||||
for (const locale of locales) {
|
||||
for (const route of routes) {
|
||||
const url = `${baseUrl}/${locale}${route.path}`
|
||||
entries.push({
|
||||
url,
|
||||
lastModified: now,
|
||||
changeFrequency: route.changeFrequency,
|
||||
priority: route.priority,
|
||||
alternates: {
|
||||
languages: {
|
||||
tr: `${baseUrl}/tr${route.path}`,
|
||||
en: `${baseUrl}/en${route.path}`,
|
||||
},
|
||||
},
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
return entries
|
||||
}
|
||||
Reference in New Issue
Block a user