silverwolf-x's picture
download
raw
312 Bytes
import { notFound, redirect } from 'next/navigation'
import { NextRequest } from 'next/server'
export default function middleware(req: NextRequest) {
if (req.nextUrl.pathname === '/middleware/not-found') {
notFound()
} else if (req.nextUrl.pathname === '/middleware/redirect') {
redirect('/')
}
}

Xet Storage Details

Size:
312 Bytes
·
Xet hash:
c3024b40f2eb6754e71c0605383dc35e21c4a65b46bb2a856f2c2bb09f49404c

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.