feat: change rewrite in next config

This commit is contained in:
Fredrik Thorsson
2024-07-03 10:48:52 +02:00
parent 37f4713715
commit 2994706f3c

View File

@@ -102,11 +102,26 @@ const nextConfig = {
source: `${myPages.sv}/:path*`,
destination: `/sv/my-pages/:path*`,
},
{ source: hotelReservation.da, destination: "/da/hotelreservation" },
{ source: hotelReservation.de, destination: "/de/hotelreservation" },
{ source: hotelReservation.fi, destination: "/fi/hotelreservation" },
{ source: hotelReservation.no, destination: "/no/hotelreservation" },
{ source: hotelReservation.sv, destination: "/sv/hotelreservation" },
{
source: `${hotelReservation.da}/:path*`,
destination: "/da/hotelreservation/:path*",
},
{
source: `${hotelReservation.de}/:path*`,
destination: "/de/hotelreservation/:path*",
},
{
source: `${hotelReservation.fi}/:path*`,
destination: "/fi/hotelreservation/:path*",
},
{
source: `${hotelReservation.no}/:path*`,
destination: "/no/hotelreservation/:path*",
},
{
source: `${hotelReservation.sv}/:path*`,
destination: "/sv/hotelreservation/:path*",
},
],
}
},