silverwolf-x's picture
download
raw
400 Bytes
import { NextResponse } from 'next/server'
export const config = {
matcher: [
'/',
'/with-middleware/:path*',
'/another-middleware/:path*',
// the below is testing special characters don't break the build
'/_sites/:path((?![^/]*\\.json$)[^/]+$)',
],
}
export default (req) => {
const res = NextResponse.next()
res.headers.set('X-From-Middleware', 'true')
return res
}

Xet Storage Details

Size:
400 Bytes
·
Xet hash:
b797a43c51d5e18e8da0d1ba707caf21a364e08de907ec0a32e10e620cee46ae

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