chore(SW-3381) Moved LoginButton to design system * chore(SW-3381) Moved LoginButton to design system Approved-by: Anton Gunnarsson
14 lines
403 B
TypeScript
14 lines
403 B
TypeScript
import { type NextMiddleware, NextResponse } from "next/server"
|
|
|
|
import { handleAuth } from "@scandic-hotels/common/constants/routes/handleAuth"
|
|
|
|
import type { MiddlewareMatcher } from "@/types/middleware"
|
|
|
|
export const middleware: NextMiddleware = () => {
|
|
return NextResponse.next()
|
|
}
|
|
|
|
export const matcher: MiddlewareMatcher = (request) => {
|
|
return handleAuth.includes(request.nextUrl.pathname)
|
|
}
|