summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMqdd <ahmadmiqdad27@gmail.com>2026-02-18 15:51:13 +0700
committerMqdd <ahmadmiqdad27@gmail.com>2026-02-18 15:51:13 +0700
commit3e67e48da0ea88f011f1d7d7390758ab2ad40339 (patch)
tree6c7bf5e3347c9f25bb294cb3c5fee0463ec803ef
parent9118c586d2c4fdab43c11409db91cf7b51839261 (diff)
<Miqdad> cr renca
-rw-r--r--src/lib/category/components/Breadcrumb.jsx2
-rw-r--r--src/pages/sitemap/searchkey.xml.js6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/category/components/Breadcrumb.jsx b/src/lib/category/components/Breadcrumb.jsx
index fa2846e4..29bc9c0a 100644
--- a/src/lib/category/components/Breadcrumb.jsx
+++ b/src/lib/category/components/Breadcrumb.jsx
@@ -11,7 +11,7 @@ import React from 'react';
import { useQuery } from 'react-query';
import useDevice from '@/core/hooks/useDevice';
-const Breadcrumb = ({ categoryId, shortDesc }) => {
+const Breadcrumb = ({ categoryId, shortDesc, currentLabel }) => {
const breadcrumbs = useQuery(
['category-breadcrumbs', categoryId],
async () =>
diff --git a/src/pages/sitemap/searchkey.xml.js b/src/pages/sitemap/searchkey.xml.js
index e4ca2434..b34baa8b 100644
--- a/src/pages/sitemap/searchkey.xml.js
+++ b/src/pages/sitemap/searchkey.xml.js
@@ -5,16 +5,16 @@ import axios from 'axios';
export async function getServerSideProps({ res }) {
const baseUrl = process.env.SELF_HOST + '/sitemap/searchkey';
- const limit = 1000;
+ const limit = 5000;
const keywords = await axios(
- `${process.env.NEXT_PUBLIC_SELF_HOST}/api/shop/searchkey?limit=${limit}&all=1`
+ `${process.env.NEXT_PUBLIC_SELF_HOST}/api/shop/searchkey?limit=${limit}&all=1`,
);
// console.log(keywords);
const pageCount = Math.ceil(keywords.data.response.numFound / limit);
const pages = Array.from({ length: pageCount }, (_, i) => i + 1);
const sitemapIndex = create('sitemapindex', { encoding: 'UTF-8' }).att(
'xmlns',
- 'http://www.sitemaps.org/schemas/sitemap/0.9'
+ 'http://www.sitemaps.org/schemas/sitemap/0.9',
);
const date = new Date();