rsnext/packages
Jiachi Liu 09baadfd70
Remove auto appending xml extension to dynamic sitemap routes (#65507)
### What

Remove the auto appending `.xml` extension to the sitemap routes when
it's a dynamic route.


### Why

Previously we were adding `.xml` to `/[...paths/]sitemap` routes, but
the bad part is when you use it to generate multiple sitemaps with
`generateSitemaps` in format like `/[...paths/]sitemap.xml/[id]`, which
doesn't look good in url format and it can be inferred as xml with
content-type. Hence we don't need to add `.xml` in the url.

Before this change it could also result into the different url between
dev and prod:
dev: `/sitemap.xml/[id]`
prod: `/sitemap/[id].xml` 

Now it's going to be aligned as `/sitemap/[id]`. Users can add extension
flexiblely.

Closes NEXT-3357
2024-05-09 11:05:24 +02:00
..
create-next-app v14.3.0-canary.51 2024-05-08 23:22:49 +00:00
eslint-config-next v14.3.0-canary.51 2024-05-08 23:22:49 +00:00
eslint-plugin-next v14.3.0-canary.51 2024-05-08 23:22:49 +00:00
font v14.3.0-canary.51 2024-05-08 23:22:49 +00:00
next Remove auto appending xml extension to dynamic sitemap routes (#65507) 2024-05-09 11:05:24 +02:00
next-bundle-analyzer v14.3.0-canary.51 2024-05-08 23:22:49 +00:00
next-codemod v14.3.0-canary.51 2024-05-08 23:22:49 +00:00
next-env v14.3.0-canary.51 2024-05-08 23:22:49 +00:00
next-mdx v14.3.0-canary.51 2024-05-08 23:22:49 +00:00
next-plugin-storybook v14.3.0-canary.51 2024-05-08 23:22:49 +00:00
next-polyfill-module v14.3.0-canary.51 2024-05-08 23:22:49 +00:00
next-polyfill-nomodule v14.3.0-canary.51 2024-05-08 23:22:49 +00:00
next-swc Remove auto appending xml extension to dynamic sitemap routes (#65507) 2024-05-09 11:05:24 +02:00
react-refresh-utils v14.3.0-canary.51 2024-05-08 23:22:49 +00:00
third-parties v14.3.0-canary.51 2024-05-08 23:22:49 +00:00