App router dynamic route is catching sitemap.xml
Unanswered
Sun bear posted this in #help-forum
Sun bearOP
Hey y'all,
I have a
Any idea on how to prevent this?
I have a
contact/[name]/[id]/page.tsx but if I add contact/sitemap.ts and try to access the sitemap.xml after building it will get caught by the dynamic router.Any idea on how to prevent this?
2 Replies
Sun bearOP
cc my two friends @riský and @Jboncz
Sun bearOP
can't figure out best way to do a rewrite for it either