4 lines
369 B
TypeScript
4 lines
369 B
TypeScript
import { NextResponse, type NextRequest } from 'next/server';
|
|
export function proxy(request: NextRequest) { if(request.nextUrl.pathname.startsWith('/api/videos') || request.nextUrl.pathname.endsWith('/showcase')) return new NextResponse('Not found',{status:404}); return NextResponse.next(); }
|
|
export const config={matcher:['/api/videos/:path*','/:devRoot/showcase']};
|