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

Sitemap.xml Generation Error in nuxt-seo v2.0.0-rc.18 #296

Closed
hoythan opened this issue Aug 19, 2024 · 2 comments
Closed

Sitemap.xml Generation Error in nuxt-seo v2.0.0-rc.18 #296

hoythan opened this issue Aug 19, 2024 · 2 comments

Comments

@hoythan
Copy link

hoythan commented Aug 19, 2024

Describe the bug

In version 2.0.0-rc.18 of nuxt-seo, the sitemap.xml is generated incorrectly. This issue can be consistently reproduced in the production environment.

The generated URLs have the following incorrect format, and the content is empty:

/sitemap/en.xml
/sitemap/zh-CN.xml
/sitemap/zh-TW.xml
In version 2.0.0-rc.16, the generated URLs were in the correct format:

/en-sitemap.xml
/zh-CN-sitemap.xml
/zh-TW-sitemap.xml

Reproduction

No response

System / Nuxt Info

No response

@hoythan hoythan changed the title Issue: Sitemap.xml Generation Error in nuxt-seo v2.0.0-rc.18 Sitemap.xml Generation Error in nuxt-seo v2.0.0-rc.18 Aug 19, 2024
@harlan-zw
Copy link
Owner

Yes, the release notes this as a slightly breaking change, see nuxt-modules/sitemap#320.

So the new path is correct, if they're empty can you provide a minimal reproduction as this sounds like a bug

@harlan-zw
Copy link
Owner

Seems like there was a bug in the latest robots module, if you clear your lock file and update your dependencies it should fix the empty issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants