From a6eb50a555727d15373eeab029313fc1e8ab1e12 Mon Sep 17 00:00:00 2001 From: Adrian Bonpin Date: Mon, 27 Apr 2026 16:07:39 +0800 Subject: [PATCH] fix: use createdAt instead of updatedAt for hardware in sitemap --- app/sitemap.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/sitemap.ts b/app/sitemap.ts index 4359b81..58f7e41 100644 --- a/app/sitemap.ts +++ b/app/sitemap.ts @@ -7,7 +7,7 @@ const BASE_URL = "https://deckyvault.xyz" export default async function sitemap(): Promise { const [allGames, allDevices] = await Promise.all([ db.select({ id: games.id, updatedAt: games.updatedAt }).from(games), - db.select({ slug: hardware.slug, updatedAt: hardware.updatedAt }).from(hardware), + db.select({ slug: hardware.slug, createdAt: hardware.createdAt }).from(hardware), ]) const gameEntries: MetadataRoute.Sitemap = allGames.map((game) => ({ @@ -19,7 +19,7 @@ export default async function sitemap(): Promise { const deviceEntries: MetadataRoute.Sitemap = allDevices.map((device) => ({ url: `${BASE_URL}/devices/${device.slug}`, - lastModified: device.updatedAt, + lastModified: device.createdAt, changeFrequency: "monthly", priority: 0.6, }))