-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
@astrojs/sitemap 1.3.0 no longer builds dynamic routes into sitemap #7015
Comments
Actually it makes my project to completely fail the build:
If I remove the Rolling back to sitemap v1.2.2 does not help as long as Astro stays at v2.4.2. Worked fine with Astro v2.3.1 and sitemap v1.2.2 before upd: Oh, it's withastro/compiler#786 strikes back |
What version of
astro
are you using?2.4.2
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
npm
What operating system are you using?
Mac
What browser are you using?
Safari
Describe the Bug
Upgrading
@astrojs/sitemap
from 1.2.2 to 1.3.0 drops all dynamic routes that had previously appeared in my sitemaps. Previously any routes defined bygetStaticPaths()
would appear as full URLs insitemap-0.xml
, and now they’re gone.If I followed #6534 correctly, there shouldn’t be any change in functionality for non-SSR sites or any required config updates.
You can observe this in the blog starter without making any changes:
Pin the sitemap package at
1.2.2
, install and build and the blog post pages will appear as expected:Link to Minimal Reproducible Example
https://stackblitz.com/github/withastro/astro/tree/latest/examples/blog?file=README.md
Participation
The text was updated successfully, but these errors were encountered: