From 17c57970be361297f5183125e2a20502ae6ee845 Mon Sep 17 00:00:00 2001 From: Raghav Gupta Date: Wed, 13 Nov 2024 13:12:24 -0800 Subject: [PATCH] Increase sitemap priority for Gen2 URLs --- tasks/generate-sitemap.mjs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tasks/generate-sitemap.mjs b/tasks/generate-sitemap.mjs index ea37e7f9840..4a6a85823af 100644 --- a/tasks/generate-sitemap.mjs +++ b/tasks/generate-sitemap.mjs @@ -15,7 +15,11 @@ const SITEMAP_DOMAIN = process.env.SITEMAP_DOMAIN const ROOT_PATH = './client/www/next-build'; const formatDate = (date) => date.toISOString(); -const getPriority = () => 0.5; +const getPriority = (urlPath) => { + // significance to search engine crawlers, potentially improving SEO ranking + //More prirority for gen2 urls to show more importance to the crawlers. + return urlPath.includes("gen1") ? 0.5 : 1.0; +}; const PLATFORMS = [ 'android',