This commit is contained in:
2026-04-15 11:19:45 +00:00
commit acb79b2db7
183 changed files with 22067 additions and 0 deletions

38
next-sitemap.config.js Normal file
View File

@@ -0,0 +1,38 @@
/** @type {import('next-sitemap').IConfig} */
const siteUrl = "https://getgreen.uz";
const locales = ["uz", "ru"];
module.exports = {
siteUrl,
generateRobotsTxt: true,
changefreq: "daily",
priority: 0.7,
exclude: [],
alternateRefs: locales.map((locale) => ({
href: `${siteUrl}/${locale}`,
hreflang: locale === 'uz' ? 'uz_UZ' : 'ru_RU',
})),
additionalPaths: async (config) => {
const paths = ['/about', '/services', '/useful', '/category'];
const entries = [];
for (const path of paths) {
for (const locale of locales) {
entries.push({
loc: `${siteUrl}/${locale}${path}`,
changefreq: 'daily',
priority: 0.7,
alternateRefs: locales.map((altLocale) => ({
href: `${siteUrl}/${altLocale}${path}`,
hreflang: altLocale === 'uz' ? 'uz_UZ' : 'ru_RU',
})),
});
}
}
return entries;
},
};