Skip to content

Commit

Permalink
fix: provide correct folder path for sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
babslgam committed Dec 12, 2024
1 parent c1680fe commit 9b35a9c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<MetadataRoute.Sitemap> {
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<string> = [];

Expand Down

0 comments on commit 9b35a9c

Please sign in to comment.