silverwolf-x's picture
download
raw
346 Bytes
// Ensure that https://github.com/vercel/next.js/issues/56286 is fixed.
import { NextResponse } from 'next/server'
export async function middleware(req) {
if (req.nextUrl.pathname.includes('rewrite-to-static-first')) {
req.nextUrl.pathname = '/static/first'
return NextResponse.rewrite(req.nextUrl)
}
return NextResponse.next()
}

Xet Storage Details

Size:
346 Bytes
·
Xet hash:
defea65df827b3ec21f51d7d8dcd3972029a18241ea89620b82bae43b925945f

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