feat: enhance landing page, Telegram webhook, SEO suite, and cookie consent banner

This commit is contained in:
ayrisdev
2026-08-22 22:57:03 +03:00
parent 5ac5988a3a
commit 61dd85133c
26 changed files with 3264 additions and 896 deletions
+35
View File
@@ -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
}