summaryrefslogtreecommitdiff
path: root/src/pages/sitemap
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-09-23 09:22:29 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-09-23 09:22:29 +0700
commitc13bb5c6f78032695b24cf8a6c23942eb465c6d5 (patch)
treee48c1ab39a61fd5702f578fbfdb7a7375cc1ce43 /src/pages/sitemap
parent870bede9df9920b23f2e5cb771ff5ae6448e3ac7 (diff)
parent4bd29979c34c1ec3b31dd384829b008eb726769c (diff)
Merge branch 'Feature/new-register' into Feature/switch-account
Diffstat (limited to 'src/pages/sitemap')
-rw-r--r--src/pages/sitemap/brands.xml.js4
-rw-r--r--src/pages/sitemap/products/[page].js2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/pages/sitemap/brands.xml.js b/src/pages/sitemap/brands.xml.js
index c85c40e9..65a84e97 100644
--- a/src/pages/sitemap/brands.xml.js
+++ b/src/pages/sitemap/brands.xml.js
@@ -15,8 +15,8 @@ export async function getServerSideProps({ res }) {
const url = sitemap.ele('url')
url.ele('loc', createSlug(baseUrl, brand.name, brand.id))
url.ele('lastmod', date.toISOString().slice(0, 10))
- url.ele('changefreq', 'weekly')
- url.ele('priority', '0.6')
+ url.ele('changefreq', 'daily')
+ url.ele('priority', '1.0')
})
res.setHeader('Content-Type', 'text/xml')
diff --git a/src/pages/sitemap/products/[page].js b/src/pages/sitemap/products/[page].js
index 2f9c3198..e39755d6 100644
--- a/src/pages/sitemap/products/[page].js
+++ b/src/pages/sitemap/products/[page].js
@@ -19,7 +19,7 @@ export async function getServerSideProps({ query, res }) {
const url = sitemap.ele('url')
url.ele('loc', createSlug(baseUrl, product.name, product.id))
url.ele('lastmod', date.toISOString().slice(0, 10))
- url.ele('changefreq', 'weekly')
+ url.ele('changefreq', 'daily')
url.ele('priority', '0.8')
})