summaryrefslogtreecommitdiff
path: root/src/pages/sitemap/searchkey.xml.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/sitemap/searchkey.xml.js')
-rw-r--r--src/pages/sitemap/searchkey.xml.js6
1 files changed, 3 insertions, 3 deletions
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();