Localized Sitemap Does Not Work #67813
Labels
bug
Issue was opened via the bug report template.
Internationalization (i18n)
Related to Internationalization with Next.js.
Link to the code that reproduces this issue
https://github.com/Barzi-Ahmed/my-app
To Reproduce
STORY:
![image](https://private-user-images.githubusercontent.com/135956133/349245859-a2dc8325-f356-4b43-b53e-9868b6e23102.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE1MDc2MDIsIm5iZiI6MTcyMTUwNzMwMiwicGF0aCI6Ii8xMzU5NTYxMzMvMzQ5MjQ1ODU5LWEyZGM4MzI1LWYzNTYtNGI0My1iNTNlLTk4NjhiNmUyMzEwMi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzIwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcyMFQyMDI4MjJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mZDA2YTEzY2MwNTNhN2ViM2UyYmM3NzA0NmI4MTQ2ODM1M2RiYjkwMjBlYjIxNzg5NjAzMTNjN2Y3OTA5YmMwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.ZHq_p1WlC4GsSTwJUj7t2NIEpIYQl4DJcKrYQY4kRjg)
When creating sitemap.ts and using this same code from docs, this is the result I get:
I have searched through GitHub issues and found #63764, and there it is mentioned that you should use Next 14.2, but I already use the latest version of Next.js (details below), and this means it is still not fixed.
Current vs. Expected behavior
Obviously the mentioned sitemap sample doesn't render correctly at all as a normal XML page.
Provide environment information
Which area(s) are affected? (Select all that apply)
Internationalization (i18n)
Which stage(s) are affected? (Select all that apply)
next dev (local), next build (local), next start (local), Vercel (Deployed), Other (Deployed)
Additional context
I use Chrome Version 126.0.6478.127 (Official Build) (64-bit)
The text was updated successfully, but these errors were encountered: