-
Notifications
You must be signed in to change notification settings - Fork 27.6k
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
Can't create /sitemap
route in canary
#71119
Comments
@darthmaim I think that maybe you loss the Generating multiple sitemaps 1While a single sitemap will work for most applications. For large web applications, you may need to split a sitemap into multiple files. There are two ways you can create multiple sitemaps:
For example, to split a sitemap using generateSitemaps, return an array of objects with the sitemap id. Then, use the id to generate the unique sitemaps. Footnotes |
I know about those features (and linked to it in my issue description). But I don't want to use any of the Next.js sitemap features, I just want to have a normal route at |
You are right, sorry that I provide you the wrong answer. |
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Link to the code that reproduces this issue
https://github.com/darthmaim-reproductions/vercel-next.js-71119
To Reproduce
npm run dev
Current vs. Expected behavior
Currently it is not possible to create a /sitemap route in the latest canary versions, even though I am not using any features from https://nextjs.org/docs/app/api-reference/file-conventions/metadata/sitemap (like
sitemap.ts
/generateSitemaps
/...).This should just be a normal route.
Renaming the route to anything else (for example
site-map
) makes the route work.Provide environment information
Operating System: Platform: linux Arch: x64 Version: #1 SMP Fri Mar 29 23:14:13 UTC 2024 Available memory (MB): 15953 Available CPU cores: 8 Binaries: Node: 22.5.1 npm: 10.8.2 Yarn: N/A pnpm: N/A Relevant Packages: next: 15.0.0-rc.0 // Latest available version is detected (15.0.0-rc.0). eslint-config-next: 15.0.0-rc.0 react: 19.0.0-rc-f994737d14-20240522 react-dom: 19.0.0-rc-f994737d14-20240522 typescript: 5.6.3 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Navigation
Which stage(s) are affected? (Select all that apply)
next dev (local), next build (local), next start (local)
Additional context
This was probably broken by #66477 (cc @huozhi) in https://github.com/vercel/next.js/releases/tag/v15.0.0-canary.24, because this is still working in https://github.com/vercel/next.js/releases/tag/v15.0.0-canary.23.
The text was updated successfully, but these errors were encountered: