chore(LOY-445): remove ENABLE_DTMC flag & add documentation * chore(LOY-445): remove ENABLE_DTMC flag & add documentation Approved-by: Matilda Landström
14 lines
376 B
TypeScript
14 lines
376 B
TypeScript
import { type NextMiddleware, NextResponse } from "next/server"
|
|
|
|
import { handleDTMC } from "@/constants/routes/dtmc"
|
|
|
|
import type { MiddlewareMatcher } from "@/types/middleware"
|
|
|
|
export const middleware: NextMiddleware = () => {
|
|
return NextResponse.next()
|
|
}
|
|
|
|
export const matcher: MiddlewareMatcher = (request) => {
|
|
return handleDTMC.includes(request.nextUrl.pathname)
|
|
}
|