Add middleware size stats (#37519)
This will allow us to track base middleware size in our PR stats.
This commit is contained in:
parent
3026fa5864
commit
5d0c3edda3
2 changed files with 9 additions and 0 deletions
5
test/.stats-app/middleware.js
Normal file
5
test/.stats-app/middleware.js
Normal file
|
@ -0,0 +1,5 @@
|
|||
import { NextResponse } from 'next/server'
|
||||
|
||||
export default async function middleware() {
|
||||
return NextResponse.next()
|
||||
}
|
|
@ -31,6 +31,10 @@ const clientGlobs = [
|
|||
name: 'Rendered Page Sizes',
|
||||
globs: ['fetched-pages/**/*.html'],
|
||||
},
|
||||
{
|
||||
name: 'Middleware size',
|
||||
globs: ['.next/server/middleware*', '.next/server/edge-runtime-webpack.js'],
|
||||
},
|
||||
]
|
||||
|
||||
const renames = [
|
||||
|
|
Loading…
Reference in a new issue