import { NextRequest , NextResponse } from 'next/server' ; /**
 * Demo setup wrapper
 */ export default function demoMiddleware ( req ) { const { pathname } = req . nextUrl ; if ( pathname === '/omit' ) return NextResponse . next ( ) ; if ( pathname === '/blocked' ) { req . headers . set ( 'user-agent' , 'BLOCKUA' ) ; } }