silverwolf-x's picture
download
raw
251 Bytes
import { NextRequest, NextResponse } from 'next/server'
export default function proxy(request: NextRequest) {
if (request.nextUrl.pathname === '/foo') {
return NextResponse.redirect(new URL('/', request.url))
}
return NextResponse.next()
}

Xet Storage Details

Size:
251 Bytes
·
Xet hash:
be9f2908c3753a17e6abed9efb6122ee9f21500afa7ff7cb914f5c68dd2c4fb5

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