From 95e64c0702badb2a0a4f82807c8bd1b55d390fa2 Mon Sep 17 00:00:00 2001 From: "crawlproof[bot]" <286981042+crawlproof[bot]@users.noreply.github.com> Date: Tue, 9 Jun 2026 07:36:08 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20sitemap.future=5Fdates:=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F=20Sitemap=20contains=20future=20dates=20for=20`lastmo?= =?UTF-8?q?d`.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/sitemap.ts | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/app/sitemap.ts b/app/sitemap.ts index f7c780c9..03b979be 100644 --- a/app/sitemap.ts +++ b/app/sitemap.ts @@ -9,19 +9,18 @@ export const revalidate = 3600; export default async function sitemap(): Promise { const base = env.siteUrl.replace(/\/$/, ""); - const now = new Date(); const allPosts = await loadAllPosts(); const staticEntries: MetadataRoute.Sitemap = [ - { url: `${base}/`, lastModified: now, changeFrequency: "weekly", priority: 1.0 }, - { url: `${base}/pricing`, lastModified: now, changeFrequency: "monthly", priority: 0.9 }, - { url: `${base}/hire`, lastModified: now, changeFrequency: "monthly", priority: 0.9 }, - { url: `${base}/get-guide`, lastModified: now, changeFrequency: "monthly", priority: 0.9 }, - { url: `${base}/about`, lastModified: now, changeFrequency: "monthly", priority: 0.7 }, - { url: `${base}/blog`, lastModified: now, changeFrequency: "weekly", priority: 0.8 }, - { url: `${base}/recent`, lastModified: now, changeFrequency: "hourly", priority: 0.9 }, - { url: `${base}/bot`, lastModified: now, changeFrequency: "monthly", priority: 0.5 }, - { url: `${base}/privacy`, lastModified: now, changeFrequency: "yearly", priority: 0.3 }, - { url: `${base}/terms`, lastModified: now, changeFrequency: "yearly", priority: 0.3 }, + { url: `${base}/`, changeFrequency: "weekly", priority: 1.0 }, + { url: `${base}/pricing`, changeFrequency: "monthly", priority: 0.9 }, + { url: `${base}/hire`, changeFrequency: "monthly", priority: 0.9 }, + { url: `${base}/get-guide`, changeFrequency: "monthly", priority: 0.9 }, + { url: `${base}/about`, changeFrequency: "monthly", priority: 0.7 }, + { url: `${base}/blog`, changeFrequency: "weekly", priority: 0.8 }, + { url: `${base}/recent`, changeFrequency: "hourly", priority: 0.9 }, + { url: `${base}/bot`, changeFrequency: "monthly", priority: 0.5 }, + { url: `${base}/privacy`, changeFrequency: "yearly", priority: 0.3 }, + { url: `${base}/terms`, changeFrequency: "yearly", priority: 0.3 }, ...buildSitemapBlogEntries({ posts: allPosts.map((p) => ({ slug: p.slug, @@ -33,7 +32,6 @@ export default async function sitemap(): Promise { // Paginated /recent pages so crawlers can walk them. ...[2, 3, 4, 5].map((page) => ({ url: `${base}/recent?page=${page}`, - lastModified: now, changeFrequency: "hourly" as const, priority: 0.7, })),