login register comlated

This commit is contained in:
nabijonovdavronbek619@gmail.com
2026-04-01 18:26:25 +05:00
parent 9414ce0c8a
commit 7b76901f5f
23 changed files with 576 additions and 102 deletions

29
src/app/sitemap.ts Normal file
View File

@@ -0,0 +1,29 @@
import { MetadataRoute } from 'next';
const SITE_URL = process.env.NEXT_PUBLIC_SITE_URL ?? 'https://antiplagiat.uz';
const LOCALES = ['uz', 'ru', 'en'] as const;
// Add your static page slugs here
const STATIC_ROUTES = ['', '/about', '/history', '/contact'];
export default function sitemap(): MetadataRoute.Sitemap {
const entries: MetadataRoute.Sitemap = [];
for (const locale of LOCALES) {
for (const route of STATIC_ROUTES) {
entries.push({
url: `${SITE_URL}/${locale}${route}`,
lastModified: new Date(),
changeFrequency: route === '' ? 'daily' : 'weekly',
priority: route === '' ? 1.0 : 0.8,
alternates: {
languages: Object.fromEntries(
LOCALES.map((l) => [l, `${SITE_URL}/${l}${route}`]),
),
},
});
}
}
return entries;
}