silverwolf-x's picture
download
raw
287 Bytes
import { NextResponse } from 'next/server'
export function middleware(request) {
if (request.nextUrl.pathname.startsWith('/middleware-redirect')) {
return NextResponse.redirect(new URL('/action-after-redirect', request.url))
}
}
export const matcher = ['/middleware-redirect']

Xet Storage Details

Size:
287 Bytes
·
Xet hash:
827d909dc8cc4daababc6a2454a147d07949542d7d40e576ec6c59f4c360b806

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