feat: setup database-driven admin user management

This commit is contained in:
2026-06-10 04:25:54 +03:00
parent f542efb324
commit b712760825
23 changed files with 804 additions and 40 deletions
+29
View File
@@ -0,0 +1,29 @@
import { MetadataRoute } from 'next';
const baseUrl = 'https://kitebeachakyaka.com.tr';
const langs = ['tr', 'en'];
const routes = [
{ path: '', changeFrequency: 'daily' as const, priority: 1.0 },
{ path: '/aktiviteler', changeFrequency: 'weekly' as const, priority: 0.9 },
{ path: '/etkinlikler', changeFrequency: 'weekly' as const, priority: 0.9 },
{ path: '/restoran', changeFrequency: 'weekly' as const, priority: 0.8 },
{ path: '/iletisim', changeFrequency: 'monthly' as const, priority: 0.8 },
{ path: '/hakkimizda', changeFrequency: 'monthly' as const, priority: 0.7 },
{ path: '/galeri', changeFrequency: 'monthly' as const, priority: 0.7 },
];
export default function sitemap(): MetadataRoute.Sitemap {
return langs.flatMap((lang) =>
routes.map(({ path, changeFrequency, priority }) => ({
url: `${baseUrl}/${lang}${path}`,
lastModified: new Date(),
changeFrequency,
priority,
alternates: {
languages: Object.fromEntries(
langs.map((l) => [l, `${baseUrl}/${l}${path}`])
),
},
}))
);
}