feat: setup database-driven admin user management
This commit is contained in:
@@ -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}`])
|
||||
),
|
||||
},
|
||||
}))
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user