/sitemap/[slug] and sitemap.ts conflicts in Nextjs15 (app router) #74055
Unanswered
timkinsman
asked this question in
Help
Replies: 1 comment 1 reply
-
I'm experiencing the same issue. I'm using Next.js |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Hey, when migrating from next14 to next15 (both app router). It seems that having a page for
app/sitemap/[slug]/page.tsx
(a HTML sitemap) andapp/sitemap.ts
(a XML sitemap) causes errors. Is this intentional? I'm aware that a related change was posted in the blog.However, I can't seem to wrap my head around it, is the above scenario just not achievable now?
Additional information
Example
https://github.com/timkinsman/nextjs15-bugrepo-sitemap-conflict
Beta Was this translation helpful? Give feedback.
All reactions