feat/SW-415: Added select-rate to hotelReservation

This commit is contained in:
Pontus Dreij
2024-10-08 15:51:07 +02:00
parent a218b3685f
commit 94a1aa625a
5 changed files with 17 additions and 2 deletions
+1
View File
@@ -17,6 +17,7 @@ import { findLang } from "@/utils/languages"
export const middleware: NextMiddleware = async (request, event) => {
const headers = getDefaultRequestHeaders(request)
const lang = findLang(request.nextUrl.pathname)
if (!lang) {
// Lang is required for all our middleware.
// Without it we shortcircuit early.