Add middleware size stats (#37519)

This will allow us to track base middleware size in our PR stats.
This commit is contained in:
JJ Kasper 2022-06-07 12:05:48 -05:00 committed by GitHub
parent 3026fa5864
commit 5d0c3edda3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View file

@ -0,0 +1,5 @@
import { NextResponse } from 'next/server'
export default async function middleware() {
return NextResponse.next()
}

View file

@ -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 = [