feat: populate session storage on submit

This commit is contained in:
Christel Westerberg
2024-10-17 16:07:09 +02:00
parent 5bddaff04d
commit e4617d84ba
5 changed files with 35 additions and 100 deletions
-56
View File
@@ -104,62 +104,6 @@ const nextConfig = {
// ],
// permanent: false,
// },
{
source: "/:lang/hotelreservation/(breakfast|details|payment)",
destination: "/:lang/hotelreservation/select-bed",
missing: [
{
key: "bedType",
type: "query",
value: undefined,
},
],
permanent: false,
},
{
source: "/:lang/hotelreservation/(details|payment)",
destination: "/:lang/hotelreservation/breakfast",
missing: [
{
key: "breakfast",
type: "query",
value: undefined,
},
],
permanent: false,
},
{
source: "/:lang/hotelreservation/payment",
destination: "/:lang/hotelreservation/details",
missing: [
{
key: "countryCode",
type: "query",
value: undefined,
},
{
key: "email",
type: "query",
value: undefined,
},
{
key: "firstname",
type: "query",
value: undefined,
},
{
key: "lastname",
type: "query",
value: undefined,
},
{
key: "phoneNumber",
type: "query",
value: undefined,
},
],
permanent: false,
},
]
},