AbdulElahGwaith's picture
Upload folder using huggingface_hub
b91e262 verified
import { NextRequest, NextResponse } from 'next/server'
export default function middleware(request: NextRequest) {
if (request.nextUrl.pathname === '/about') {
return NextResponse.rewrite(new URL('/new-about', request.nextUrl))
}
}