From 9b35a9c13bcfa32190d220c3722a23994936d5eb Mon Sep 17 00:00:00 2001 From: Barbara Krautgartner Date: Thu, 12 Dec 2024 14:22:19 +0000 Subject: [PATCH] fix: provide correct folder path for sitemap --- app/sitemap.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/sitemap.ts b/app/sitemap.ts index dee8144..76be2b7 100644 --- a/app/sitemap.ts +++ b/app/sitemap.ts @@ -17,7 +17,9 @@ const baseUrl = env.NEXT_PUBLIC_APP_BASE_URL; * @see https://nextjs.org/docs/app/api-reference/functions/generate-sitemaps */ export default async function sitemap(): Promise { - const paths = await glob("./**/page.tsx", { cwd: join(process.cwd(), "app", "[locale]") }); + const paths = await glob("./**/page.tsx", { + cwd: join(process.cwd(), "app", "(app)", "[locale]"), + }); const routes: Array = [];