import type { NextRequest } from 'next/server' ; import { first } from '@lib/utils' ; import datadome from '@lib/datadome' ; import demoMiddleware from '@lib/demo-middleware' ; async function handler ( req ) { return datadome ( req ) ; } export const middleware = first ( demoMiddleware , handler ) ;