profile page ui complated

This commit is contained in:
nabijonovdavronbek619@gmail.com
2026-04-06 17:55:54 +05:00
parent 27b1510842
commit db0fad7e00
18 changed files with 976 additions and 85 deletions

View File

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