Skip to content

Commit 17c5797

Browse files
author
Raghav Gupta
committed
Increase sitemap priority for Gen2 URLs
1 parent d711343 commit 17c5797

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tasks/generate-sitemap.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ const SITEMAP_DOMAIN = process.env.SITEMAP_DOMAIN
1515
const ROOT_PATH = './client/www/next-build';
1616

1717
const formatDate = (date) => date.toISOString();
18-
const getPriority = () => 0.5;
18+
const getPriority = (urlPath) => {
19+
// significance to search engine crawlers, potentially improving SEO ranking
20+
//More prirority for gen2 urls to show more importance to the crawlers.
21+
return urlPath.includes("gen1") ? 0.5 : 1.0;
22+
};
1923

2024
const PLATFORMS = [
2125
'android',

0 commit comments

Comments
 (0)