Skip to content

Commit

Permalink
Add edge ssr to pr stats (#39621)
Browse files Browse the repository at this point in the history
Monitoring edge-ssr bundle size in PR stats

change the react version in stats-app to 18
checking size of edge ssr page
  • Loading branch information
huozhi committed Aug 15, 2022
1 parent 8f027c2 commit 27e0b12
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/.stats-app/package.json
@@ -1,11 +1,10 @@
{
"name": "stats-app",
"version": "1.0.0",
"main": "index.js",
"private": true,
"license": "MIT",
"dependencies": {
"next": "latest",
"react": "17.0.2",
"react-dom": "17.0.2"
"react": "18.2.0",
"react-dom": "18.2.0"
}
}
13 changes: 13 additions & 0 deletions test/.stats-app/pages/edge-ssr.js
@@ -0,0 +1,13 @@
export default function page() {
return 'edge-ssr'
}

export async function getServerSideProps() {
return {
props: {},
}
}

export const config = {
runtime: 'experimental-edge',
}
4 changes: 4 additions & 0 deletions test/.stats-app/stats-config.js
Expand Up @@ -31,6 +31,10 @@ const clientGlobs = [
name: 'Rendered Page Sizes',
globs: ['fetched-pages/**/*.html'],
},
{
name: 'Edge SSR Page bundle Size',
globs: ['.next/server/pages/edge-ssr.js'],
},
{
name: 'Middleware size',
globs: [
Expand Down

0 comments on commit 27e0b12

Please sign in to comment.