Change type of GetServerSidePropsContext.req.cookies the be the same as NextApiRequest.cookies#21336
Merged
Merged
Conversation
…as NextApiRequest.cookies
Contributor
Author
|
@Timer can I please get a review on this PR? It is a one-line PR, and the integration tests introduced here shows that |
Member
Failing test suitesCommit: 0df9a0a test/integration/dist-dir/test/index.test.js
Expand output● distDir › should handle null/undefined distDir test/integration/production-build-dir/test/index.test.js
Expand output● Production Custom Build Directory › With basic usage › should render the page test/integration/cli/test/index.test.js
Expand output● CLI Usage › build › should warn when unknown argument provided |
Member
Stats from current PRDefault Server Mode (Increase detected
|
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| buildDuration | 10.2s | 10.3s | |
| nodeModulesSize | 73.3 MB | 73.3 MB |
Page Load Tests Overall increase ✓
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| / failed reqs | 0 | 0 | ✓ |
| / total time (seconds) | 2.06 | 2.002 | -0.06 |
| / avg req/sec | 1213.67 | 1249.01 | +35.34 |
| /error-in-render failed reqs | 0 | 0 | ✓ |
| /error-in-render total time (seconds) | 1.291 | 1.261 | -0.03 |
| /error-in-render avg req/sec | 1935.91 | 1982.92 | +47.01 |
Client Bundles (main, webpack, commons)
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| 677f882d2ed8..38ed.js gzip | 13.1 kB | 13.1 kB | ✓ |
| framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
| main-HASH.js gzip | 6.63 kB | 6.63 kB | ✓ |
| webpack-HASH.js gzip | 751 B | 751 B | ✓ |
| Overall change | 59.4 kB | 59.4 kB | ✓ |
Legacy Client Bundles (polyfills)
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| polyfills-HASH.js gzip | 31.3 kB | 31.3 kB | ✓ |
| Overall change | 31.3 kB | 31.3 kB | ✓ |
Client Pages
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| _app-2a09aa2..4a98.js gzip | 1.28 kB | 1.28 kB | ✓ |
| _error-8b758..aef6.js gzip | 3.46 kB | 3.46 kB | ✓ |
| hooks-c71ae4..70cd.js gzip | 887 B | 887 B | ✓ |
| index-bbee2f..528b.js gzip | 227 B | 227 B | ✓ |
| link-7faf09b..eba4.js gzip | 1.64 kB | 1.64 kB | ✓ |
| routerDirect..bf84.js gzip | 303 B | 303 B | ✓ |
| withRouter-a..5826.js gzip | 302 B | 302 B | ✓ |
| Overall change | 8.09 kB | 8.09 kB | ✓ |
Client Build Manifests
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| _buildManifest.js gzip | 321 B | 321 B | ✓ |
| Overall change | 321 B | 321 B | ✓ |
Rendered Page Sizes
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| index.html gzip | 614 B | 614 B | ✓ |
| link.html gzip | 620 B | 620 B | ✓ |
| withRouter.html gzip | 608 B | 608 B | ✓ |
| Overall change | 1.84 kB | 1.84 kB | ✓ |
Serverless Mode (Increase detected ⚠️ )
General Overall increase ⚠️
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| buildDuration | 12.2s | 12.1s | -92ms |
| nodeModulesSize | 73.3 MB | 73.3 MB |
Client Bundles (main, webpack, commons)
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| 677f882d2ed8..38ed.js gzip | 13.1 kB | 13.1 kB | ✓ |
| framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
| main-HASH.js gzip | 6.63 kB | 6.63 kB | ✓ |
| webpack-HASH.js gzip | 751 B | 751 B | ✓ |
| Overall change | 59.4 kB | 59.4 kB | ✓ |
Legacy Client Bundles (polyfills)
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| polyfills-HASH.js gzip | 31.3 kB | 31.3 kB | ✓ |
| Overall change | 31.3 kB | 31.3 kB | ✓ |
Client Pages
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| _app-2a09aa2..4a98.js gzip | 1.28 kB | 1.28 kB | ✓ |
| _error-8b758..aef6.js gzip | 3.46 kB | 3.46 kB | ✓ |
| hooks-c71ae4..70cd.js gzip | 887 B | 887 B | ✓ |
| index-bbee2f..528b.js gzip | 227 B | 227 B | ✓ |
| link-7faf09b..eba4.js gzip | 1.64 kB | 1.64 kB | ✓ |
| routerDirect..bf84.js gzip | 303 B | 303 B | ✓ |
| withRouter-a..5826.js gzip | 302 B | 302 B | ✓ |
| Overall change | 8.09 kB | 8.09 kB | ✓ |
Client Build Manifests
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| _buildManifest.js gzip | 321 B | 321 B | ✓ |
| Overall change | 321 B | 321 B | ✓ |
Serverless bundles Overall increase ⚠️
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| _error.js | 1 MB | 1 MB | |
| 404.html | 2.67 kB | 2.67 kB | ✓ |
| hooks.html | 1.92 kB | 1.92 kB | ✓ |
| index.js | 1 MB | 1 MB | |
| link.js | 1.06 MB | 1.06 MB | |
| routerDirect.js | 1.05 MB | 1.05 MB | |
| withRouter.js | 1.05 MB | 1.05 MB | |
| Overall change | 5.19 MB | 5.19 MB |
Webpack 5 Mode (Increase detected ⚠️ )
General Overall increase ⚠️
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| buildDuration | 12.5s | 12.5s | |
| nodeModulesSize | 73.3 MB | 73.3 MB |
Page Load Tests Overall increase ✓
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| / failed reqs | 0 | 0 | ✓ |
| / total time (seconds) | 2.053 | 2.024 | -0.03 |
| / avg req/sec | 1217.67 | 1235.19 | +17.52 |
| /error-in-render failed reqs | 0 | 0 | ✓ |
| /error-in-render total time (seconds) | 1.242 | 1.243 | 0 |
| /error-in-render avg req/sec | 2012.48 | 2011.36 |
Client Bundles (main, webpack, commons)
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| 597-c48889ef..1870.js gzip | 13 kB | 13 kB | ✓ |
| framework.HASH.js gzip | 39.3 kB | 39.3 kB | ✓ |
| main-HASH.js gzip | 6.58 kB | 6.58 kB | ✓ |
| webpack-HASH.js gzip | 954 B | 954 B | ✓ |
| Overall change | 59.8 kB | 59.8 kB | ✓ |
Legacy Client Bundles (polyfills)
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| polyfills-HASH.js gzip | 31.1 kB | 31.1 kB | ✓ |
| Overall change | 31.1 kB | 31.1 kB | ✓ |
Client Pages
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| _app-a5b2e84..33cf.js gzip | 1.26 kB | 1.26 kB | ✓ |
| _error-6f1f9..5577.js gzip | 3.38 kB | 3.38 kB | ✓ |
| hooks-725de8..0a15.js gzip | 904 B | 904 B | ✓ |
| index-939503..6e1c.js gzip | 232 B | 232 B | ✓ |
| link-e0cc871..fdbb.js gzip | 1.63 kB | 1.63 kB | ✓ |
| routerDirect..9360.js gzip | 308 B | 308 B | ✓ |
| withRouter-6..44ec.js gzip | 304 B | 304 B | ✓ |
| Overall change | 8.02 kB | 8.02 kB | ✓ |
Client Build Manifests
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| _buildManifest.js gzip | 299 B | 299 B | ✓ |
| Overall change | 299 B | 299 B | ✓ |
Rendered Page Sizes
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| index.html gzip | 588 B | 588 B | ✓ |
| link.html gzip | 593 B | 593 B | ✓ |
| withRouter.html gzip | 581 B | 581 B | ✓ |
| Overall change | 1.76 kB | 1.76 kB | ✓ |
Diffs
Diff for index.html
@@ -43,7 +43,7 @@
"props": { "pageProps": {} },
"page": "/",
"query": {},
- "buildId": "njMQ5RYx1bOVpm1jqDQxv",
+ "buildId": "2MmGRN5w676aakBTkgklm",
"isFallback": false,
"gip": true
}
@@ -77,11 +77,11 @@
async=""
></script>
<script
- src="/_next/static/njMQ5RYx1bOVpm1jqDQxv/_buildManifest.js"
+ src="/_next/static/2MmGRN5w676aakBTkgklm/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/njMQ5RYx1bOVpm1jqDQxv/_ssgManifest.js"
+ src="/_next/static/2MmGRN5w676aakBTkgklm/_ssgManifest.js"
async=""
></script>
</body>Diff for link.html
@@ -48,7 +48,7 @@
"props": { "pageProps": {} },
"page": "/link",
"query": {},
- "buildId": "njMQ5RYx1bOVpm1jqDQxv",
+ "buildId": "2MmGRN5w676aakBTkgklm",
"isFallback": false,
"gip": true
}
@@ -82,11 +82,11 @@
async=""
></script>
<script
- src="/_next/static/njMQ5RYx1bOVpm1jqDQxv/_buildManifest.js"
+ src="/_next/static/2MmGRN5w676aakBTkgklm/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/njMQ5RYx1bOVpm1jqDQxv/_ssgManifest.js"
+ src="/_next/static/2MmGRN5w676aakBTkgklm/_ssgManifest.js"
async=""
></script>
</body>Diff for withRouter.html
@@ -43,7 +43,7 @@
"props": { "pageProps": {} },
"page": "/withRouter",
"query": {},
- "buildId": "njMQ5RYx1bOVpm1jqDQxv",
+ "buildId": "2MmGRN5w676aakBTkgklm",
"isFallback": false,
"gip": true
}
@@ -77,11 +77,11 @@
async=""
></script>
<script
- src="/_next/static/njMQ5RYx1bOVpm1jqDQxv/_buildManifest.js"
+ src="/_next/static/2MmGRN5w676aakBTkgklm/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/njMQ5RYx1bOVpm1jqDQxv/_ssgManifest.js"
+ src="/_next/static/2MmGRN5w676aakBTkgklm/_ssgManifest.js"
async=""
></script>
</body>
Member
Stats from current PRDefault Server Mode (Increase detected
|
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| buildDuration | 10.6s | 10.7s | |
| nodeModulesSize | 74.9 MB | 74.9 MB |
Page Load Tests Overall increase ✓
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| / failed reqs | 0 | 0 | ✓ |
| / total time (seconds) | 2.084 | 2.058 | -0.03 |
| / avg req/sec | 1199.4 | 1214.99 | +15.59 |
| /error-in-render failed reqs | 0 | 0 | ✓ |
| /error-in-render total time (seconds) | 1.273 | 1.258 | -0.01 |
| /error-in-render avg req/sec | 1964.63 | 1987.03 | +22.4 |
Client Bundles (main, webpack, commons)
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| 677f882d2ed8..38ed.js gzip | 13.1 kB | 13.1 kB | ✓ |
| framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
| main-HASH.js gzip | 6.63 kB | 6.63 kB | ✓ |
| webpack-HASH.js gzip | 751 B | 751 B | ✓ |
| Overall change | 59.4 kB | 59.4 kB | ✓ |
Legacy Client Bundles (polyfills)
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| polyfills-HASH.js gzip | 31.3 kB | 31.3 kB | ✓ |
| Overall change | 31.3 kB | 31.3 kB | ✓ |
Client Pages
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| _app-2a09aa2..4a98.js gzip | 1.28 kB | 1.28 kB | ✓ |
| _error-8b758..aef6.js gzip | 3.46 kB | 3.46 kB | ✓ |
| hooks-c71ae4..70cd.js gzip | 887 B | 887 B | ✓ |
| index-bbee2f..528b.js gzip | 227 B | 227 B | ✓ |
| link-7faf09b..eba4.js gzip | 1.64 kB | 1.64 kB | ✓ |
| routerDirect..bf84.js gzip | 303 B | 303 B | ✓ |
| withRouter-a..5826.js gzip | 302 B | 302 B | ✓ |
| Overall change | 8.09 kB | 8.09 kB | ✓ |
Client Build Manifests
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| _buildManifest.js gzip | 321 B | 321 B | ✓ |
| Overall change | 321 B | 321 B | ✓ |
Rendered Page Sizes
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| index.html gzip | 614 B | 614 B | ✓ |
| link.html gzip | 620 B | 620 B | ✓ |
| withRouter.html gzip | 607 B | 607 B | ✓ |
| Overall change | 1.84 kB | 1.84 kB | ✓ |
Serverless Mode (Increase detected ⚠️ )
General Overall increase ⚠️
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| buildDuration | 12.8s | 12.6s | -181ms |
| nodeModulesSize | 74.9 MB | 74.9 MB |
Client Bundles (main, webpack, commons)
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| 677f882d2ed8..38ed.js gzip | 13.1 kB | 13.1 kB | ✓ |
| framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
| main-HASH.js gzip | 6.63 kB | 6.63 kB | ✓ |
| webpack-HASH.js gzip | 751 B | 751 B | ✓ |
| Overall change | 59.4 kB | 59.4 kB | ✓ |
Legacy Client Bundles (polyfills)
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| polyfills-HASH.js gzip | 31.3 kB | 31.3 kB | ✓ |
| Overall change | 31.3 kB | 31.3 kB | ✓ |
Client Pages
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| _app-2a09aa2..4a98.js gzip | 1.28 kB | 1.28 kB | ✓ |
| _error-8b758..aef6.js gzip | 3.46 kB | 3.46 kB | ✓ |
| hooks-c71ae4..70cd.js gzip | 887 B | 887 B | ✓ |
| index-bbee2f..528b.js gzip | 227 B | 227 B | ✓ |
| link-7faf09b..eba4.js gzip | 1.64 kB | 1.64 kB | ✓ |
| routerDirect..bf84.js gzip | 303 B | 303 B | ✓ |
| withRouter-a..5826.js gzip | 302 B | 302 B | ✓ |
| Overall change | 8.09 kB | 8.09 kB | ✓ |
Client Build Manifests
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| _buildManifest.js gzip | 321 B | 321 B | ✓ |
| Overall change | 321 B | 321 B | ✓ |
Serverless bundles Overall increase ⚠️
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| _error.js | 1 MB | 1 MB | |
| 404.html | 2.67 kB | 2.67 kB | ✓ |
| hooks.html | 1.92 kB | 1.92 kB | ✓ |
| index.js | 1 MB | 1 MB | |
| link.js | 1.06 MB | 1.06 MB | |
| routerDirect.js | 1.05 MB | 1.05 MB | |
| withRouter.js | 1.05 MB | 1.05 MB | |
| Overall change | 5.19 MB | 5.19 MB |
Webpack 5 Mode (Decrease detected ✓)
General Overall increase ⚠️
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| buildDuration | 13.1s | 13.1s | -55ms |
| nodeModulesSize | 74.9 MB | 74.9 MB |
Page Load Tests Overall decrease ⚠️
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| / failed reqs | 0 | 0 | ✓ |
| / total time (seconds) | 2.06 | 2.042 | -0.02 |
| / avg req/sec | 1213.34 | 1224.53 | +11.19 |
| /error-in-render failed reqs | 0 | 0 | ✓ |
| /error-in-render total time (seconds) | 1.265 | 1.318 | |
| /error-in-render avg req/sec | 1976.1 | 1896.1 |
Client Bundles (main, webpack, commons)
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| 597-c48889ef..1870.js gzip | 13 kB | 13 kB | ✓ |
| framework.HASH.js gzip | 39.3 kB | 39.3 kB | ✓ |
| main-HASH.js gzip | 6.58 kB | 6.58 kB | ✓ |
| webpack-HASH.js gzip | 954 B | 954 B | ✓ |
| Overall change | 59.8 kB | 59.8 kB | ✓ |
Legacy Client Bundles (polyfills)
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| polyfills-HASH.js gzip | 31.1 kB | 31.1 kB | ✓ |
| Overall change | 31.1 kB | 31.1 kB | ✓ |
Client Pages
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| _app-a5b2e84..33cf.js gzip | 1.26 kB | 1.26 kB | ✓ |
| _error-6f1f9..5577.js gzip | 3.38 kB | 3.38 kB | ✓ |
| hooks-725de8..0a15.js gzip | 904 B | 904 B | ✓ |
| index-939503..6e1c.js gzip | 232 B | 232 B | ✓ |
| link-e0cc871..fdbb.js gzip | 1.63 kB | 1.63 kB | ✓ |
| routerDirect..9360.js gzip | 308 B | 308 B | ✓ |
| withRouter-6..44ec.js gzip | 304 B | 304 B | ✓ |
| Overall change | 8.02 kB | 8.02 kB | ✓ |
Client Build Manifests
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| _buildManifest.js gzip | 299 B | 299 B | ✓ |
| Overall change | 299 B | 299 B | ✓ |
Rendered Page Sizes
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| index.html gzip | 587 B | 587 B | ✓ |
| link.html gzip | 591 B | 591 B | ✓ |
| withRouter.html gzip | 580 B | 580 B | ✓ |
| Overall change | 1.76 kB | 1.76 kB | ✓ |
Diffs
Diff for index.html
@@ -43,7 +43,7 @@
"props": { "pageProps": {} },
"page": "/",
"query": {},
- "buildId": "PiGn0x6gDEVHKIJ--4SPF",
+ "buildId": "pcZ_nidqkbYy83RG4IpLk",
"isFallback": false,
"gip": true
}
@@ -77,11 +77,11 @@
async=""
></script>
<script
- src="/_next/static/PiGn0x6gDEVHKIJ--4SPF/_buildManifest.js"
+ src="/_next/static/pcZ_nidqkbYy83RG4IpLk/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/PiGn0x6gDEVHKIJ--4SPF/_ssgManifest.js"
+ src="/_next/static/pcZ_nidqkbYy83RG4IpLk/_ssgManifest.js"
async=""
></script>
</body>Diff for link.html
@@ -48,7 +48,7 @@
"props": { "pageProps": {} },
"page": "/link",
"query": {},
- "buildId": "PiGn0x6gDEVHKIJ--4SPF",
+ "buildId": "pcZ_nidqkbYy83RG4IpLk",
"isFallback": false,
"gip": true
}
@@ -82,11 +82,11 @@
async=""
></script>
<script
- src="/_next/static/PiGn0x6gDEVHKIJ--4SPF/_buildManifest.js"
+ src="/_next/static/pcZ_nidqkbYy83RG4IpLk/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/PiGn0x6gDEVHKIJ--4SPF/_ssgManifest.js"
+ src="/_next/static/pcZ_nidqkbYy83RG4IpLk/_ssgManifest.js"
async=""
></script>
</body>Diff for withRouter.html
@@ -43,7 +43,7 @@
"props": { "pageProps": {} },
"page": "/withRouter",
"query": {},
- "buildId": "PiGn0x6gDEVHKIJ--4SPF",
+ "buildId": "pcZ_nidqkbYy83RG4IpLk",
"isFallback": false,
"gip": true
}
@@ -77,11 +77,11 @@
async=""
></script>
<script
- src="/_next/static/PiGn0x6gDEVHKIJ--4SPF/_buildManifest.js"
+ src="/_next/static/pcZ_nidqkbYy83RG4IpLk/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/PiGn0x6gDEVHKIJ--4SPF/_ssgManifest.js"
+ src="/_next/static/pcZ_nidqkbYy83RG4IpLk/_ssgManifest.js"
async=""
></script>
</body>
Member
Stats from current PRDefault Server Mode (Increase detected
|
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| buildDuration | 10.4s | 10.1s | -244ms |
| nodeModulesSize | 74.9 MB | 74.9 MB |
Page Load Tests Overall increase ✓
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| / failed reqs | 0 | 0 | ✓ |
| / total time (seconds) | 2.019 | 2.031 | |
| / avg req/sec | 1238.11 | 1230.9 | |
| /error-in-render failed reqs | 0 | 0 | ✓ |
| /error-in-render total time (seconds) | 1.325 | 1.277 | -0.05 |
| /error-in-render avg req/sec | 1887.32 | 1957.75 | +70.43 |
Client Bundles (main, webpack, commons)
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| 677f882d2ed8..38ed.js gzip | 13.1 kB | 13.1 kB | ✓ |
| framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
| main-HASH.js gzip | 6.63 kB | 6.63 kB | ✓ |
| webpack-HASH.js gzip | 751 B | 751 B | ✓ |
| Overall change | 59.4 kB | 59.4 kB | ✓ |
Legacy Client Bundles (polyfills)
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| polyfills-HASH.js gzip | 31.3 kB | 31.3 kB | ✓ |
| Overall change | 31.3 kB | 31.3 kB | ✓ |
Client Pages
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| _app-2a09aa2..4a98.js gzip | 1.28 kB | 1.28 kB | ✓ |
| _error-8b758..aef6.js gzip | 3.46 kB | 3.46 kB | ✓ |
| hooks-c71ae4..70cd.js gzip | 887 B | 887 B | ✓ |
| index-bbee2f..528b.js gzip | 227 B | 227 B | ✓ |
| link-7faf09b..eba4.js gzip | 1.64 kB | 1.64 kB | ✓ |
| routerDirect..bf84.js gzip | 303 B | 303 B | ✓ |
| withRouter-a..5826.js gzip | 302 B | 302 B | ✓ |
| Overall change | 8.09 kB | 8.09 kB | ✓ |
Client Build Manifests
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| _buildManifest.js gzip | 321 B | 321 B | ✓ |
| Overall change | 321 B | 321 B | ✓ |
Rendered Page Sizes
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| index.html gzip | 614 B | 614 B | ✓ |
| link.html gzip | 620 B | 620 B | ✓ |
| withRouter.html gzip | 607 B | 607 B | ✓ |
| Overall change | 1.84 kB | 1.84 kB | ✓ |
Serverless Mode (Increase detected ⚠️ )
General Overall increase ⚠️
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| buildDuration | 12.2s | 11.6s | -641ms |
| nodeModulesSize | 74.9 MB | 74.9 MB |
Client Bundles (main, webpack, commons)
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| 677f882d2ed8..38ed.js gzip | 13.1 kB | 13.1 kB | ✓ |
| framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
| main-HASH.js gzip | 6.63 kB | 6.63 kB | ✓ |
| webpack-HASH.js gzip | 751 B | 751 B | ✓ |
| Overall change | 59.4 kB | 59.4 kB | ✓ |
Legacy Client Bundles (polyfills)
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| polyfills-HASH.js gzip | 31.3 kB | 31.3 kB | ✓ |
| Overall change | 31.3 kB | 31.3 kB | ✓ |
Client Pages
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| _app-2a09aa2..4a98.js gzip | 1.28 kB | 1.28 kB | ✓ |
| _error-8b758..aef6.js gzip | 3.46 kB | 3.46 kB | ✓ |
| hooks-c71ae4..70cd.js gzip | 887 B | 887 B | ✓ |
| index-bbee2f..528b.js gzip | 227 B | 227 B | ✓ |
| link-7faf09b..eba4.js gzip | 1.64 kB | 1.64 kB | ✓ |
| routerDirect..bf84.js gzip | 303 B | 303 B | ✓ |
| withRouter-a..5826.js gzip | 302 B | 302 B | ✓ |
| Overall change | 8.09 kB | 8.09 kB | ✓ |
Client Build Manifests
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| _buildManifest.js gzip | 321 B | 321 B | ✓ |
| Overall change | 321 B | 321 B | ✓ |
Serverless bundles Overall increase ⚠️
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| _error.js | 1 MB | 1 MB | |
| 404.html | 2.67 kB | 2.67 kB | ✓ |
| hooks.html | 1.92 kB | 1.92 kB | ✓ |
| index.js | 1 MB | 1 MB | |
| link.js | 1.06 MB | 1.06 MB | |
| routerDirect.js | 1.05 MB | 1.05 MB | |
| withRouter.js | 1.05 MB | 1.05 MB | |
| Overall change | 5.19 MB | 5.19 MB |
Webpack 5 Mode (Decrease detected ✓)
General Overall increase ⚠️
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| buildDuration | 11.9s | 12.2s | |
| nodeModulesSize | 74.9 MB | 74.9 MB |
Page Load Tests Overall decrease ⚠️
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| / failed reqs | 0 | 0 | ✓ |
| / total time (seconds) | 1.995 | 2.024 | |
| / avg req/sec | 1253.3 | 1234.96 | |
| /error-in-render failed reqs | 0 | 0 | ✓ |
| /error-in-render total time (seconds) | 1.24 | 1.284 | |
| /error-in-render avg req/sec | 2016.9 | 1947.16 |
Client Bundles (main, webpack, commons)
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| 597-c48889ef..1870.js gzip | 13 kB | 13 kB | ✓ |
| framework.HASH.js gzip | 39.3 kB | 39.3 kB | ✓ |
| main-HASH.js gzip | 6.58 kB | 6.58 kB | ✓ |
| webpack-HASH.js gzip | 954 B | 954 B | ✓ |
| Overall change | 59.8 kB | 59.8 kB | ✓ |
Legacy Client Bundles (polyfills)
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| polyfills-HASH.js gzip | 31.1 kB | 31.1 kB | ✓ |
| Overall change | 31.1 kB | 31.1 kB | ✓ |
Client Pages
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| _app-a5b2e84..33cf.js gzip | 1.26 kB | 1.26 kB | ✓ |
| _error-6f1f9..5577.js gzip | 3.38 kB | 3.38 kB | ✓ |
| hooks-725de8..0a15.js gzip | 904 B | 904 B | ✓ |
| index-939503..6e1c.js gzip | 232 B | 232 B | ✓ |
| link-e0cc871..fdbb.js gzip | 1.63 kB | 1.63 kB | ✓ |
| routerDirect..9360.js gzip | 308 B | 308 B | ✓ |
| withRouter-6..44ec.js gzip | 304 B | 304 B | ✓ |
| Overall change | 8.02 kB | 8.02 kB | ✓ |
Client Build Manifests
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| _buildManifest.js gzip | 299 B | 299 B | ✓ |
| Overall change | 299 B | 299 B | ✓ |
Rendered Page Sizes
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| index.html gzip | 587 B | 587 B | ✓ |
| link.html gzip | 591 B | 591 B | ✓ |
| withRouter.html gzip | 580 B | 580 B | ✓ |
| Overall change | 1.76 kB | 1.76 kB | ✓ |
Diffs
Diff for index.html
@@ -43,7 +43,7 @@
"props": { "pageProps": {} },
"page": "/",
"query": {},
- "buildId": "cU-Rj7uoVAItvfN-R2gqr",
+ "buildId": "p_iQFXaw-tO-eMdkob2yw",
"isFallback": false,
"gip": true
}
@@ -77,11 +77,11 @@
async=""
></script>
<script
- src="/_next/static/cU-Rj7uoVAItvfN-R2gqr/_buildManifest.js"
+ src="/_next/static/p_iQFXaw-tO-eMdkob2yw/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/cU-Rj7uoVAItvfN-R2gqr/_ssgManifest.js"
+ src="/_next/static/p_iQFXaw-tO-eMdkob2yw/_ssgManifest.js"
async=""
></script>
</body>Diff for link.html
@@ -48,7 +48,7 @@
"props": { "pageProps": {} },
"page": "/link",
"query": {},
- "buildId": "cU-Rj7uoVAItvfN-R2gqr",
+ "buildId": "p_iQFXaw-tO-eMdkob2yw",
"isFallback": false,
"gip": true
}
@@ -82,11 +82,11 @@
async=""
></script>
<script
- src="/_next/static/cU-Rj7uoVAItvfN-R2gqr/_buildManifest.js"
+ src="/_next/static/p_iQFXaw-tO-eMdkob2yw/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/cU-Rj7uoVAItvfN-R2gqr/_ssgManifest.js"
+ src="/_next/static/p_iQFXaw-tO-eMdkob2yw/_ssgManifest.js"
async=""
></script>
</body>Diff for withRouter.html
@@ -43,7 +43,7 @@
"props": { "pageProps": {} },
"page": "/withRouter",
"query": {},
- "buildId": "cU-Rj7uoVAItvfN-R2gqr",
+ "buildId": "p_iQFXaw-tO-eMdkob2yw",
"isFallback": false,
"gip": true
}
@@ -77,11 +77,11 @@
async=""
></script>
<script
- src="/_next/static/cU-Rj7uoVAItvfN-R2gqr/_buildManifest.js"
+ src="/_next/static/p_iQFXaw-tO-eMdkob2yw/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/cU-Rj7uoVAItvfN-R2gqr/_ssgManifest.js"
+ src="/_next/static/p_iQFXaw-tO-eMdkob2yw/_ssgManifest.js"
async=""
></script>
</body>
Member
Stats from current PRDefault Server Mode (Decrease detected ✓)General Overall increase
|
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| buildDuration | 8.3s | 8.8s | |
| nodeModulesSize | 74.9 MB | 74.9 MB |
Page Load Tests Overall decrease ⚠️
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| / failed reqs | 0 | 0 | ✓ |
| / total time (seconds) | 1.736 | 1.791 | |
| / avg req/sec | 1440.13 | 1395.64 | |
| /error-in-render failed reqs | 0 | 0 | ✓ |
| /error-in-render total time (seconds) | 1.065 | 1.079 | |
| /error-in-render avg req/sec | 2347.14 | 2317.59 |
Client Bundles (main, webpack, commons)
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| 677f882d2ed8..38ed.js gzip | 13.1 kB | 13.1 kB | ✓ |
| framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
| main-HASH.js gzip | 6.63 kB | 6.63 kB | ✓ |
| webpack-HASH.js gzip | 751 B | 751 B | ✓ |
| Overall change | 59.4 kB | 59.4 kB | ✓ |
Legacy Client Bundles (polyfills)
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| polyfills-HASH.js gzip | 31.3 kB | 31.3 kB | ✓ |
| Overall change | 31.3 kB | 31.3 kB | ✓ |
Client Pages
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| _app-2a09aa2..4a98.js gzip | 1.28 kB | 1.28 kB | ✓ |
| _error-8b758..aef6.js gzip | 3.46 kB | 3.46 kB | ✓ |
| hooks-c71ae4..70cd.js gzip | 887 B | 887 B | ✓ |
| index-bbee2f..528b.js gzip | 227 B | 227 B | ✓ |
| link-7faf09b..eba4.js gzip | 1.64 kB | 1.64 kB | ✓ |
| routerDirect..bf84.js gzip | 303 B | 303 B | ✓ |
| withRouter-a..5826.js gzip | 302 B | 302 B | ✓ |
| Overall change | 8.09 kB | 8.09 kB | ✓ |
Client Build Manifests
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| _buildManifest.js gzip | 321 B | 321 B | ✓ |
| Overall change | 321 B | 321 B | ✓ |
Rendered Page Sizes
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| index.html gzip | 614 B | 614 B | ✓ |
| link.html gzip | 620 B | 620 B | ✓ |
| withRouter.html gzip | 607 B | 607 B | ✓ |
| Overall change | 1.84 kB | 1.84 kB | ✓ |
Serverless Mode (Increase detected ⚠️ )
General Overall increase ⚠️
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| buildDuration | 10.1s | 10.4s | |
| nodeModulesSize | 74.9 MB | 74.9 MB |
Client Bundles (main, webpack, commons)
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| 677f882d2ed8..38ed.js gzip | 13.1 kB | 13.1 kB | ✓ |
| framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
| main-HASH.js gzip | 6.63 kB | 6.63 kB | ✓ |
| webpack-HASH.js gzip | 751 B | 751 B | ✓ |
| Overall change | 59.4 kB | 59.4 kB | ✓ |
Legacy Client Bundles (polyfills)
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| polyfills-HASH.js gzip | 31.3 kB | 31.3 kB | ✓ |
| Overall change | 31.3 kB | 31.3 kB | ✓ |
Client Pages
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| _app-2a09aa2..4a98.js gzip | 1.28 kB | 1.28 kB | ✓ |
| _error-8b758..aef6.js gzip | 3.46 kB | 3.46 kB | ✓ |
| hooks-c71ae4..70cd.js gzip | 887 B | 887 B | ✓ |
| index-bbee2f..528b.js gzip | 227 B | 227 B | ✓ |
| link-7faf09b..eba4.js gzip | 1.64 kB | 1.64 kB | ✓ |
| routerDirect..bf84.js gzip | 303 B | 303 B | ✓ |
| withRouter-a..5826.js gzip | 302 B | 302 B | ✓ |
| Overall change | 8.09 kB | 8.09 kB | ✓ |
Client Build Manifests
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| _buildManifest.js gzip | 321 B | 321 B | ✓ |
| Overall change | 321 B | 321 B | ✓ |
Serverless bundles Overall increase ⚠️
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| _error.js | 1 MB | 1 MB | |
| 404.html | 2.67 kB | 2.67 kB | ✓ |
| hooks.html | 1.92 kB | 1.92 kB | ✓ |
| index.js | 1 MB | 1 MB | |
| link.js | 1.06 MB | 1.06 MB | |
| routerDirect.js | 1.05 MB | 1.05 MB | |
| withRouter.js | 1.05 MB | 1.05 MB | |
| Overall change | 5.19 MB | 5.19 MB |
Webpack 5 Mode (Decrease detected ✓)
General Overall increase ⚠️
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| buildDuration | 10.4s | 10.3s | -65ms |
| nodeModulesSize | 74.9 MB | 74.9 MB |
Page Load Tests Overall decrease ⚠️
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| / failed reqs | 0 | 0 | ✓ |
| / total time (seconds) | 1.613 | 1.665 | |
| / avg req/sec | 1549.53 | 1501.62 | |
| /error-in-render failed reqs | 0 | 0 | ✓ |
| /error-in-render total time (seconds) | 1.068 | 1.072 | 0 |
| /error-in-render avg req/sec | 2340.24 | 2332.55 |
Client Bundles (main, webpack, commons)
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| 597-c48889ef..1870.js gzip | 13 kB | 13 kB | ✓ |
| framework.HASH.js gzip | 39.3 kB | 39.3 kB | ✓ |
| main-HASH.js gzip | 6.58 kB | 6.58 kB | ✓ |
| webpack-HASH.js gzip | 954 B | 954 B | ✓ |
| Overall change | 59.8 kB | 59.8 kB | ✓ |
Legacy Client Bundles (polyfills)
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| polyfills-HASH.js gzip | 31.1 kB | 31.1 kB | ✓ |
| Overall change | 31.1 kB | 31.1 kB | ✓ |
Client Pages
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| _app-a5b2e84..33cf.js gzip | 1.26 kB | 1.26 kB | ✓ |
| _error-6f1f9..5577.js gzip | 3.38 kB | 3.38 kB | ✓ |
| hooks-725de8..0a15.js gzip | 904 B | 904 B | ✓ |
| index-939503..6e1c.js gzip | 232 B | 232 B | ✓ |
| link-e0cc871..fdbb.js gzip | 1.63 kB | 1.63 kB | ✓ |
| routerDirect..9360.js gzip | 308 B | 308 B | ✓ |
| withRouter-6..44ec.js gzip | 304 B | 304 B | ✓ |
| Overall change | 8.02 kB | 8.02 kB | ✓ |
Client Build Manifests
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| _buildManifest.js gzip | 299 B | 299 B | ✓ |
| Overall change | 299 B | 299 B | ✓ |
Rendered Page Sizes
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| index.html gzip | 587 B | 587 B | ✓ |
| link.html gzip | 591 B | 591 B | ✓ |
| withRouter.html gzip | 580 B | 580 B | ✓ |
| Overall change | 1.76 kB | 1.76 kB | ✓ |
Diffs
Diff for index.html
@@ -43,7 +43,7 @@
"props": { "pageProps": {} },
"page": "/",
"query": {},
- "buildId": "FXeqwscjL8JZvUjw1a_Q6",
+ "buildId": "7xeJl3OiF3xc9B0d69O-n",
"isFallback": false,
"gip": true
}
@@ -77,11 +77,11 @@
async=""
></script>
<script
- src="/_next/static/FXeqwscjL8JZvUjw1a_Q6/_buildManifest.js"
+ src="/_next/static/7xeJl3OiF3xc9B0d69O-n/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/FXeqwscjL8JZvUjw1a_Q6/_ssgManifest.js"
+ src="/_next/static/7xeJl3OiF3xc9B0d69O-n/_ssgManifest.js"
async=""
></script>
</body>Diff for link.html
@@ -48,7 +48,7 @@
"props": { "pageProps": {} },
"page": "/link",
"query": {},
- "buildId": "FXeqwscjL8JZvUjw1a_Q6",
+ "buildId": "7xeJl3OiF3xc9B0d69O-n",
"isFallback": false,
"gip": true
}
@@ -82,11 +82,11 @@
async=""
></script>
<script
- src="/_next/static/FXeqwscjL8JZvUjw1a_Q6/_buildManifest.js"
+ src="/_next/static/7xeJl3OiF3xc9B0d69O-n/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/FXeqwscjL8JZvUjw1a_Q6/_ssgManifest.js"
+ src="/_next/static/7xeJl3OiF3xc9B0d69O-n/_ssgManifest.js"
async=""
></script>
</body>Diff for withRouter.html
@@ -43,7 +43,7 @@
"props": { "pageProps": {} },
"page": "/withRouter",
"query": {},
- "buildId": "FXeqwscjL8JZvUjw1a_Q6",
+ "buildId": "7xeJl3OiF3xc9B0d69O-n",
"isFallback": false,
"gip": true
}
@@ -77,11 +77,11 @@
async=""
></script>
<script
- src="/_next/static/FXeqwscjL8JZvUjw1a_Q6/_buildManifest.js"
+ src="/_next/static/7xeJl3OiF3xc9B0d69O-n/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/FXeqwscjL8JZvUjw1a_Q6/_ssgManifest.js"
+ src="/_next/static/7xeJl3OiF3xc9B0d69O-n/_ssgManifest.js"
async=""
></script>
</body>
timneutkens
approved these changes
Jan 26, 2021
Contributor
timneutkens
left a comment
There was a problem hiding this comment.
Looks good to land now 👍
Member
Stats from current PRDefault Server ModeGeneral Overall increase
|
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| buildDuration | 9.2s | 9.1s | -114ms |
| nodeModulesSize | 74.9 MB | 74.9 MB |
Page Load Tests Overall increase ✓
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| / failed reqs | 0 | 0 | ✓ |
| / total time (seconds) | 1.756 | 1.789 | |
| / avg req/sec | 1423.66 | 1397.12 | |
| /error-in-render failed reqs | 0 | 0 | ✓ |
| /error-in-render total time (seconds) | 1.165 | 1.149 | -0.02 |
| /error-in-render avg req/sec | 2146.07 | 2176.19 | +30.12 |
Client Bundles (main, webpack, commons)
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| 677f882d2ed8..38ed.js gzip | 13.1 kB | 13.1 kB | ✓ |
| framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
| main-HASH.js gzip | 6.63 kB | 6.63 kB | ✓ |
| webpack-HASH.js gzip | 751 B | 751 B | ✓ |
| Overall change | 59.4 kB | 59.4 kB | ✓ |
Legacy Client Bundles (polyfills)
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| polyfills-HASH.js gzip | 31.3 kB | 31.3 kB | ✓ |
| Overall change | 31.3 kB | 31.3 kB | ✓ |
Client Pages
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| _app-2a09aa2..4a98.js gzip | 1.28 kB | 1.28 kB | ✓ |
| _error-8b758..aef6.js gzip | 3.46 kB | 3.46 kB | ✓ |
| hooks-c71ae4..70cd.js gzip | 887 B | 887 B | ✓ |
| index-bbee2f..528b.js gzip | 227 B | 227 B | ✓ |
| link-7faf09b..eba4.js gzip | 1.64 kB | 1.64 kB | ✓ |
| routerDirect..bf84.js gzip | 303 B | 303 B | ✓ |
| withRouter-a..5826.js gzip | 302 B | 302 B | ✓ |
| Overall change | 8.09 kB | 8.09 kB | ✓ |
Client Build Manifests
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| _buildManifest.js gzip | 321 B | 321 B | ✓ |
| Overall change | 321 B | 321 B | ✓ |
Rendered Page Sizes
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| index.html gzip | 614 B | 614 B | ✓ |
| link.html gzip | 620 B | 620 B | ✓ |
| withRouter.html gzip | 607 B | 607 B | ✓ |
| Overall change | 1.84 kB | 1.84 kB | ✓ |
Serverless Mode (Increase detected ⚠️ )
General Overall increase ⚠️
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| buildDuration | 11.1s | 10.9s | -194ms |
| nodeModulesSize | 74.9 MB | 74.9 MB |
Client Bundles (main, webpack, commons)
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| 677f882d2ed8..38ed.js gzip | 13.1 kB | 13.1 kB | ✓ |
| framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
| main-HASH.js gzip | 6.63 kB | 6.63 kB | ✓ |
| webpack-HASH.js gzip | 751 B | 751 B | ✓ |
| Overall change | 59.4 kB | 59.4 kB | ✓ |
Legacy Client Bundles (polyfills)
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| polyfills-HASH.js gzip | 31.3 kB | 31.3 kB | ✓ |
| Overall change | 31.3 kB | 31.3 kB | ✓ |
Client Pages
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| _app-2a09aa2..4a98.js gzip | 1.28 kB | 1.28 kB | ✓ |
| _error-8b758..aef6.js gzip | 3.46 kB | 3.46 kB | ✓ |
| hooks-c71ae4..70cd.js gzip | 887 B | 887 B | ✓ |
| index-bbee2f..528b.js gzip | 227 B | 227 B | ✓ |
| link-7faf09b..eba4.js gzip | 1.64 kB | 1.64 kB | ✓ |
| routerDirect..bf84.js gzip | 303 B | 303 B | ✓ |
| withRouter-a..5826.js gzip | 302 B | 302 B | ✓ |
| Overall change | 8.09 kB | 8.09 kB | ✓ |
Client Build Manifests
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| _buildManifest.js gzip | 321 B | 321 B | ✓ |
| Overall change | 321 B | 321 B | ✓ |
Serverless bundles Overall increase ⚠️
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| _error.js | 1 MB | 1 MB | |
| 404.html | 2.67 kB | 2.67 kB | ✓ |
| hooks.html | 1.92 kB | 1.92 kB | ✓ |
| index.js | 1 MB | 1 MB | |
| link.js | 1.06 MB | 1.06 MB | |
| routerDirect.js | 1.05 MB | 1.05 MB | |
| withRouter.js | 1.05 MB | 1.05 MB | |
| Overall change | 5.19 MB | 5.19 MB |
Webpack 5 Mode (Increase detected ⚠️ )
General Overall increase ⚠️
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| buildDuration | 11s | 11s | |
| nodeModulesSize | 74.9 MB | 74.9 MB |
Page Load Tests Overall increase ✓
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| / failed reqs | 0 | 0 | ✓ |
| / total time (seconds) | 1.815 | 1.779 | -0.04 |
| / avg req/sec | 1377.14 | 1404.92 | +27.78 |
| /error-in-render failed reqs | 0 | 0 | ✓ |
| /error-in-render total time (seconds) | 1.162 | 1.109 | -0.05 |
| /error-in-render avg req/sec | 2150.89 | 2253.97 | +103.08 |
Client Bundles (main, webpack, commons)
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| 597-c48889ef..1870.js gzip | 13 kB | 13 kB | ✓ |
| framework.HASH.js gzip | 39.3 kB | 39.3 kB | ✓ |
| main-HASH.js gzip | 6.58 kB | 6.58 kB | ✓ |
| webpack-HASH.js gzip | 954 B | 954 B | ✓ |
| Overall change | 59.8 kB | 59.8 kB | ✓ |
Legacy Client Bundles (polyfills)
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| polyfills-HASH.js gzip | 31.1 kB | 31.1 kB | ✓ |
| Overall change | 31.1 kB | 31.1 kB | ✓ |
Client Pages
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| _app-a5b2e84..33cf.js gzip | 1.26 kB | 1.26 kB | ✓ |
| _error-6f1f9..5577.js gzip | 3.38 kB | 3.38 kB | ✓ |
| hooks-725de8..0a15.js gzip | 904 B | 904 B | ✓ |
| index-939503..6e1c.js gzip | 232 B | 232 B | ✓ |
| link-e0cc871..fdbb.js gzip | 1.63 kB | 1.63 kB | ✓ |
| routerDirect..9360.js gzip | 308 B | 308 B | ✓ |
| withRouter-6..44ec.js gzip | 304 B | 304 B | ✓ |
| Overall change | 8.02 kB | 8.02 kB | ✓ |
Client Build Manifests
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| _buildManifest.js gzip | 299 B | 299 B | ✓ |
| Overall change | 299 B | 299 B | ✓ |
Rendered Page Sizes
| vercel/next.js canary | andrehsu/next.js fix/cookies-type | Change | |
|---|---|---|---|
| index.html gzip | 587 B | 587 B | ✓ |
| link.html gzip | 591 B | 591 B | ✓ |
| withRouter.html gzip | 580 B | 580 B | ✓ |
| Overall change | 1.76 kB | 1.76 kB | ✓ |
Diffs
Diff for index.html
@@ -43,7 +43,7 @@
"props": { "pageProps": {} },
"page": "/",
"query": {},
- "buildId": "H-cbSyvyBm-IlyTnmIO-J",
+ "buildId": "xFD6ydzHE1eW4-vwIV0OE",
"isFallback": false,
"gip": true
}
@@ -77,11 +77,11 @@
async=""
></script>
<script
- src="/_next/static/H-cbSyvyBm-IlyTnmIO-J/_buildManifest.js"
+ src="/_next/static/xFD6ydzHE1eW4-vwIV0OE/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/H-cbSyvyBm-IlyTnmIO-J/_ssgManifest.js"
+ src="/_next/static/xFD6ydzHE1eW4-vwIV0OE/_ssgManifest.js"
async=""
></script>
</body>Diff for link.html
@@ -48,7 +48,7 @@
"props": { "pageProps": {} },
"page": "/link",
"query": {},
- "buildId": "H-cbSyvyBm-IlyTnmIO-J",
+ "buildId": "xFD6ydzHE1eW4-vwIV0OE",
"isFallback": false,
"gip": true
}
@@ -82,11 +82,11 @@
async=""
></script>
<script
- src="/_next/static/H-cbSyvyBm-IlyTnmIO-J/_buildManifest.js"
+ src="/_next/static/xFD6ydzHE1eW4-vwIV0OE/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/H-cbSyvyBm-IlyTnmIO-J/_ssgManifest.js"
+ src="/_next/static/xFD6ydzHE1eW4-vwIV0OE/_ssgManifest.js"
async=""
></script>
</body>Diff for withRouter.html
@@ -43,7 +43,7 @@
"props": { "pageProps": {} },
"page": "/withRouter",
"query": {},
- "buildId": "H-cbSyvyBm-IlyTnmIO-J",
+ "buildId": "xFD6ydzHE1eW4-vwIV0OE",
"isFallback": false,
"gip": true
}
@@ -77,11 +77,11 @@
async=""
></script>
<script
- src="/_next/static/H-cbSyvyBm-IlyTnmIO-J/_buildManifest.js"
+ src="/_next/static/xFD6ydzHE1eW4-vwIV0OE/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/H-cbSyvyBm-IlyTnmIO-J/_ssgManifest.js"
+ src="/_next/static/xFD6ydzHE1eW4-vwIV0OE/_ssgManifest.js"
async=""
></script>
</body>
This was referenced Aug 3, 2021
This was referenced Aug 31, 2021
This was referenced Sep 15, 2021
This was referenced Nov 9, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The original type for
GetServerSidePropsContext.req.cookieswas introduced in #19724. In the PR, the test attest/integration/typescript/test/index.test.jsexpects req.cookies to always exist, soreq.cookieswill never be undefined.I'm guessing that req.cookies is parsed using the same cookie middleware as
NextApiRequest, in which casereq.cookiesshould be{ [key: string]: string }, not{ [key: string]: any }.