iamvishnusankar / next-sitemap

Sitemap generator for next.js. Generate sitemap(s) and robots.txt for all static/pre-rendered/dynamic/server-side pages.
https://next-sitemap.iamvishnusankar.com
MIT License
3.17k stars 120 forks source link

Next-Sitemap not picking up static pages (/folder/page.tsx), but works for dynamic pages ([slug]/page.tsx) #829

Open dominik-sfl opened 2 weeks ago

dominik-sfl commented 2 weeks ago

Describe the bug Our sitemap seems to pick up all dynamic items, e.g. /some-category-folder/[slug]/page.tsx but our category pages are NOT included, e.g. /some-category-folder/page.tsx

To Reproduce Not sure how to reproduce this error.

Expected behavior Pick up all pages in our app directory.

Screenshots

Additional context

Not sure if it makes a difference, but we have a lot of our pages inside nextjs' invisible folders in round brackets, to just order things for us internally e.g. /app/.../(folder)/category/page.tsx

soufianeelc commented 1 week ago

Could you fix it ? I'm having the same issue