import { NextResponse } from "next/server" import { hotelReservation } from "@/constants/routes/hotelReservation" import { findLang } from "@/utils/languages" import type { NextMiddleware } from "next/server" import type { MiddlewareMatcher } from "@/types/middleware" export const middleware: NextMiddleware = () => { return NextResponse.next() } export const matcher: MiddlewareMatcher = (request) => { const lang = findLang(request.nextUrl.pathname)! return request.nextUrl.pathname.startsWith(hotelReservation[lang]) }