-
Notifications
You must be signed in to change notification settings - Fork 27.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add "nonce" from <Head> to the injected <style> to satisfy CSP #19150
Merged
Conversation
This file contains 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
Stats from current PRDefault Server Mode (Increase detected
|
vercel/next.js canary | vercel/next.js 18557-style-nonce | Change | |
---|---|---|---|
buildDuration | 14.7s | 14.3s | -448ms |
nodeModulesSize | 84.9 MB | 84.9 MB |
Page Load Tests Overall increase ✓
vercel/next.js canary | vercel/next.js 18557-style-nonce | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.659 | 2.649 | -0.01 |
/ avg req/sec | 940.05 | 943.69 | +3.64 |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.744 | 1.728 | -0.02 |
/error-in-render avg req/sec | 1433.35 | 1447.08 | +13.73 |
Client Bundles (main, webpack, commons) Overall increase ⚠️
vercel/next.js canary | vercel/next.js 18557-style-nonce | Change | |
---|---|---|---|
677f882d2ed8..d9fb.js gzip | 12.7 kB | 12.7 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-b0b971f..64a5.js gzip | 6.5 kB | 6.53 kB | |
webpack-e067..f178.js gzip | 751 B | 751 B | ✓ |
Overall change | 58.9 kB | 58.9 kB |
Client Bundles (main, webpack, commons) Modern Overall increase ⚠️
vercel/next.js canary | vercel/next.js 18557-style-nonce | Change | |
---|---|---|---|
677f882d2ed8..dule.js gzip | 8.23 kB | 8.23 kB | ✓ |
framework.HA..dule.js gzip | 39 kB | 39 kB | ✓ |
main-22cb0cf..dule.js gzip | 5.61 kB | 5.64 kB | |
webpack-07c5..dule.js gzip | 751 B | 751 B | ✓ |
Overall change | 53.6 kB | 53.6 kB |
Legacy Client Bundles (polyfills)
vercel/next.js canary | vercel/next.js 18557-style-nonce | Change | |
---|---|---|---|
polyfills-4b..e242.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages
vercel/next.js canary | vercel/next.js 18557-style-nonce | Change | |
---|---|---|---|
_app-3b0cf13..85f8.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-6f635..c393.js gzip | 3.44 kB | 3.44 kB | ✓ |
hooks-d4ffc3..9e0f.js gzip | 887 B | 887 B | ✓ |
index-17468f..5d83.js gzip | 227 B | 227 B | ✓ |
link-d9a15a0..130a.js gzip | 1.57 kB | 1.57 kB | ✓ |
routerDirect..924c.js gzip | 284 B | 284 B | ✓ |
withRouter-7..c13d.js gzip | 284 B | 284 B | ✓ |
Overall change | 7.98 kB | 7.98 kB | ✓ |
Client Pages Modern
vercel/next.js canary | vercel/next.js 18557-style-nonce | Change | |
---|---|---|---|
_app-75d3a82..dule.js gzip | 625 B | 625 B | ✓ |
_error-f2fcc..dule.js gzip | 2.29 kB | 2.29 kB | ✓ |
hooks-cbf13f..dule.js gzip | 387 B | 387 B | ✓ |
index-b9a643..dule.js gzip | 226 B | 226 B | ✓ |
link-973cce3..dule.js gzip | 1.51 kB | 1.51 kB | ✓ |
routerDirect..dule.js gzip | 284 B | 284 B | ✓ |
withRouter-f..dule.js gzip | 282 B | 282 B | ✓ |
Overall change | 5.6 kB | 5.6 kB | ✓ |
Client Build Manifests
vercel/next.js canary | vercel/next.js 18557-style-nonce | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
_buildManife..dule.js gzip | 330 B | 330 B | ✓ |
Overall change | 651 B | 651 B | ✓ |
Rendered Page Sizes Overall decrease ✓
vercel/next.js canary | vercel/next.js 18557-style-nonce | Change | |
---|---|---|---|
index.html gzip | 971 B | 969 B | -2 B |
link.html gzip | 978 B | 975 B | -3 B |
withRouter.html gzip | 965 B | 963 B | -2 B |
Overall change | 2.91 kB | 2.91 kB | -7 B |
Diffs
Diff for main-288e71c..7e8ff798f.js
@@ -1068,6 +1068,9 @@ _N_E = (window["webpackJsonp_N_E"] = window["webpackJsonp_N_E"] || []).push([
return tag.getAttribute("data-n-href");
})
);
+ var noscript = document.querySelector("noscript[data-n-css]");
+ var nonce =
+ noscript == null ? void 0 : noscript.getAttribute("data-n-css");
styleSheets.forEach(function(_ref7) {
var href = _ref7.href,
text = _ref7.text;
@@ -1076,6 +1079,11 @@ _N_E = (window["webpackJsonp_N_E"] = window["webpackJsonp_N_E"] || []).push([
var styleTag = document.createElement("style");
styleTag.setAttribute("data-n-href", href);
styleTag.setAttribute("media", "x");
+
+ if (nonce) {
+ styleTag.setAttribute("nonce", nonce);
+ }
+
document.head.appendChild(styleTag);
styleTag.appendChild(document.createTextNode(text));
}
Diff for main-b5494d9..2e.module.js
@@ -779,6 +779,9 @@
var currentHrefs = new Set(
currentStyleTags.map(tag => tag.getAttribute("data-n-href"))
);
+ var noscript = document.querySelector("noscript[data-n-css]");
+ var nonce =
+ noscript == null ? void 0 : noscript.getAttribute("data-n-css");
styleSheets.forEach(_ref5 => {
var { href, text } = _ref5;
@@ -786,6 +789,11 @@
var styleTag = document.createElement("style");
styleTag.setAttribute("data-n-href", href);
styleTag.setAttribute("media", "x");
+
+ if (nonce) {
+ styleTag.setAttribute("nonce", nonce);
+ }
+
document.head.appendChild(styleTag);
styleTag.appendChild(document.createTextNode(text));
}
Diff for index.html
@@ -4,10 +4,10 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<meta name="next-head-count" content="2" />
- <noscript data-n-css="true"></noscript>
+ <noscript data-n-css=""></noscript>
<link
rel="preload"
- href="/_next/static/chunks/main-b5494d90160de3f12c2e.module.js"
+ href="/_next/static/chunks/main-3b7e144d19b69d756b5c.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -82,13 +82,13 @@
src="/_next/static/chunks/polyfills-f73ba3fc145972ef83e9.js"
></script>
<script
- src="/_next/static/chunks/main-288e71cf56f7e8ff798f.js"
+ src="/_next/static/chunks/main-d150ac684e24a32f68f6.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/main-b5494d90160de3f12c2e.module.js"
+ src="/_next/static/chunks/main-3b7e144d19b69d756b5c.module.js"
async=""
crossorigin="anonymous"
type="module"
Diff for link.html
@@ -4,10 +4,10 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<meta name="next-head-count" content="2" />
- <noscript data-n-css="true"></noscript>
+ <noscript data-n-css=""></noscript>
<link
rel="preload"
- href="/_next/static/chunks/main-b5494d90160de3f12c2e.module.js"
+ href="/_next/static/chunks/main-3b7e144d19b69d756b5c.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -87,13 +87,13 @@
src="/_next/static/chunks/polyfills-f73ba3fc145972ef83e9.js"
></script>
<script
- src="/_next/static/chunks/main-288e71cf56f7e8ff798f.js"
+ src="/_next/static/chunks/main-d150ac684e24a32f68f6.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/main-b5494d90160de3f12c2e.module.js"
+ src="/_next/static/chunks/main-3b7e144d19b69d756b5c.module.js"
async=""
crossorigin="anonymous"
type="module"
Diff for withRouter.html
@@ -4,10 +4,10 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<meta name="next-head-count" content="2" />
- <noscript data-n-css="true"></noscript>
+ <noscript data-n-css=""></noscript>
<link
rel="preload"
- href="/_next/static/chunks/main-b5494d90160de3f12c2e.module.js"
+ href="/_next/static/chunks/main-3b7e144d19b69d756b5c.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -82,13 +82,13 @@
src="/_next/static/chunks/polyfills-f73ba3fc145972ef83e9.js"
></script>
<script
- src="/_next/static/chunks/main-288e71cf56f7e8ff798f.js"
+ src="/_next/static/chunks/main-d150ac684e24a32f68f6.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/main-b5494d90160de3f12c2e.module.js"
+ src="/_next/static/chunks/main-3b7e144d19b69d756b5c.module.js"
async=""
crossorigin="anonymous"
type="module"
Serverless Mode (Increase detected ⚠️ )
General Overall increase ⚠️
vercel/next.js canary | vercel/next.js 18557-style-nonce | Change | |
---|---|---|---|
buildDuration | 15.8s | 16.3s | |
nodeModulesSize | 84.9 MB | 84.9 MB |
Client Bundles (main, webpack, commons) Overall increase ⚠️
vercel/next.js canary | vercel/next.js 18557-style-nonce | Change | |
---|---|---|---|
677f882d2ed8..d9fb.js gzip | 12.7 kB | 12.7 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-b0b971f..64a5.js gzip | 6.5 kB | N/A | N/A |
webpack-e067..f178.js gzip | 751 B | 751 B | ✓ |
main-65ddebf..18f3.js gzip | N/A | 6.53 kB | N/A |
Overall change | 58.9 kB | 58.9 kB |
Client Bundles (main, webpack, commons) Modern Overall increase ⚠️
vercel/next.js canary | vercel/next.js 18557-style-nonce | Change | |
---|---|---|---|
677f882d2ed8..dule.js gzip | 8.23 kB | 8.23 kB | ✓ |
framework.HA..dule.js gzip | 39 kB | 39 kB | ✓ |
main-22cb0cf..dule.js gzip | 5.61 kB | N/A | N/A |
webpack-07c5..dule.js gzip | 751 B | 751 B | ✓ |
main-52e4325..dule.js gzip | N/A | 5.64 kB | N/A |
Overall change | 53.6 kB | 53.6 kB |
Legacy Client Bundles (polyfills)
vercel/next.js canary | vercel/next.js 18557-style-nonce | Change | |
---|---|---|---|
polyfills-4b..e242.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages
vercel/next.js canary | vercel/next.js 18557-style-nonce | Change | |
---|---|---|---|
_app-3b0cf13..85f8.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-6f635..c393.js gzip | 3.44 kB | 3.44 kB | ✓ |
hooks-d4ffc3..9e0f.js gzip | 887 B | 887 B | ✓ |
index-17468f..5d83.js gzip | 227 B | 227 B | ✓ |
link-d9a15a0..130a.js gzip | 1.57 kB | 1.57 kB | ✓ |
routerDirect..924c.js gzip | 284 B | 284 B | ✓ |
withRouter-7..c13d.js gzip | 284 B | 284 B | ✓ |
Overall change | 7.98 kB | 7.98 kB | ✓ |
Client Pages Modern
vercel/next.js canary | vercel/next.js 18557-style-nonce | Change | |
---|---|---|---|
_app-75d3a82..dule.js gzip | 625 B | 625 B | ✓ |
_error-f2fcc..dule.js gzip | 2.29 kB | 2.29 kB | ✓ |
hooks-cbf13f..dule.js gzip | 387 B | 387 B | ✓ |
index-b9a643..dule.js gzip | 226 B | 226 B | ✓ |
link-973cce3..dule.js gzip | 1.51 kB | 1.51 kB | ✓ |
routerDirect..dule.js gzip | 284 B | 284 B | ✓ |
withRouter-f..dule.js gzip | 282 B | 282 B | ✓ |
Overall change | 5.6 kB | 5.6 kB | ✓ |
Client Build Manifests
vercel/next.js canary | vercel/next.js 18557-style-nonce | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
_buildManife..dule.js gzip | 330 B | 330 B | ✓ |
Overall change | 651 B | 651 B | ✓ |
Serverless bundles Overall increase ⚠️
vercel/next.js canary | vercel/next.js 18557-style-nonce | Change | |
---|---|---|---|
_error.js | 916 kB | 916 kB | |
404.html | 4.61 kB | 4.61 kB | -4 B |
hooks.html | 3.86 kB | 3.86 kB | -4 B |
index.js | 916 kB | 916 kB | |
link.js | 974 kB | 975 kB | |
routerDirect.js | 967 kB | 967 kB | |
withRouter.js | 967 kB | 967 kB | |
Overall change | 4.75 MB | 4.75 MB |
This comment has been minimized.
This comment has been minimized.
styfle
changed the title
Add support for style nonce
Add "nonce" from <Head> to inject <style>
Nov 13, 2020
styfle
changed the title
Add "nonce" from <Head> to inject <style>
Add "nonce" from <Head> to the injected <style> to satisfy CSP
Nov 13, 2020
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Stats from current PRDefault Server Mode (Increase detected
|
vercel/next.js canary | vercel/next.js 18557-style-nonce | Change | |
---|---|---|---|
buildDuration | 12.7s | 12.8s | |
nodeModulesSize | 84.9 MB | 84.9 MB |
Page Load Tests Overall increase ✓
vercel/next.js canary | vercel/next.js 18557-style-nonce | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.447 | 2.368 | -0.08 |
/ avg req/sec | 1021.76 | 1055.59 | +33.83 |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.344 | 1.293 | -0.05 |
/error-in-render avg req/sec | 1859.72 | 1933.44 | +73.72 |
Client Bundles (main, webpack, commons) Overall increase ⚠️
vercel/next.js canary | vercel/next.js 18557-style-nonce | Change | |
---|---|---|---|
677f882d2ed8..d9fb.js gzip | 12.7 kB | 12.7 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-b0b971f..64a5.js gzip | 6.5 kB | 6.53 kB | |
webpack-e067..f178.js gzip | 751 B | 751 B | ✓ |
Overall change | 58.9 kB | 58.9 kB |
Client Bundles (main, webpack, commons) Modern Overall increase ⚠️
vercel/next.js canary | vercel/next.js 18557-style-nonce | Change | |
---|---|---|---|
677f882d2ed8..dule.js gzip | 8.23 kB | 8.23 kB | ✓ |
framework.HA..dule.js gzip | 39 kB | 39 kB | ✓ |
main-22cb0cf..dule.js gzip | 5.61 kB | 5.64 kB | |
webpack-07c5..dule.js gzip | 751 B | 751 B | ✓ |
Overall change | 53.6 kB | 53.6 kB |
Legacy Client Bundles (polyfills)
vercel/next.js canary | vercel/next.js 18557-style-nonce | Change | |
---|---|---|---|
polyfills-4b..e242.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages
vercel/next.js canary | vercel/next.js 18557-style-nonce | Change | |
---|---|---|---|
_app-3b0cf13..85f8.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-6f635..c393.js gzip | 3.44 kB | 3.44 kB | ✓ |
hooks-d4ffc3..9e0f.js gzip | 887 B | 887 B | ✓ |
index-17468f..5d83.js gzip | 227 B | 227 B | ✓ |
link-d9a15a0..130a.js gzip | 1.57 kB | 1.57 kB | ✓ |
routerDirect..924c.js gzip | 284 B | 284 B | ✓ |
withRouter-7..c13d.js gzip | 284 B | 284 B | ✓ |
Overall change | 7.98 kB | 7.98 kB | ✓ |
Client Pages Modern
vercel/next.js canary | vercel/next.js 18557-style-nonce | Change | |
---|---|---|---|
_app-75d3a82..dule.js gzip | 625 B | 625 B | ✓ |
_error-f2fcc..dule.js gzip | 2.29 kB | 2.29 kB | ✓ |
hooks-cbf13f..dule.js gzip | 387 B | 387 B | ✓ |
index-b9a643..dule.js gzip | 226 B | 226 B | ✓ |
link-973cce3..dule.js gzip | 1.51 kB | 1.51 kB | ✓ |
routerDirect..dule.js gzip | 284 B | 284 B | ✓ |
withRouter-f..dule.js gzip | 282 B | 282 B | ✓ |
Overall change | 5.6 kB | 5.6 kB | ✓ |
Client Build Manifests
vercel/next.js canary | vercel/next.js 18557-style-nonce | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
_buildManife..dule.js gzip | 330 B | 330 B | ✓ |
Overall change | 651 B | 651 B | ✓ |
Rendered Page Sizes Overall decrease ✓
vercel/next.js canary | vercel/next.js 18557-style-nonce | Change | |
---|---|---|---|
index.html gzip | 971 B | 969 B | -2 B |
link.html gzip | 978 B | 975 B | -3 B |
withRouter.html gzip | 965 B | 963 B | -2 B |
Overall change | 2.91 kB | 2.91 kB | -7 B |
Diffs
Diff for main-288e71c..7e8ff798f.js
@@ -1068,6 +1068,9 @@ _N_E = (window["webpackJsonp_N_E"] = window["webpackJsonp_N_E"] || []).push([
return tag.getAttribute("data-n-href");
})
);
+ var noscript = document.querySelector("noscript[data-n-css]");
+ var nonce =
+ noscript == null ? void 0 : noscript.getAttribute("data-n-css");
styleSheets.forEach(function(_ref7) {
var href = _ref7.href,
text = _ref7.text;
@@ -1076,6 +1079,11 @@ _N_E = (window["webpackJsonp_N_E"] = window["webpackJsonp_N_E"] || []).push([
var styleTag = document.createElement("style");
styleTag.setAttribute("data-n-href", href);
styleTag.setAttribute("media", "x");
+
+ if (nonce) {
+ styleTag.setAttribute("nonce", nonce);
+ }
+
document.head.appendChild(styleTag);
styleTag.appendChild(document.createTextNode(text));
}
Diff for main-b5494d9..2e.module.js
@@ -779,6 +779,9 @@
var currentHrefs = new Set(
currentStyleTags.map(tag => tag.getAttribute("data-n-href"))
);
+ var noscript = document.querySelector("noscript[data-n-css]");
+ var nonce =
+ noscript == null ? void 0 : noscript.getAttribute("data-n-css");
styleSheets.forEach(_ref5 => {
var { href, text } = _ref5;
@@ -786,6 +789,11 @@
var styleTag = document.createElement("style");
styleTag.setAttribute("data-n-href", href);
styleTag.setAttribute("media", "x");
+
+ if (nonce) {
+ styleTag.setAttribute("nonce", nonce);
+ }
+
document.head.appendChild(styleTag);
styleTag.appendChild(document.createTextNode(text));
}
Diff for index.html
@@ -4,10 +4,10 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<meta name="next-head-count" content="2" />
- <noscript data-n-css="true"></noscript>
+ <noscript data-n-css=""></noscript>
<link
rel="preload"
- href="/_next/static/chunks/main-b5494d90160de3f12c2e.module.js"
+ href="/_next/static/chunks/main-3b7e144d19b69d756b5c.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -82,13 +82,13 @@
src="/_next/static/chunks/polyfills-f73ba3fc145972ef83e9.js"
></script>
<script
- src="/_next/static/chunks/main-288e71cf56f7e8ff798f.js"
+ src="/_next/static/chunks/main-d150ac684e24a32f68f6.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/main-b5494d90160de3f12c2e.module.js"
+ src="/_next/static/chunks/main-3b7e144d19b69d756b5c.module.js"
async=""
crossorigin="anonymous"
type="module"
Diff for link.html
@@ -4,10 +4,10 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<meta name="next-head-count" content="2" />
- <noscript data-n-css="true"></noscript>
+ <noscript data-n-css=""></noscript>
<link
rel="preload"
- href="/_next/static/chunks/main-b5494d90160de3f12c2e.module.js"
+ href="/_next/static/chunks/main-3b7e144d19b69d756b5c.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -87,13 +87,13 @@
src="/_next/static/chunks/polyfills-f73ba3fc145972ef83e9.js"
></script>
<script
- src="/_next/static/chunks/main-288e71cf56f7e8ff798f.js"
+ src="/_next/static/chunks/main-d150ac684e24a32f68f6.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/main-b5494d90160de3f12c2e.module.js"
+ src="/_next/static/chunks/main-3b7e144d19b69d756b5c.module.js"
async=""
crossorigin="anonymous"
type="module"
Diff for withRouter.html
@@ -4,10 +4,10 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<meta name="next-head-count" content="2" />
- <noscript data-n-css="true"></noscript>
+ <noscript data-n-css=""></noscript>
<link
rel="preload"
- href="/_next/static/chunks/main-b5494d90160de3f12c2e.module.js"
+ href="/_next/static/chunks/main-3b7e144d19b69d756b5c.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -82,13 +82,13 @@
src="/_next/static/chunks/polyfills-f73ba3fc145972ef83e9.js"
></script>
<script
- src="/_next/static/chunks/main-288e71cf56f7e8ff798f.js"
+ src="/_next/static/chunks/main-d150ac684e24a32f68f6.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/main-b5494d90160de3f12c2e.module.js"
+ src="/_next/static/chunks/main-3b7e144d19b69d756b5c.module.js"
async=""
crossorigin="anonymous"
type="module"
Serverless Mode (Increase detected ⚠️ )
General Overall increase ⚠️
vercel/next.js canary | vercel/next.js 18557-style-nonce | Change | |
---|---|---|---|
buildDuration | 14.5s | 14.8s | |
nodeModulesSize | 84.9 MB | 84.9 MB |
Client Bundles (main, webpack, commons) Overall increase ⚠️
vercel/next.js canary | vercel/next.js 18557-style-nonce | Change | |
---|---|---|---|
677f882d2ed8..d9fb.js gzip | 12.7 kB | 12.7 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-b0b971f..64a5.js gzip | 6.5 kB | N/A | N/A |
webpack-e067..f178.js gzip | 751 B | 751 B | ✓ |
main-65ddebf..18f3.js gzip | N/A | 6.53 kB | N/A |
Overall change | 58.9 kB | 58.9 kB |
Client Bundles (main, webpack, commons) Modern Overall increase ⚠️
vercel/next.js canary | vercel/next.js 18557-style-nonce | Change | |
---|---|---|---|
677f882d2ed8..dule.js gzip | 8.23 kB | 8.23 kB | ✓ |
framework.HA..dule.js gzip | 39 kB | 39 kB | ✓ |
main-22cb0cf..dule.js gzip | 5.61 kB | N/A | N/A |
webpack-07c5..dule.js gzip | 751 B | 751 B | ✓ |
main-52e4325..dule.js gzip | N/A | 5.64 kB | N/A |
Overall change | 53.6 kB | 53.6 kB |
Legacy Client Bundles (polyfills)
vercel/next.js canary | vercel/next.js 18557-style-nonce | Change | |
---|---|---|---|
polyfills-4b..e242.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages
vercel/next.js canary | vercel/next.js 18557-style-nonce | Change | |
---|---|---|---|
_app-3b0cf13..85f8.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-6f635..c393.js gzip | 3.44 kB | 3.44 kB | ✓ |
hooks-d4ffc3..9e0f.js gzip | 887 B | 887 B | ✓ |
index-17468f..5d83.js gzip | 227 B | 227 B | ✓ |
link-d9a15a0..130a.js gzip | 1.57 kB | 1.57 kB | ✓ |
routerDirect..924c.js gzip | 284 B | 284 B | ✓ |
withRouter-7..c13d.js gzip | 284 B | 284 B | ✓ |
Overall change | 7.98 kB | 7.98 kB | ✓ |
Client Pages Modern
vercel/next.js canary | vercel/next.js 18557-style-nonce | Change | |
---|---|---|---|
_app-75d3a82..dule.js gzip | 625 B | 625 B | ✓ |
_error-f2fcc..dule.js gzip | 2.29 kB | 2.29 kB | ✓ |
hooks-cbf13f..dule.js gzip | 387 B | 387 B | ✓ |
index-b9a643..dule.js gzip | 226 B | 226 B | ✓ |
link-973cce3..dule.js gzip | 1.51 kB | 1.51 kB | ✓ |
routerDirect..dule.js gzip | 284 B | 284 B | ✓ |
withRouter-f..dule.js gzip | 282 B | 282 B | ✓ |
Overall change | 5.6 kB | 5.6 kB | ✓ |
Client Build Manifests
vercel/next.js canary | vercel/next.js 18557-style-nonce | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
_buildManife..dule.js gzip | 330 B | 330 B | ✓ |
Overall change | 651 B | 651 B | ✓ |
Serverless bundles Overall increase ⚠️
vercel/next.js canary | vercel/next.js 18557-style-nonce | Change | |
---|---|---|---|
_error.js | 916 kB | 916 kB | |
404.html | 4.61 kB | 4.61 kB | -4 B |
hooks.html | 3.86 kB | 3.86 kB | -4 B |
index.js | 916 kB | 916 kB | |
link.js | 974 kB | 975 kB | |
routerDirect.js | 967 kB | 967 kB | |
withRouter.js | 967 kB | 967 kB | |
Overall change | 4.75 MB | 4.75 MB |
styfle
requested review from
ijjk,
lfades,
Timer and
timneutkens
as code owners
November 13, 2020 19:47
Timer
approved these changes
Nov 13, 2020
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.
Fixes #18557