refactor(SW-1273): move find my booking routes in order to import them directly into next config
This commit is contained in:
@@ -2,6 +2,7 @@ import * as Sentry from "@sentry/nextjs"
|
||||
import createJiti from "jiti"
|
||||
import { fileURLToPath } from "url"
|
||||
|
||||
import { findMyBooking } from "./constants/routes/findMyBooking.js"
|
||||
import { login, logout } from "./constants/routes/handleAuth.js"
|
||||
import { myPages } from "./constants/routes/myPages.js"
|
||||
|
||||
@@ -275,27 +276,27 @@ const nextConfig = {
|
||||
},
|
||||
// Find my booking
|
||||
{
|
||||
source: "/en/hotelreservation/get-booking",
|
||||
source: findMyBooking.en,
|
||||
destination: "/en/hotelreservation/get-booking",
|
||||
},
|
||||
{
|
||||
source: "/no/hotelreservation/get-booking",
|
||||
destination: "/no/hotelreservation/get-booking",
|
||||
},
|
||||
{
|
||||
source: "/da/hotelreservation/hent-booking",
|
||||
source: findMyBooking.da,
|
||||
destination: "/da/hotelreservation/get-booking",
|
||||
},
|
||||
{
|
||||
source: "/de/hotelreservation/mein-bereich",
|
||||
source: findMyBooking.de,
|
||||
destination: "/de/hotelreservation/get-booking",
|
||||
},
|
||||
{
|
||||
source: "/fi/hotelreservation/hae-varaus",
|
||||
source: findMyBooking.fi,
|
||||
destination: "/fi/hotelreservation/get-booking",
|
||||
},
|
||||
{
|
||||
source: "/sv/hotelreservation/hitta-bokning",
|
||||
source: findMyBooking.no,
|
||||
destination: "/no/hotelreservation/get-booking",
|
||||
},
|
||||
{
|
||||
source: findMyBooking.sv,
|
||||
destination: "/sv/hotelreservation/get-booking",
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user