Files
web/middlewares/bookingFlow.ts
2024-07-03 10:56:04 +02:00

16 lines
420 B
TypeScript

import { NextResponse } from "next/server"
import { bookingFlow } from "@/constants/routes/hotelReservation"
import type { NextMiddleware } from "next/server"
import type { MiddlewareMatcher } from "@/types/middleware"
export const middleware: NextMiddleware = () => {
return NextResponse.next()
}
export const matcher: MiddlewareMatcher = (request) => {
return bookingFlow.includes(request.nextUrl.pathname)
}