Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next App Directory generateStaticParams static pages not included in sitemap #788

Open
noahflk opened this issue Mar 21, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@noahflk
Copy link

noahflk commented Mar 21, 2024

Describe the bug
I understand why dynamic pages are not part of the sitemap. But static pages are known at build time and could be added to the sitemap. Unfortunately, this is not happening at the moment.

To Reproduce

  • Add the generateStaticParams function to your Server Side Component in Next.js v14.
  • Export multiple static paths from said function
  • Build the site, and observe the created sitemap
@noahflk noahflk added the bug Something isn't working label Mar 21, 2024
@adelindanaila
Copy link

same issue here

@VictorNIvanov
Copy link

Same here...

I also noticed that the following happens:

  • [lang]/blog/[blogpost] - get added to the sitemap (generateStaticParams() used)
  • [lang]/products/[category]/ - gets added to the sitemap (generateStaticParams() used)
  • [lang]/products/[category]/[product_name] - all of the actual product pages are missing (generateStaticParams() used as well but not working in this case)

In my case it seems like its being limited at a "depth" of 3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants