feat/SW-550 sitemap route

* feat(SW-550): Added rewrites to handle sitemap paths

* feat(SW-550): Added sitemap-index generation

* feat(SW-550): Added sitemap xml file generation

* feat(SW-550): Added feature flag 'HIDE_FOR_NEXT_RELEASE' to sitemap routes


Approved-by: Linus Flood
This commit is contained in:
Erik Tiekstra
2025-03-17 07:17:08 +00:00
parent f0b245bdfe
commit ca93046aad
6 changed files with 96 additions and 6 deletions

View File

@@ -308,6 +308,14 @@ const nextConfig = {
source: findMyBooking.sv,
destination: "/sv/hotelreservation/get-booking",
},
{
source: `/sitemap-:id(\\d{1,}).xml`,
destination: `/sitemap/:id`,
},
{
source: `/sitemap-index.xml`,
destination: `/sitemap`,
},
],
}
},