Commit 12c211bd authored by JJ Kasper's avatar JJ Kasper Committed by Joe Haddad

Add config for diffing fetched pages (#8492)

parent 1dbacda5
...@@ -24,6 +24,10 @@ const clientGlobs = [ ...@@ -24,6 +24,10 @@ const clientGlobs = [
{ {
name: 'Client Build Manifests', name: 'Client Build Manifests',
globs: ['.next/static/*/_buildManifest*'] globs: ['.next/static/*/_buildManifest*']
},
{
name: 'Rendered Page Sizes',
globs: ['fetched-pages/**/*.html']
} }
] ]
...@@ -114,9 +118,10 @@ module.exports = { ...@@ -114,9 +118,10 @@ module.exports = {
} }
], ],
filesToTrack: clientGlobs, filesToTrack: clientGlobs,
// will be output to fetched-pages/${pathname}.html
pagesToFetch: [ pagesToFetch: [
'http://localhost:$PORT/',
'http://localhost:$PORT/link', 'http://localhost:$PORT/link',
'http://localhost:$PORT/index',
'http://localhost:$PORT/withRouter' 'http://localhost:$PORT/withRouter'
] ]
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment