From 99c0698538001bd593a9a275b70f17cc4d1cf7d4 Mon Sep 17 00:00:00 2001 From: Gregor Zurowski Date: Mon, 27 Jul 2026 11:33:06 +0200 Subject: [PATCH] Apply types to sitemap function for both Next 15 and 16 --- app/sitemap.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/sitemap.ts b/app/sitemap.ts index 3d6ef82c3..b28d02060 100644 --- a/app/sitemap.ts +++ b/app/sitemap.ts @@ -92,9 +92,9 @@ export async function generateSitemaps() { export default async function sitemap({ id, }: { - id: number | string; + id: Promise | string; }): Promise { - const sitemapId = Number(id); + const sitemapId = Number(await id); if (sitemapId === 0) return STATIC_ROUTES; if (sitemapId === 1) return buildSlugSitemap(