-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Fix prerendered nested index handling #14383
Conversation
Stats from current PRDefault Server Mode (Increase detected
|
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
buildDuration | 10.3s | 10.5s | |
nodeModulesSize | 67 MB | 67 MB | -160 B |
Page Load Tests Overall increase ✓
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 1.835 | 1.76 | -0.07 |
/ avg req/sec | 1362.58 | 1420.27 | |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.067 | 1.055 | -0.01 |
/error-in-render avg req/sec | 2344.07 | 2369.43 |
Client Bundles (main, webpack, commons) Overall decrease ✓
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
main-HASH.js gzip | 6.51 kB | 6.51 kB | ✓ |
webpack-HASH.js gzip | 746 B | 746 B | ✓ |
de003c3a9d30..75a9.js gzip | 10.5 kB | 10.5 kB | -10 B |
framework.HASH.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 56.9 kB | 56.9 kB | -10 B |
Client Bundles (main, webpack, commons) Modern Overall decrease ✓
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
main-HASH.module.js gzip | 5.6 kB | 5.6 kB | ✓ |
webpack-HASH..dule.js gzip | 746 B | 746 B | ✓ |
de003c3a9d30..dule.js gzip | 6.92 kB | 6.91 kB | -11 B |
framework.HA..dule.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 52.4 kB | 52.4 kB | -11 B |
Legacy Client Bundles (polyfills)
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 26.3 kB | 26.3 kB | ✓ |
Overall change | 26.3 kB | 26.3 kB | ✓ |
Client Pages
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
routerDirect.js gzip | 279 B | 279 B | ✓ |
withRouter.js gzip | 278 B | 278 B | ✓ |
_error.js gzip | 3.37 kB | 3.37 kB | ✓ |
index.js gzip | 222 B | 222 B | ✓ |
link.js gzip | 2.05 kB | 2.05 kB | ✓ |
hooks.js gzip | 881 B | 881 B | ✓ |
_app.js gzip | 1.26 kB | 1.26 kB | ✓ |
Overall change | 8.34 kB | 8.34 kB | ✓ |
Client Pages Modern
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
index.module.js gzip | 223 B | 223 B | ✓ |
routerDirect..dule.js gzip | 281 B | 281 B | ✓ |
withRouter.m..dule.js gzip | 278 B | 278 B | ✓ |
hooks.module.js gzip | 383 B | 383 B | ✓ |
_error.module.js gzip | 2.21 kB | 2.21 kB | ✓ |
link.module.js gzip | 1.52 kB | 1.52 kB | ✓ |
_app.module.js gzip | 604 B | 604 B | ✓ |
Overall change | 5.49 kB | 5.49 kB | ✓ |
Client Build Manifests
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
_buildManifest.js gzip | 270 B | 270 B | ✓ |
_buildManife..dule.js gzip | 274 B | 274 B | ✓ |
Overall change | 544 B | 544 B | ✓ |
Rendered Page Sizes Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
index.html gzip | 955 B | 955 B | ✓ |
link.html gzip | 961 B | 961 B | ✓ |
withRouter.html gzip | 948 B | 949 B | |
Overall change | 2.86 kB | 2.87 kB |
Diffs
Diff for de003c3a9d30..edb6832d1.js
@@ -751,8 +751,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
}
function prepareRoute(path) {
- path = delBasePath(path || "");
- return toRoute(!path || path === "/" ? "/index" : path);
+ return toRoute(delBasePath(path || "/"));
}
function prepareUrlAs(url, as) {
Diff for de003c3a9d30..a9.module.js
@@ -623,8 +623,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
}
function prepareRoute(path) {
- path = delBasePath(path || "");
- return toRoute(!path || path === "/" ? "/index" : path);
+ return toRoute(delBasePath(path || "/"));
}
function prepareUrlAs(url, as) {
Diff for index.html
@@ -24,7 +24,7 @@
/>
<link
rel="preload"
- href="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.6b23cf48f915c17ee2a9.module.js"
+ href="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.4c58437d6282f47599f4.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -117,13 +117,13 @@
type="module"
></script>
<script
- src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.23a257d02f3edb6832d1.js"
+ src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.42c916394cb03c1ec467.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.6b23cf48f915c17ee2a9.module.js"
+ src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.4c58437d6282f47599f4.module.js"
async=""
crossorigin="anonymous"
type="module"
Diff for link.html
@@ -24,7 +24,7 @@
/>
<link
rel="preload"
- href="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.6b23cf48f915c17ee2a9.module.js"
+ href="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.4c58437d6282f47599f4.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -122,13 +122,13 @@
type="module"
></script>
<script
- src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.23a257d02f3edb6832d1.js"
+ src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.42c916394cb03c1ec467.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.6b23cf48f915c17ee2a9.module.js"
+ src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.4c58437d6282f47599f4.module.js"
async=""
crossorigin="anonymous"
type="module"
Diff for withRouter.html
@@ -24,7 +24,7 @@
/>
<link
rel="preload"
- href="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.6b23cf48f915c17ee2a9.module.js"
+ href="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.4c58437d6282f47599f4.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -117,13 +117,13 @@
type="module"
></script>
<script
- src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.23a257d02f3edb6832d1.js"
+ src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.42c916394cb03c1ec467.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.6b23cf48f915c17ee2a9.module.js"
+ src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.4c58437d6282f47599f4.module.js"
async=""
crossorigin="anonymous"
type="module"
Serverless Mode (Decrease detected ✓)
General Overall decrease ✓
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
buildDuration | 11.3s | 11.1s | -159ms |
nodeModulesSize | 67 MB | 67 MB | -160 B |
Client Bundles (main, webpack, commons) Overall decrease ✓
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
main-HASH.js gzip | 6.51 kB | 6.51 kB | ✓ |
webpack-HASH.js gzip | 746 B | 746 B | ✓ |
de003c3a9d30..75a9.js gzip | 10.5 kB | N/A | N/A |
framework.HASH.js gzip | 39.1 kB | 39.1 kB | ✓ |
de003c3a9d30..662f.js gzip | N/A | 10.5 kB | N/A |
Overall change | 56.9 kB | 56.9 kB | -10 B |
Client Bundles (main, webpack, commons) Modern Overall decrease ✓
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
main-HASH.module.js gzip | 5.6 kB | 5.6 kB | ✓ |
webpack-HASH..dule.js gzip | 746 B | 746 B | ✓ |
de003c3a9d30..dule.js gzip | 6.92 kB | N/A | N/A |
framework.HA..dule.js gzip | 39.1 kB | 39.1 kB | ✓ |
de003c3a9d30..dule.js gzip | N/A | 6.91 kB | N/A |
Overall change | 52.4 kB | 52.4 kB | -11 B |
Legacy Client Bundles (polyfills)
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 26.3 kB | 26.3 kB | ✓ |
Overall change | 26.3 kB | 26.3 kB | ✓ |
Client Pages
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
routerDirect.js gzip | 279 B | 279 B | ✓ |
withRouter.js gzip | 278 B | 278 B | ✓ |
_error.js gzip | 3.37 kB | 3.37 kB | ✓ |
index.js gzip | 222 B | 222 B | ✓ |
link.js gzip | 2.05 kB | 2.05 kB | ✓ |
hooks.js gzip | 881 B | 881 B | ✓ |
_app.js gzip | 1.26 kB | 1.26 kB | ✓ |
Overall change | 8.34 kB | 8.34 kB | ✓ |
Client Pages Modern
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
index.module.js gzip | 223 B | 223 B | ✓ |
routerDirect..dule.js gzip | 281 B | 281 B | ✓ |
withRouter.m..dule.js gzip | 278 B | 278 B | ✓ |
hooks.module.js gzip | 383 B | 383 B | ✓ |
_error.module.js gzip | 2.21 kB | 2.21 kB | ✓ |
link.module.js gzip | 1.52 kB | 1.52 kB | ✓ |
_app.module.js gzip | 604 B | 604 B | ✓ |
Overall change | 5.49 kB | 5.49 kB | ✓ |
Client Build Manifests
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
_buildManifest.js gzip | 270 B | 270 B | ✓ |
_buildManife..dule.js gzip | 274 B | 274 B | ✓ |
Overall change | 544 B | 544 B | ✓ |
Serverless bundles Overall decrease ✓
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
_error.js | 875 kB | 875 kB | ✓ |
404.html | 4.17 kB | 4.17 kB | ✓ |
hooks.html | 3.79 kB | 3.79 kB | ✓ |
index.js | 875 kB | 875 kB | ✓ |
link.js | 914 kB | 914 kB | -49 B |
routerDirect.js | 906 kB | 906 kB | -49 B |
withRouter.js | 906 kB | 906 kB | -49 B |
Overall change | 4.48 MB | 4.48 MB | -147 B |
This comment has been minimized.
This comment has been minimized.
Stats from current PRDefault Server Mode (Increase detected
|
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
buildDuration | 11.6s | 11.6s | |
nodeModulesSize | 67 MB | 67 MB |
Page Load Tests Overall increase ✓
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 1.964 | 2.003 | |
/ avg req/sec | 1272.61 | 1247.93 | -24.68 |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.236 | 1.175 | -0.06 |
/error-in-render avg req/sec | 2022.96 | 2127.85 |
Client Bundles (main, webpack, commons) Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
main-HASH.js gzip | 6.51 kB | 6.49 kB | -25 B |
webpack-HASH.js gzip | 746 B | 746 B | ✓ |
de003c3a9d30..75a9.js gzip | 10.5 kB | 10.6 kB | |
framework.HASH.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 56.9 kB | 57 kB |
Client Bundles (main, webpack, commons) Modern Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
main-HASH.module.js gzip | 5.6 kB | 5.57 kB | -30 B |
webpack-HASH..dule.js gzip | 746 B | 746 B | ✓ |
de003c3a9d30..dule.js gzip | 6.92 kB | 6.97 kB | |
framework.HA..dule.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 52.4 kB | 52.4 kB |
Legacy Client Bundles (polyfills)
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 26.3 kB | 26.3 kB | ✓ |
Overall change | 26.3 kB | 26.3 kB | ✓ |
Client Pages
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
routerDirect.js gzip | 279 B | 279 B | ✓ |
withRouter.js gzip | 278 B | 278 B | ✓ |
_error.js gzip | 3.37 kB | 3.37 kB | ✓ |
index.js gzip | 222 B | 222 B | ✓ |
link.js gzip | 2.05 kB | 2.05 kB | ✓ |
hooks.js gzip | 881 B | 881 B | ✓ |
_app.js gzip | 1.26 kB | 1.26 kB | ✓ |
Overall change | 8.34 kB | 8.34 kB | ✓ |
Client Pages Modern
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
index.module.js gzip | 223 B | 223 B | ✓ |
routerDirect..dule.js gzip | 281 B | 281 B | ✓ |
withRouter.m..dule.js gzip | 278 B | 278 B | ✓ |
hooks.module.js gzip | 383 B | 383 B | ✓ |
_error.module.js gzip | 2.21 kB | 2.21 kB | ✓ |
link.module.js gzip | 1.52 kB | 1.52 kB | ✓ |
_app.module.js gzip | 604 B | 604 B | ✓ |
Overall change | 5.49 kB | 5.49 kB | ✓ |
Client Build Manifests
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
_buildManifest.js gzip | 270 B | 270 B | ✓ |
_buildManife..dule.js gzip | 274 B | 274 B | ✓ |
Overall change | 544 B | 544 B | ✓ |
Rendered Page Sizes Overall decrease ✓
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
index.html gzip | 955 B | 954 B | -1 B |
link.html gzip | 961 B | 960 B | -1 B |
withRouter.html gzip | 948 B | 947 B | -1 B |
Overall change | 2.86 kB | 2.86 kB | -3 B |
Diffs
Diff for de003c3a9d30..edb6832d1.js
@@ -646,6 +646,23 @@
/***/
},
+ /***/ dF3r: /***/ function(module, exports, __webpack_require__) {
+ "use strict";
+
+ exports.__esModule = true;
+ exports.getPageAssetPath = getPageAssetPath;
+
+ function getPageAssetPath(route) {
+ return route === "/"
+ ? "/index"
+ : /^\/index(\/|$)/.test(route)
+ ? "/index".concat(route)
+ : "".concat(route);
+ }
+
+ /***/
+ },
+
/***/ dZ6Y: /***/ function(module, exports, __webpack_require__) {
"use strict";
@@ -726,6 +743,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
var _routeRegex = __webpack_require__("YTqd");
+ var _assetPath = __webpack_require__("dF3r");
+
function _interopRequireDefault(obj) {
return obj && obj.__esModule
? obj
@@ -751,8 +770,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
}
function prepareRoute(path) {
- path = delBasePath(path || "");
- return toRoute(!path || path === "/" ? "/index" : path);
+ return toRoute(delBasePath(path || "") || "/");
}
function prepareUrlAs(url, as) {
@@ -779,7 +797,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
// @ts-ignore __NEXT_DATA__
"/_next/data/"
.concat(__NEXT_DATA__.buildId)
- .concat(pathname, ".json")
+ .concat((0, _assetPath.getPageAssetPath)(pathname), ".json")
),
query: query
}),
Diff for de003c3a9d30..a9.module.js
@@ -526,6 +526,23 @@
/***/
},
+ /***/ dF3r: /***/ function(module, exports, __webpack_require__) {
+ "use strict";
+
+ exports.__esModule = true;
+ exports.getPageAssetPath = getPageAssetPath;
+
+ function getPageAssetPath(route) {
+ return route === "/"
+ ? "/index"
+ : /^\/index(\/|$)/.test(route)
+ ? "/index".concat(route)
+ : "".concat(route);
+ }
+
+ /***/
+ },
+
/***/ dZ6Y: /***/ function(module, exports, __webpack_require__) {
"use strict";
@@ -598,6 +615,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
var _routeRegex = __webpack_require__("YTqd");
+ var _assetPath = __webpack_require__("dF3r");
+
function _interopRequireDefault(obj) {
return obj && obj.__esModule
? obj
@@ -623,8 +642,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
}
function prepareRoute(path) {
- path = delBasePath(path || "");
- return toRoute(!path || path === "/" ? "/index" : path);
+ return toRoute(delBasePath(path || "") || "/");
}
function prepareUrlAs(url, as) {
@@ -651,7 +669,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
// @ts-ignore __NEXT_DATA__
"/_next/data/"
.concat(__NEXT_DATA__.buildId)
- .concat(pathname, ".json")
+ .concat((0, _assetPath.getPageAssetPath)(pathname), ".json")
),
query
}),
Diff for main-HASH.js
@@ -1432,7 +1432,6 @@
var _interopRequireDefault = __webpack_require__("TqRt");
exports.__esModule = true;
- exports.getAssetPath = getAssetPath;
exports["default"] = void 0;
var _url = __webpack_require__("QmWs");
@@ -1445,6 +1444,8 @@
var _routeRegex = __webpack_require__("YTqd");
+ var _assetPath = __webpack_require__("dF3r");
+
function hasRel(rel, link) {
try {
link = document.createElement("link");
@@ -1478,14 +1479,6 @@
return route.replace(/\/$/, "");
}
- function getAssetPath(route) {
- return route === "/"
- ? "/index"
- : /^\/index(\/|$)/.test(route)
- ? "/index".concat(route)
- : "".concat(route);
- }
-
function appendLink(href, rel, as) {
return new Promise(function(res, rej, link) {
link = document.createElement("link");
@@ -1578,7 +1571,7 @@
var getHrefForSlug =
/** @type string */
function getHrefForSlug(path) {
- var dataRoute = getAssetPath(path);
+ var dataRoute = (0, _assetPath.getPageAssetPath)(path);
return ""
.concat(_this2.assetPrefix, "/_next/data/")
.concat(_this2.buildId)
Diff for main-HASH.module.js
@@ -1073,7 +1073,6 @@
var _interopRequireDefault = __webpack_require__("TqRt");
exports.__esModule = true;
- exports.getAssetPath = getAssetPath;
exports.default = void 0;
var _url = __webpack_require__("QmWs");
@@ -1086,6 +1085,8 @@
var _routeRegex = __webpack_require__("YTqd");
+ var _assetPath = __webpack_require__("dF3r");
+
function hasRel(rel, link) {
try {
link = document.createElement("link");
@@ -1119,14 +1120,6 @@
return route.replace(/\/$/, "");
}
- function getAssetPath(route) {
- return route === "/"
- ? "/index"
- : /^\/index(\/|$)/.test(route)
- ? "/index".concat(route)
- : "".concat(route);
- }
-
function appendLink(href, rel, as) {
return new Promise((res, rej, link) => {
link = document.createElement("link");
@@ -1203,7 +1196,7 @@
var getHrefForSlug =
/** @type string */
path => {
- var dataRoute = getAssetPath(path);
+ var dataRoute = (0, _assetPath.getPageAssetPath)(path);
return ""
.concat(this.assetPrefix, "/_next/data/")
.concat(this.buildId)
Diff for index.html
@@ -6,7 +6,7 @@
<meta name="next-head-count" content="2" />
<link
rel="preload"
- href="/_next/static/runtime/main-59c45a8be830c5f95780.module.js"
+ href="/_next/static/runtime/main-276c3bc53de7946cf810.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -24,7 +24,7 @@
/>
<link
rel="preload"
- href="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.6b23cf48f915c17ee2a9.module.js"
+ href="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.f3575c35870e8e4c1b88.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -81,13 +81,13 @@
src="/_next/static/runtime/polyfills-eaf5488e20ec921d713f.js"
></script>
<script
- src="/_next/static/runtime/main-d371df75a64e2540b042.js"
+ src="/_next/static/runtime/main-f7ca964efda7e88fd517.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/runtime/main-59c45a8be830c5f95780.module.js"
+ src="/_next/static/runtime/main-276c3bc53de7946cf810.module.js"
async=""
crossorigin="anonymous"
type="module"
@@ -117,13 +117,13 @@
type="module"
></script>
<script
- src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.23a257d02f3edb6832d1.js"
+ src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.35531e0bd8c50efe0031.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.6b23cf48f915c17ee2a9.module.js"
+ src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.f3575c35870e8e4c1b88.module.js"
async=""
crossorigin="anonymous"
type="module"
Diff for link.html
@@ -6,7 +6,7 @@
<meta name="next-head-count" content="2" />
<link
rel="preload"
- href="/_next/static/runtime/main-59c45a8be830c5f95780.module.js"
+ href="/_next/static/runtime/main-276c3bc53de7946cf810.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -24,7 +24,7 @@
/>
<link
rel="preload"
- href="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.6b23cf48f915c17ee2a9.module.js"
+ href="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.f3575c35870e8e4c1b88.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -86,13 +86,13 @@
src="/_next/static/runtime/polyfills-eaf5488e20ec921d713f.js"
></script>
<script
- src="/_next/static/runtime/main-d371df75a64e2540b042.js"
+ src="/_next/static/runtime/main-f7ca964efda7e88fd517.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/runtime/main-59c45a8be830c5f95780.module.js"
+ src="/_next/static/runtime/main-276c3bc53de7946cf810.module.js"
async=""
crossorigin="anonymous"
type="module"
@@ -122,13 +122,13 @@
type="module"
></script>
<script
- src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.23a257d02f3edb6832d1.js"
+ src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.35531e0bd8c50efe0031.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.6b23cf48f915c17ee2a9.module.js"
+ src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.f3575c35870e8e4c1b88.module.js"
async=""
crossorigin="anonymous"
type="module"
Diff for withRouter.html
@@ -6,7 +6,7 @@
<meta name="next-head-count" content="2" />
<link
rel="preload"
- href="/_next/static/runtime/main-59c45a8be830c5f95780.module.js"
+ href="/_next/static/runtime/main-276c3bc53de7946cf810.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -24,7 +24,7 @@
/>
<link
rel="preload"
- href="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.6b23cf48f915c17ee2a9.module.js"
+ href="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.f3575c35870e8e4c1b88.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -81,13 +81,13 @@
src="/_next/static/runtime/polyfills-eaf5488e20ec921d713f.js"
></script>
<script
- src="/_next/static/runtime/main-d371df75a64e2540b042.js"
+ src="/_next/static/runtime/main-f7ca964efda7e88fd517.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/runtime/main-59c45a8be830c5f95780.module.js"
+ src="/_next/static/runtime/main-276c3bc53de7946cf810.module.js"
async=""
crossorigin="anonymous"
type="module"
@@ -117,13 +117,13 @@
type="module"
></script>
<script
- src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.23a257d02f3edb6832d1.js"
+ src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.35531e0bd8c50efe0031.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.6b23cf48f915c17ee2a9.module.js"
+ src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.f3575c35870e8e4c1b88.module.js"
async=""
crossorigin="anonymous"
type="module"
Serverless Mode (Increase detected ⚠️ )
General Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
buildDuration | 12.6s | 12.6s | |
nodeModulesSize | 67 MB | 67 MB |
Client Bundles (main, webpack, commons) Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
main-HASH.js gzip | 6.51 kB | 6.49 kB | -25 B |
webpack-HASH.js gzip | 746 B | 746 B | ✓ |
de003c3a9d30..75a9.js gzip | 10.5 kB | N/A | N/A |
framework.HASH.js gzip | 39.1 kB | 39.1 kB | ✓ |
de003c3a9d30..8735.js gzip | N/A | 10.6 kB | N/A |
Overall change | 56.9 kB | 57 kB |
Client Bundles (main, webpack, commons) Modern Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
main-HASH.module.js gzip | 5.6 kB | 5.57 kB | -30 B |
webpack-HASH..dule.js gzip | 746 B | 746 B | ✓ |
de003c3a9d30..dule.js gzip | 6.92 kB | N/A | N/A |
framework.HA..dule.js gzip | 39.1 kB | 39.1 kB | ✓ |
de003c3a9d30..dule.js gzip | N/A | 6.97 kB | N/A |
Overall change | 52.4 kB | 52.4 kB |
Legacy Client Bundles (polyfills)
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 26.3 kB | 26.3 kB | ✓ |
Overall change | 26.3 kB | 26.3 kB | ✓ |
Client Pages
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
routerDirect.js gzip | 279 B | 279 B | ✓ |
withRouter.js gzip | 278 B | 278 B | ✓ |
_error.js gzip | 3.37 kB | 3.37 kB | ✓ |
index.js gzip | 222 B | 222 B | ✓ |
link.js gzip | 2.05 kB | 2.05 kB | ✓ |
hooks.js gzip | 881 B | 881 B | ✓ |
_app.js gzip | 1.26 kB | 1.26 kB | ✓ |
Overall change | 8.34 kB | 8.34 kB | ✓ |
Client Pages Modern
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
index.module.js gzip | 223 B | 223 B | ✓ |
routerDirect..dule.js gzip | 281 B | 281 B | ✓ |
withRouter.m..dule.js gzip | 278 B | 278 B | ✓ |
hooks.module.js gzip | 383 B | 383 B | ✓ |
_error.module.js gzip | 2.21 kB | 2.21 kB | ✓ |
link.module.js gzip | 1.52 kB | 1.52 kB | ✓ |
_app.module.js gzip | 604 B | 604 B | ✓ |
Overall change | 5.49 kB | 5.49 kB | ✓ |
Client Build Manifests
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
_buildManifest.js gzip | 270 B | 270 B | ✓ |
_buildManife..dule.js gzip | 274 B | 274 B | ✓ |
Overall change | 544 B | 544 B | ✓ |
Serverless bundles Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
_error.js | 875 kB | 875 kB | ✓ |
404.html | 4.17 kB | 4.17 kB | ✓ |
hooks.html | 3.79 kB | 3.79 kB | ✓ |
index.js | 875 kB | 875 kB | ✓ |
link.js | 914 kB | 914 kB | |
routerDirect.js | 906 kB | 907 kB | |
withRouter.js | 906 kB | 907 kB | |
Overall change | 4.48 MB | 4.49 MB |
Stats from current PRDefault Server Mode (Increase detected
|
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
buildDuration | 11s | 10.9s | -127ms |
nodeModulesSize | 67 MB | 67 MB |
Page Load Tests Overall decrease ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 1.823 | 1.882 | |
/ avg req/sec | 1371.68 | 1328.63 | -43.05 |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.126 | 1.117 | -0.01 |
/error-in-render avg req/sec | 2220.48 | 2238.42 |
Client Bundles (main, webpack, commons) Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
main-HASH.js gzip | 6.51 kB | 6.49 kB | -25 B |
webpack-HASH.js gzip | 746 B | 746 B | ✓ |
de003c3a9d30..75a9.js gzip | 10.5 kB | 10.6 kB | |
framework.HASH.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 56.9 kB | 57 kB |
Client Bundles (main, webpack, commons) Modern Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
main-HASH.module.js gzip | 5.6 kB | 5.57 kB | -30 B |
webpack-HASH..dule.js gzip | 746 B | 746 B | ✓ |
de003c3a9d30..dule.js gzip | 6.92 kB | 6.97 kB | |
framework.HA..dule.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 52.4 kB | 52.4 kB |
Legacy Client Bundles (polyfills)
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 26.3 kB | 26.3 kB | ✓ |
Overall change | 26.3 kB | 26.3 kB | ✓ |
Client Pages
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
routerDirect.js gzip | 279 B | 279 B | ✓ |
withRouter.js gzip | 278 B | 278 B | ✓ |
_error.js gzip | 3.37 kB | 3.37 kB | ✓ |
index.js gzip | 222 B | 222 B | ✓ |
link.js gzip | 2.05 kB | 2.05 kB | ✓ |
hooks.js gzip | 881 B | 881 B | ✓ |
_app.js gzip | 1.26 kB | 1.26 kB | ✓ |
Overall change | 8.34 kB | 8.34 kB | ✓ |
Client Pages Modern
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
index.module.js gzip | 223 B | 223 B | ✓ |
routerDirect..dule.js gzip | 281 B | 281 B | ✓ |
withRouter.m..dule.js gzip | 278 B | 278 B | ✓ |
hooks.module.js gzip | 383 B | 383 B | ✓ |
_error.module.js gzip | 2.21 kB | 2.21 kB | ✓ |
link.module.js gzip | 1.52 kB | 1.52 kB | ✓ |
_app.module.js gzip | 604 B | 604 B | ✓ |
Overall change | 5.49 kB | 5.49 kB | ✓ |
Client Build Manifests
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
_buildManifest.js gzip | 270 B | 270 B | ✓ |
_buildManife..dule.js gzip | 274 B | 274 B | ✓ |
Overall change | 544 B | 544 B | ✓ |
Rendered Page Sizes Overall decrease ✓
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
index.html gzip | 955 B | 954 B | -1 B |
link.html gzip | 961 B | 960 B | -1 B |
withRouter.html gzip | 948 B | 947 B | -1 B |
Overall change | 2.86 kB | 2.86 kB | -3 B |
Diffs
Diff for de003c3a9d30..edb6832d1.js
@@ -646,6 +646,23 @@
/***/
},
+ /***/ dF3r: /***/ function(module, exports, __webpack_require__) {
+ "use strict";
+
+ exports.__esModule = true;
+ exports.getPageAssetPath = getPageAssetPath;
+
+ function getPageAssetPath(route) {
+ return route === "/"
+ ? "/index"
+ : /^\/index(\/|$)/.test(route)
+ ? "/index".concat(route)
+ : "".concat(route);
+ }
+
+ /***/
+ },
+
/***/ dZ6Y: /***/ function(module, exports, __webpack_require__) {
"use strict";
@@ -726,6 +743,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
var _routeRegex = __webpack_require__("YTqd");
+ var _assetPath = __webpack_require__("dF3r");
+
function _interopRequireDefault(obj) {
return obj && obj.__esModule
? obj
@@ -751,8 +770,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
}
function prepareRoute(path) {
- path = delBasePath(path || "");
- return toRoute(!path || path === "/" ? "/index" : path);
+ return toRoute(delBasePath(path || "") || "/");
}
function prepareUrlAs(url, as) {
@@ -779,7 +797,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
// @ts-ignore __NEXT_DATA__
"/_next/data/"
.concat(__NEXT_DATA__.buildId)
- .concat(pathname, ".json")
+ .concat((0, _assetPath.getPageAssetPath)(pathname), ".json")
),
query: query
}),
Diff for de003c3a9d30..a9.module.js
@@ -526,6 +526,23 @@
/***/
},
+ /***/ dF3r: /***/ function(module, exports, __webpack_require__) {
+ "use strict";
+
+ exports.__esModule = true;
+ exports.getPageAssetPath = getPageAssetPath;
+
+ function getPageAssetPath(route) {
+ return route === "/"
+ ? "/index"
+ : /^\/index(\/|$)/.test(route)
+ ? "/index".concat(route)
+ : "".concat(route);
+ }
+
+ /***/
+ },
+
/***/ dZ6Y: /***/ function(module, exports, __webpack_require__) {
"use strict";
@@ -598,6 +615,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
var _routeRegex = __webpack_require__("YTqd");
+ var _assetPath = __webpack_require__("dF3r");
+
function _interopRequireDefault(obj) {
return obj && obj.__esModule
? obj
@@ -623,8 +642,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
}
function prepareRoute(path) {
- path = delBasePath(path || "");
- return toRoute(!path || path === "/" ? "/index" : path);
+ return toRoute(delBasePath(path || "") || "/");
}
function prepareUrlAs(url, as) {
@@ -651,7 +669,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
// @ts-ignore __NEXT_DATA__
"/_next/data/"
.concat(__NEXT_DATA__.buildId)
- .concat(pathname, ".json")
+ .concat((0, _assetPath.getPageAssetPath)(pathname), ".json")
),
query
}),
Diff for main-HASH.js
@@ -1432,7 +1432,6 @@
var _interopRequireDefault = __webpack_require__("TqRt");
exports.__esModule = true;
- exports.getAssetPath = getAssetPath;
exports["default"] = void 0;
var _url = __webpack_require__("QmWs");
@@ -1445,6 +1444,8 @@
var _routeRegex = __webpack_require__("YTqd");
+ var _assetPath = __webpack_require__("dF3r");
+
function hasRel(rel, link) {
try {
link = document.createElement("link");
@@ -1478,14 +1479,6 @@
return route.replace(/\/$/, "");
}
- function getAssetPath(route) {
- return route === "/"
- ? "/index"
- : /^\/index(\/|$)/.test(route)
- ? "/index".concat(route)
- : "".concat(route);
- }
-
function appendLink(href, rel, as) {
return new Promise(function(res, rej, link) {
link = document.createElement("link");
@@ -1578,7 +1571,7 @@
var getHrefForSlug =
/** @type string */
function getHrefForSlug(path) {
- var dataRoute = getAssetPath(path);
+ var dataRoute = (0, _assetPath.getPageAssetPath)(path);
return ""
.concat(_this2.assetPrefix, "/_next/data/")
.concat(_this2.buildId)
Diff for main-HASH.module.js
@@ -1073,7 +1073,6 @@
var _interopRequireDefault = __webpack_require__("TqRt");
exports.__esModule = true;
- exports.getAssetPath = getAssetPath;
exports.default = void 0;
var _url = __webpack_require__("QmWs");
@@ -1086,6 +1085,8 @@
var _routeRegex = __webpack_require__("YTqd");
+ var _assetPath = __webpack_require__("dF3r");
+
function hasRel(rel, link) {
try {
link = document.createElement("link");
@@ -1119,14 +1120,6 @@
return route.replace(/\/$/, "");
}
- function getAssetPath(route) {
- return route === "/"
- ? "/index"
- : /^\/index(\/|$)/.test(route)
- ? "/index".concat(route)
- : "".concat(route);
- }
-
function appendLink(href, rel, as) {
return new Promise((res, rej, link) => {
link = document.createElement("link");
@@ -1203,7 +1196,7 @@
var getHrefForSlug =
/** @type string */
path => {
- var dataRoute = getAssetPath(path);
+ var dataRoute = (0, _assetPath.getPageAssetPath)(path);
return ""
.concat(this.assetPrefix, "/_next/data/")
.concat(this.buildId)
Diff for index.html
@@ -6,7 +6,7 @@
<meta name="next-head-count" content="2" />
<link
rel="preload"
- href="/_next/static/runtime/main-59c45a8be830c5f95780.module.js"
+ href="/_next/static/runtime/main-276c3bc53de7946cf810.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -24,7 +24,7 @@
/>
<link
rel="preload"
- href="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.6b23cf48f915c17ee2a9.module.js"
+ href="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.f3575c35870e8e4c1b88.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -81,13 +81,13 @@
src="/_next/static/runtime/polyfills-eaf5488e20ec921d713f.js"
></script>
<script
- src="/_next/static/runtime/main-d371df75a64e2540b042.js"
+ src="/_next/static/runtime/main-f7ca964efda7e88fd517.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/runtime/main-59c45a8be830c5f95780.module.js"
+ src="/_next/static/runtime/main-276c3bc53de7946cf810.module.js"
async=""
crossorigin="anonymous"
type="module"
@@ -117,13 +117,13 @@
type="module"
></script>
<script
- src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.23a257d02f3edb6832d1.js"
+ src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.35531e0bd8c50efe0031.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.6b23cf48f915c17ee2a9.module.js"
+ src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.f3575c35870e8e4c1b88.module.js"
async=""
crossorigin="anonymous"
type="module"
Diff for link.html
@@ -6,7 +6,7 @@
<meta name="next-head-count" content="2" />
<link
rel="preload"
- href="/_next/static/runtime/main-59c45a8be830c5f95780.module.js"
+ href="/_next/static/runtime/main-276c3bc53de7946cf810.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -24,7 +24,7 @@
/>
<link
rel="preload"
- href="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.6b23cf48f915c17ee2a9.module.js"
+ href="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.f3575c35870e8e4c1b88.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -86,13 +86,13 @@
src="/_next/static/runtime/polyfills-eaf5488e20ec921d713f.js"
></script>
<script
- src="/_next/static/runtime/main-d371df75a64e2540b042.js"
+ src="/_next/static/runtime/main-f7ca964efda7e88fd517.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/runtime/main-59c45a8be830c5f95780.module.js"
+ src="/_next/static/runtime/main-276c3bc53de7946cf810.module.js"
async=""
crossorigin="anonymous"
type="module"
@@ -122,13 +122,13 @@
type="module"
></script>
<script
- src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.23a257d02f3edb6832d1.js"
+ src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.35531e0bd8c50efe0031.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.6b23cf48f915c17ee2a9.module.js"
+ src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.f3575c35870e8e4c1b88.module.js"
async=""
crossorigin="anonymous"
type="module"
Diff for withRouter.html
@@ -6,7 +6,7 @@
<meta name="next-head-count" content="2" />
<link
rel="preload"
- href="/_next/static/runtime/main-59c45a8be830c5f95780.module.js"
+ href="/_next/static/runtime/main-276c3bc53de7946cf810.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -24,7 +24,7 @@
/>
<link
rel="preload"
- href="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.6b23cf48f915c17ee2a9.module.js"
+ href="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.f3575c35870e8e4c1b88.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -81,13 +81,13 @@
src="/_next/static/runtime/polyfills-eaf5488e20ec921d713f.js"
></script>
<script
- src="/_next/static/runtime/main-d371df75a64e2540b042.js"
+ src="/_next/static/runtime/main-f7ca964efda7e88fd517.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/runtime/main-59c45a8be830c5f95780.module.js"
+ src="/_next/static/runtime/main-276c3bc53de7946cf810.module.js"
async=""
crossorigin="anonymous"
type="module"
@@ -117,13 +117,13 @@
type="module"
></script>
<script
- src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.23a257d02f3edb6832d1.js"
+ src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.35531e0bd8c50efe0031.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.6b23cf48f915c17ee2a9.module.js"
+ src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.f3575c35870e8e4c1b88.module.js"
async=""
crossorigin="anonymous"
type="module"
Serverless Mode (Increase detected ⚠️ )
General Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
buildDuration | 11.7s | 11.9s | |
nodeModulesSize | 67 MB | 67 MB |
Client Bundles (main, webpack, commons) Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
main-HASH.js gzip | 6.51 kB | 6.49 kB | -25 B |
webpack-HASH.js gzip | 746 B | 746 B | ✓ |
de003c3a9d30..75a9.js gzip | 10.5 kB | N/A | N/A |
framework.HASH.js gzip | 39.1 kB | 39.1 kB | ✓ |
de003c3a9d30..8735.js gzip | N/A | 10.6 kB | N/A |
Overall change | 56.9 kB | 57 kB |
Client Bundles (main, webpack, commons) Modern Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
main-HASH.module.js gzip | 5.6 kB | 5.57 kB | -30 B |
webpack-HASH..dule.js gzip | 746 B | 746 B | ✓ |
de003c3a9d30..dule.js gzip | 6.92 kB | N/A | N/A |
framework.HA..dule.js gzip | 39.1 kB | 39.1 kB | ✓ |
de003c3a9d30..dule.js gzip | N/A | 6.97 kB | N/A |
Overall change | 52.4 kB | 52.4 kB |
Legacy Client Bundles (polyfills)
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 26.3 kB | 26.3 kB | ✓ |
Overall change | 26.3 kB | 26.3 kB | ✓ |
Client Pages
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
routerDirect.js gzip | 279 B | 279 B | ✓ |
withRouter.js gzip | 278 B | 278 B | ✓ |
_error.js gzip | 3.37 kB | 3.37 kB | ✓ |
index.js gzip | 222 B | 222 B | ✓ |
link.js gzip | 2.05 kB | 2.05 kB | ✓ |
hooks.js gzip | 881 B | 881 B | ✓ |
_app.js gzip | 1.26 kB | 1.26 kB | ✓ |
Overall change | 8.34 kB | 8.34 kB | ✓ |
Client Pages Modern
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
index.module.js gzip | 223 B | 223 B | ✓ |
routerDirect..dule.js gzip | 281 B | 281 B | ✓ |
withRouter.m..dule.js gzip | 278 B | 278 B | ✓ |
hooks.module.js gzip | 383 B | 383 B | ✓ |
_error.module.js gzip | 2.21 kB | 2.21 kB | ✓ |
link.module.js gzip | 1.52 kB | 1.52 kB | ✓ |
_app.module.js gzip | 604 B | 604 B | ✓ |
Overall change | 5.49 kB | 5.49 kB | ✓ |
Client Build Manifests
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
_buildManifest.js gzip | 270 B | 270 B | ✓ |
_buildManife..dule.js gzip | 274 B | 274 B | ✓ |
Overall change | 544 B | 544 B | ✓ |
Serverless bundles Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
_error.js | 875 kB | 875 kB | ✓ |
404.html | 4.17 kB | 4.17 kB | ✓ |
hooks.html | 3.79 kB | 3.79 kB | ✓ |
index.js | 875 kB | 875 kB | ✓ |
link.js | 914 kB | 914 kB | |
routerDirect.js | 906 kB | 907 kB | |
withRouter.js | 906 kB | 907 kB | |
Overall change | 4.48 MB | 4.49 MB |
Stats from current PRDefault Server Mode (Increase detected
|
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
buildDuration | 13s | 13.3s | |
nodeModulesSize | 67 MB | 67 MB |
Page Load Tests Overall decrease ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.211 | 2.318 | |
/ avg req/sec | 1130.85 | 1078.74 | -52.11 |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.45 | 1.606 | |
/error-in-render avg req/sec | 1723.82 | 1557.05 | -166.77 |
Client Bundles (main, webpack, commons) Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
main-HASH.js gzip | 6.51 kB | 6.49 kB | -26 B |
webpack-HASH.js gzip | 746 B | 746 B | ✓ |
de003c3a9d30..75a9.js gzip | 10.5 kB | 10.7 kB | |
framework.HASH.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 56.9 kB | 57 kB |
Client Bundles (main, webpack, commons) Modern Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
main-HASH.module.js gzip | 5.6 kB | 5.57 kB | -29 B |
webpack-HASH..dule.js gzip | 746 B | 746 B | ✓ |
de003c3a9d30..dule.js gzip | 6.92 kB | 7.03 kB | |
framework.HA..dule.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 52.4 kB | 52.5 kB |
Legacy Client Bundles (polyfills)
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 26.3 kB | 26.3 kB | ✓ |
Overall change | 26.3 kB | 26.3 kB | ✓ |
Client Pages
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
routerDirect.js gzip | 279 B | 279 B | ✓ |
withRouter.js gzip | 278 B | 278 B | ✓ |
_error.js gzip | 3.37 kB | 3.37 kB | ✓ |
index.js gzip | 222 B | 222 B | ✓ |
link.js gzip | 2.05 kB | 2.05 kB | ✓ |
hooks.js gzip | 881 B | 881 B | ✓ |
_app.js gzip | 1.26 kB | 1.26 kB | ✓ |
Overall change | 8.34 kB | 8.34 kB | ✓ |
Client Pages Modern
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
index.module.js gzip | 223 B | 223 B | ✓ |
routerDirect..dule.js gzip | 281 B | 281 B | ✓ |
withRouter.m..dule.js gzip | 278 B | 278 B | ✓ |
hooks.module.js gzip | 383 B | 383 B | ✓ |
_error.module.js gzip | 2.21 kB | 2.21 kB | ✓ |
link.module.js gzip | 1.52 kB | 1.52 kB | ✓ |
_app.module.js gzip | 604 B | 604 B | ✓ |
Overall change | 5.49 kB | 5.49 kB | ✓ |
Client Build Manifests
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
_buildManifest.js gzip | 270 B | 270 B | ✓ |
_buildManife..dule.js gzip | 274 B | 274 B | ✓ |
Overall change | 544 B | 544 B | ✓ |
Rendered Page Sizes Overall decrease ✓
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
index.html gzip | 955 B | 951 B | -4 B |
link.html gzip | 961 B | 958 B | -3 B |
withRouter.html gzip | 948 B | 944 B | -4 B |
Overall change | 2.86 kB | 2.85 kB | -11 B |
Diffs
Diff for de003c3a9d30..edb6832d1.js
@@ -646,6 +646,49 @@
/***/
},
+ /***/ dF3r: /***/ function(module, exports, __webpack_require__) {
+ "use strict";
+
+ exports.__esModule = true;
+ exports.getPageAssetPath = getPageAssetPath;
+ exports.getAssetPagePath = getAssetPagePath;
+
+ function getPageAssetPath(route) {
+ var ext =
+ arguments.length > 1 && arguments[1] !== undefined
+ ? arguments[1]
+ : "";
+ var path =
+ route === "/"
+ ? "/index"
+ : /^\/index(\/|$)/.test(route)
+ ? "/index".concat(route)
+ : "".concat(route);
+ return path + ext;
+ }
+
+ function getAssetPagePath(assetPath) {
+ var ext =
+ arguments.length > 1 && arguments[1] !== undefined
+ ? arguments[1]
+ : "";
+ assetPath =
+ ext && assetPath.endsWith(ext)
+ ? assetPath.slice(0, -ext.length)
+ : assetPath;
+
+ if (assetPath.startsWith("/index/")) {
+ assetPath = assetPath.slice(6);
+ } else if (assetPath === "/index") {
+ assetPath = "/";
+ }
+
+ return assetPath;
+ }
+
+ /***/
+ },
+
/***/ dZ6Y: /***/ function(module, exports, __webpack_require__) {
"use strict";
@@ -726,6 +769,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
var _routeRegex = __webpack_require__("YTqd");
+ var _assetPath = __webpack_require__("dF3r");
+
function _interopRequireDefault(obj) {
return obj && obj.__esModule
? obj
@@ -751,8 +796,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
}
function prepareRoute(path) {
- path = delBasePath(path || "");
- return toRoute(!path || path === "/" ? "/index" : path);
+ return toRoute(delBasePath(path || "") || "/");
}
function prepareUrlAs(url, as) {
@@ -779,7 +823,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
// @ts-ignore __NEXT_DATA__
"/_next/data/"
.concat(__NEXT_DATA__.buildId)
- .concat(pathname, ".json")
+ .concat((0, _assetPath.getPageAssetPath)(pathname, ".json"))
),
query: query
}),
Diff for de003c3a9d30..a9.module.js
@@ -526,6 +526,49 @@
/***/
},
+ /***/ dF3r: /***/ function(module, exports, __webpack_require__) {
+ "use strict";
+
+ exports.__esModule = true;
+ exports.getPageAssetPath = getPageAssetPath;
+ exports.getAssetPagePath = getAssetPagePath;
+
+ function getPageAssetPath(route) {
+ var ext =
+ arguments.length > 1 && arguments[1] !== undefined
+ ? arguments[1]
+ : "";
+ var path =
+ route === "/"
+ ? "/index"
+ : /^\/index(\/|$)/.test(route)
+ ? "/index".concat(route)
+ : "".concat(route);
+ return path + ext;
+ }
+
+ function getAssetPagePath(assetPath) {
+ var ext =
+ arguments.length > 1 && arguments[1] !== undefined
+ ? arguments[1]
+ : "";
+ assetPath =
+ ext && assetPath.endsWith(ext)
+ ? assetPath.slice(0, -ext.length)
+ : assetPath;
+
+ if (assetPath.startsWith("/index/")) {
+ assetPath = assetPath.slice(6);
+ } else if (assetPath === "/index") {
+ assetPath = "/";
+ }
+
+ return assetPath;
+ }
+
+ /***/
+ },
+
/***/ dZ6Y: /***/ function(module, exports, __webpack_require__) {
"use strict";
@@ -598,6 +641,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
var _routeRegex = __webpack_require__("YTqd");
+ var _assetPath = __webpack_require__("dF3r");
+
function _interopRequireDefault(obj) {
return obj && obj.__esModule
? obj
@@ -623,8 +668,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
}
function prepareRoute(path) {
- path = delBasePath(path || "");
- return toRoute(!path || path === "/" ? "/index" : path);
+ return toRoute(delBasePath(path || "") || "/");
}
function prepareUrlAs(url, as) {
@@ -651,7 +695,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
// @ts-ignore __NEXT_DATA__
"/_next/data/"
.concat(__NEXT_DATA__.buildId)
- .concat(pathname, ".json")
+ .concat((0, _assetPath.getPageAssetPath)(pathname, ".json"))
),
query
}),
Diff for main-HASH.js
@@ -1432,7 +1432,6 @@
var _interopRequireDefault = __webpack_require__("TqRt");
exports.__esModule = true;
- exports.getAssetPath = getAssetPath;
exports["default"] = void 0;
var _url = __webpack_require__("QmWs");
@@ -1445,6 +1444,8 @@
var _routeRegex = __webpack_require__("YTqd");
+ var _assetPath = __webpack_require__("dF3r");
+
function hasRel(rel, link) {
try {
link = document.createElement("link");
@@ -1478,14 +1479,6 @@
return route.replace(/\/$/, "");
}
- function getAssetPath(route) {
- return route === "/"
- ? "/index"
- : /^\/index(\/|$)/.test(route)
- ? "/index".concat(route)
- : "".concat(route);
- }
-
function appendLink(href, rel, as) {
return new Promise(function(res, rej, link) {
link = document.createElement("link");
@@ -1578,11 +1571,14 @@
var getHrefForSlug =
/** @type string */
function getHrefForSlug(path) {
- var dataRoute = getAssetPath(path);
+ var dataRoute = (0, _assetPath.getPageAssetPath)(
+ path,
+ ".json"
+ );
return ""
.concat(_this2.assetPrefix, "/_next/data/")
.concat(_this2.buildId)
- .concat(dataRoute, ".json");
+ .concat(dataRoute);
};
var _ref = (0, _url.parse)(href, true),
@@ -1825,7 +1821,7 @@
url = route;
} else {
if (false) {
- var ext, scriptRoute;
+ var scriptRoute, ext;
}
}
Diff for main-HASH.module.js
@@ -1073,7 +1073,6 @@
var _interopRequireDefault = __webpack_require__("TqRt");
exports.__esModule = true;
- exports.getAssetPath = getAssetPath;
exports.default = void 0;
var _url = __webpack_require__("QmWs");
@@ -1086,6 +1085,8 @@
var _routeRegex = __webpack_require__("YTqd");
+ var _assetPath = __webpack_require__("dF3r");
+
function hasRel(rel, link) {
try {
link = document.createElement("link");
@@ -1119,14 +1120,6 @@
return route.replace(/\/$/, "");
}
- function getAssetPath(route) {
- return route === "/"
- ? "/index"
- : /^\/index(\/|$)/.test(route)
- ? "/index".concat(route)
- : "".concat(route);
- }
-
function appendLink(href, rel, as) {
return new Promise((res, rej, link) => {
link = document.createElement("link");
@@ -1203,11 +1196,11 @@
var getHrefForSlug =
/** @type string */
path => {
- var dataRoute = getAssetPath(path);
+ var dataRoute = (0, _assetPath.getPageAssetPath)(path, ".json");
return ""
.concat(this.assetPrefix, "/_next/data/")
.concat(this.buildId)
- .concat(dataRoute, ".json");
+ .concat(dataRoute);
};
var { pathname: hrefPathname, query } = (0, _url.parse)(href, true);
@@ -1412,7 +1405,7 @@
url = route;
} else {
if (false) {
- var ext, scriptRoute;
+ var scriptRoute, ext;
}
}
Diff for index.html
@@ -6,7 +6,7 @@
<meta name="next-head-count" content="2" />
<link
rel="preload"
- href="/_next/static/runtime/main-59c45a8be830c5f95780.module.js"
+ href="/_next/static/runtime/main-bdde9b04d2961e1c4a2d.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -24,7 +24,7 @@
/>
<link
rel="preload"
- href="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.6b23cf48f915c17ee2a9.module.js"
+ href="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.477326b69d8c0f66ec29.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -81,13 +81,13 @@
src="/_next/static/runtime/polyfills-eaf5488e20ec921d713f.js"
></script>
<script
- src="/_next/static/runtime/main-d371df75a64e2540b042.js"
+ src="/_next/static/runtime/main-9083723ab89d7fbb9a06.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/runtime/main-59c45a8be830c5f95780.module.js"
+ src="/_next/static/runtime/main-bdde9b04d2961e1c4a2d.module.js"
async=""
crossorigin="anonymous"
type="module"
@@ -117,13 +117,13 @@
type="module"
></script>
<script
- src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.23a257d02f3edb6832d1.js"
+ src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.d9e2b2c4b825eb560adb.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.6b23cf48f915c17ee2a9.module.js"
+ src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.477326b69d8c0f66ec29.module.js"
async=""
crossorigin="anonymous"
type="module"
Diff for link.html
@@ -6,7 +6,7 @@
<meta name="next-head-count" content="2" />
<link
rel="preload"
- href="/_next/static/runtime/main-59c45a8be830c5f95780.module.js"
+ href="/_next/static/runtime/main-bdde9b04d2961e1c4a2d.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -24,7 +24,7 @@
/>
<link
rel="preload"
- href="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.6b23cf48f915c17ee2a9.module.js"
+ href="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.477326b69d8c0f66ec29.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -86,13 +86,13 @@
src="/_next/static/runtime/polyfills-eaf5488e20ec921d713f.js"
></script>
<script
- src="/_next/static/runtime/main-d371df75a64e2540b042.js"
+ src="/_next/static/runtime/main-9083723ab89d7fbb9a06.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/runtime/main-59c45a8be830c5f95780.module.js"
+ src="/_next/static/runtime/main-bdde9b04d2961e1c4a2d.module.js"
async=""
crossorigin="anonymous"
type="module"
@@ -122,13 +122,13 @@
type="module"
></script>
<script
- src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.23a257d02f3edb6832d1.js"
+ src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.d9e2b2c4b825eb560adb.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.6b23cf48f915c17ee2a9.module.js"
+ src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.477326b69d8c0f66ec29.module.js"
async=""
crossorigin="anonymous"
type="module"
Diff for withRouter.html
@@ -6,7 +6,7 @@
<meta name="next-head-count" content="2" />
<link
rel="preload"
- href="/_next/static/runtime/main-59c45a8be830c5f95780.module.js"
+ href="/_next/static/runtime/main-bdde9b04d2961e1c4a2d.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -24,7 +24,7 @@
/>
<link
rel="preload"
- href="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.6b23cf48f915c17ee2a9.module.js"
+ href="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.477326b69d8c0f66ec29.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -81,13 +81,13 @@
src="/_next/static/runtime/polyfills-eaf5488e20ec921d713f.js"
></script>
<script
- src="/_next/static/runtime/main-d371df75a64e2540b042.js"
+ src="/_next/static/runtime/main-9083723ab89d7fbb9a06.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/runtime/main-59c45a8be830c5f95780.module.js"
+ src="/_next/static/runtime/main-bdde9b04d2961e1c4a2d.module.js"
async=""
crossorigin="anonymous"
type="module"
@@ -117,13 +117,13 @@
type="module"
></script>
<script
- src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.23a257d02f3edb6832d1.js"
+ src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.d9e2b2c4b825eb560adb.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.6b23cf48f915c17ee2a9.module.js"
+ src="/_next/static/chunks/de003c3a9d308750aa009870a5926f9b18ab31f4.477326b69d8c0f66ec29.module.js"
async=""
crossorigin="anonymous"
type="module"
Serverless Mode (Increase detected ⚠️ )
General Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
buildDuration | 14.3s | 14.1s | -164ms |
nodeModulesSize | 67 MB | 67 MB |
Client Bundles (main, webpack, commons) Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
main-HASH.js gzip | 6.51 kB | 6.49 kB | -26 B |
webpack-HASH.js gzip | 746 B | 746 B | ✓ |
de003c3a9d30..75a9.js gzip | 10.5 kB | N/A | N/A |
framework.HASH.js gzip | 39.1 kB | 39.1 kB | ✓ |
de003c3a9d30..9d09.js gzip | N/A | 10.7 kB | N/A |
Overall change | 56.9 kB | 57 kB |
Client Bundles (main, webpack, commons) Modern Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
main-HASH.module.js gzip | 5.6 kB | 5.57 kB | -29 B |
webpack-HASH..dule.js gzip | 746 B | 746 B | ✓ |
de003c3a9d30..dule.js gzip | 6.92 kB | N/A | N/A |
framework.HA..dule.js gzip | 39.1 kB | 39.1 kB | ✓ |
de003c3a9d30..dule.js gzip | N/A | 7.03 kB | N/A |
Overall change | 52.4 kB | 52.5 kB |
Legacy Client Bundles (polyfills)
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 26.3 kB | 26.3 kB | ✓ |
Overall change | 26.3 kB | 26.3 kB | ✓ |
Client Pages
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
routerDirect.js gzip | 279 B | 279 B | ✓ |
withRouter.js gzip | 278 B | 278 B | ✓ |
_error.js gzip | 3.37 kB | 3.37 kB | ✓ |
index.js gzip | 222 B | 222 B | ✓ |
link.js gzip | 2.05 kB | 2.05 kB | ✓ |
hooks.js gzip | 881 B | 881 B | ✓ |
_app.js gzip | 1.26 kB | 1.26 kB | ✓ |
Overall change | 8.34 kB | 8.34 kB | ✓ |
Client Pages Modern
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
index.module.js gzip | 223 B | 223 B | ✓ |
routerDirect..dule.js gzip | 281 B | 281 B | ✓ |
withRouter.m..dule.js gzip | 278 B | 278 B | ✓ |
hooks.module.js gzip | 383 B | 383 B | ✓ |
_error.module.js gzip | 2.21 kB | 2.21 kB | ✓ |
link.module.js gzip | 1.52 kB | 1.52 kB | ✓ |
_app.module.js gzip | 604 B | 604 B | ✓ |
Overall change | 5.49 kB | 5.49 kB | ✓ |
Client Build Manifests
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
_buildManifest.js gzip | 270 B | 270 B | ✓ |
_buildManife..dule.js gzip | 274 B | 274 B | ✓ |
Overall change | 544 B | 544 B | ✓ |
Serverless bundles Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
_error.js | 875 kB | 875 kB | ✓ |
404.html | 4.17 kB | 4.17 kB | ✓ |
hooks.html | 3.79 kB | 3.79 kB | ✓ |
index.js | 875 kB | 875 kB | ✓ |
link.js | 914 kB | 915 kB | |
routerDirect.js | 906 kB | 907 kB | |
withRouter.js | 906 kB | 907 kB | |
Overall change | 4.48 MB | 4.49 MB |
Stats from current PRDefault Server Mode (Increase detected
|
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
buildDuration | 11.9s | 11.8s | -40ms |
nodeModulesSize | 67 MB | 67 MB |
Page Load Tests Overall increase ✓
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 1.978 | 1.946 | -0.03 |
/ avg req/sec | 1263.77 | 1284.4 | |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.206 | 1.188 | -0.02 |
/error-in-render avg req/sec | 2072.69 | 2103.5 |
Client Bundles (main, webpack, commons) Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
main-HASH.js gzip | 6.51 kB | 6.49 kB | -26 B |
webpack-HASH.js gzip | 746 B | 746 B | ✓ |
19b7e98f51cc..75a9.js gzip | 10.5 kB | 10.7 kB | |
framework.HASH.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 56.9 kB | 57 kB |
Client Bundles (main, webpack, commons) Modern Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
main-HASH.module.js gzip | 5.6 kB | 5.57 kB | -29 B |
webpack-HASH..dule.js gzip | 746 B | 746 B | ✓ |
19b7e98f51cc..dule.js gzip | 6.92 kB | 7.04 kB | |
framework.HA..dule.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 52.4 kB | 52.5 kB |
Legacy Client Bundles (polyfills)
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 26.3 kB | 26.3 kB | ✓ |
Overall change | 26.3 kB | 26.3 kB | ✓ |
Client Build Manifests
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
_buildManifest.js gzip | 267 B | 267 B | ✓ |
_buildManife..dule.js gzip | 272 B | 272 B | ✓ |
Overall change | 539 B | 539 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
index.html gzip | 955 B | 956 B | |
link.html gzip | 961 B | 959 B | -2 B |
withRouter.html gzip | 948 B | 949 B | |
Overall change | 2.86 kB | 2.86 kB | ✓ |
Diffs
Diff for 19b7e98f51cc..edb6832d1.js
@@ -646,6 +646,50 @@
/***/
},
+ /***/ dF3r: /***/ function(module, exports, __webpack_require__) {
+ "use strict";
+
+ exports.__esModule = true;
+ exports.getPageAssetPath = getPageAssetPath;
+ exports.getAssetPagePath = getAssetPagePath;
+
+ function getPageAssetPath(route) {
+ var ext =
+ arguments.length > 1 && arguments[1] !== undefined
+ ? arguments[1]
+ : "";
+ var path =
+ route === "/"
+ ? "/index"
+ : /^\/index(\/|$)/.test(route)
+ ? "/index".concat(route)
+ : "".concat(route);
+ return path + ext;
+ }
+
+ function getAssetPagePath(assetPath) {
+ var ext =
+ arguments.length > 1 && arguments[1] !== undefined
+ ? arguments[1]
+ : "";
+ assetPath = assetPath.replace(/\\/g, "/");
+ assetPath =
+ ext && assetPath.endsWith(ext)
+ ? assetPath.slice(0, -ext.length)
+ : assetPath;
+
+ if (assetPath.startsWith("/index/")) {
+ assetPath = assetPath.slice(6);
+ } else if (assetPath === "/index") {
+ assetPath = "/";
+ }
+
+ return assetPath;
+ }
+
+ /***/
+ },
+
/***/ dZ6Y: /***/ function(module, exports, __webpack_require__) {
"use strict";
@@ -726,6 +770,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
var _routeRegex = __webpack_require__("YTqd");
+ var _assetPath = __webpack_require__("dF3r");
+
function _interopRequireDefault(obj) {
return obj && obj.__esModule
? obj
@@ -751,8 +797,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
}
function prepareRoute(path) {
- path = delBasePath(path || "");
- return toRoute(!path || path === "/" ? "/index" : path);
+ return toRoute(delBasePath(path || "") || "/");
}
function prepareUrlAs(url, as) {
@@ -779,7 +824,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
// @ts-ignore __NEXT_DATA__
"/_next/data/"
.concat(__NEXT_DATA__.buildId)
- .concat(pathname, ".json")
+ .concat((0, _assetPath.getPageAssetPath)(pathname, ".json"))
),
query: query
}),
Diff for 19b7e98f51cc..a9.module.js
@@ -526,6 +526,50 @@
/***/
},
+ /***/ dF3r: /***/ function(module, exports, __webpack_require__) {
+ "use strict";
+
+ exports.__esModule = true;
+ exports.getPageAssetPath = getPageAssetPath;
+ exports.getAssetPagePath = getAssetPagePath;
+
+ function getPageAssetPath(route) {
+ var ext =
+ arguments.length > 1 && arguments[1] !== undefined
+ ? arguments[1]
+ : "";
+ var path =
+ route === "/"
+ ? "/index"
+ : /^\/index(\/|$)/.test(route)
+ ? "/index".concat(route)
+ : "".concat(route);
+ return path + ext;
+ }
+
+ function getAssetPagePath(assetPath) {
+ var ext =
+ arguments.length > 1 && arguments[1] !== undefined
+ ? arguments[1]
+ : "";
+ assetPath = assetPath.replace(/\\/g, "/");
+ assetPath =
+ ext && assetPath.endsWith(ext)
+ ? assetPath.slice(0, -ext.length)
+ : assetPath;
+
+ if (assetPath.startsWith("/index/")) {
+ assetPath = assetPath.slice(6);
+ } else if (assetPath === "/index") {
+ assetPath = "/";
+ }
+
+ return assetPath;
+ }
+
+ /***/
+ },
+
/***/ dZ6Y: /***/ function(module, exports, __webpack_require__) {
"use strict";
@@ -598,6 +642,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
var _routeRegex = __webpack_require__("YTqd");
+ var _assetPath = __webpack_require__("dF3r");
+
function _interopRequireDefault(obj) {
return obj && obj.__esModule
? obj
@@ -623,8 +669,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
}
function prepareRoute(path) {
- path = delBasePath(path || "");
- return toRoute(!path || path === "/" ? "/index" : path);
+ return toRoute(delBasePath(path || "") || "/");
}
function prepareUrlAs(url, as) {
@@ -651,7 +696,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
// @ts-ignore __NEXT_DATA__
"/_next/data/"
.concat(__NEXT_DATA__.buildId)
- .concat(pathname, ".json")
+ .concat((0, _assetPath.getPageAssetPath)(pathname, ".json"))
),
query
}),
Diff for main-HASH.js
@@ -1432,7 +1432,6 @@
var _interopRequireDefault = __webpack_require__("TqRt");
exports.__esModule = true;
- exports.getAssetPath = getAssetPath;
exports["default"] = void 0;
var _url = __webpack_require__("QmWs");
@@ -1445,6 +1444,8 @@
var _routeRegex = __webpack_require__("YTqd");
+ var _assetPath = __webpack_require__("dF3r");
+
function hasRel(rel, link) {
try {
link = document.createElement("link");
@@ -1478,14 +1479,6 @@
return route.replace(/\/$/, "");
}
- function getAssetPath(route) {
- return route === "/"
- ? "/index"
- : /^\/index(\/|$)/.test(route)
- ? "/index".concat(route)
- : "".concat(route);
- }
-
function appendLink(href, rel, as) {
return new Promise(function(res, rej, link) {
link = document.createElement("link");
@@ -1578,11 +1571,14 @@
var getHrefForSlug =
/** @type string */
function getHrefForSlug(path) {
- var dataRoute = getAssetPath(path);
+ var dataRoute = (0, _assetPath.getPageAssetPath)(
+ path,
+ ".json"
+ );
return ""
.concat(_this2.assetPrefix, "/_next/data/")
.concat(_this2.buildId)
- .concat(dataRoute, ".json");
+ .concat(dataRoute);
};
var _ref = (0, _url.parse)(href, true),
@@ -1825,7 +1821,7 @@
url = route;
} else {
if (false) {
- var ext, scriptRoute;
+ var scriptRoute, ext;
}
}
Diff for main-HASH.module.js
@@ -1073,7 +1073,6 @@
var _interopRequireDefault = __webpack_require__("TqRt");
exports.__esModule = true;
- exports.getAssetPath = getAssetPath;
exports.default = void 0;
var _url = __webpack_require__("QmWs");
@@ -1086,6 +1085,8 @@
var _routeRegex = __webpack_require__("YTqd");
+ var _assetPath = __webpack_require__("dF3r");
+
function hasRel(rel, link) {
try {
link = document.createElement("link");
@@ -1119,14 +1120,6 @@
return route.replace(/\/$/, "");
}
- function getAssetPath(route) {
- return route === "/"
- ? "/index"
- : /^\/index(\/|$)/.test(route)
- ? "/index".concat(route)
- : "".concat(route);
- }
-
function appendLink(href, rel, as) {
return new Promise((res, rej, link) => {
link = document.createElement("link");
@@ -1203,11 +1196,11 @@
var getHrefForSlug =
/** @type string */
path => {
- var dataRoute = getAssetPath(path);
+ var dataRoute = (0, _assetPath.getPageAssetPath)(path, ".json");
return ""
.concat(this.assetPrefix, "/_next/data/")
.concat(this.buildId)
- .concat(dataRoute, ".json");
+ .concat(dataRoute);
};
var { pathname: hrefPathname, query } = (0, _url.parse)(href, true);
@@ -1412,7 +1405,7 @@
url = route;
} else {
if (false) {
- var ext, scriptRoute;
+ var scriptRoute, ext;
}
}
Diff for index.html
@@ -6,7 +6,7 @@
<meta name="next-head-count" content="2" />
<link
rel="preload"
- href="/_next/static/runtime/main-cd53b7f04c623d12e151.module.js"
+ href="/_next/static/runtime/main-0d43dda5ba3a1c3fa707.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -24,7 +24,7 @@
/>
<link
rel="preload"
- href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.6b23cf48f915c17ee2a9.module.js"
+ href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.6c539668440bdeff983f.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -81,13 +81,13 @@
src="/_next/static/runtime/polyfills-b9d354b83d10fbe21b38.js"
></script>
<script
- src="/_next/static/runtime/main-76c97d70fdb8ec3ca87e.js"
+ src="/_next/static/runtime/main-574cba65670334e283b3.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/runtime/main-cd53b7f04c623d12e151.module.js"
+ src="/_next/static/runtime/main-0d43dda5ba3a1c3fa707.module.js"
async=""
crossorigin="anonymous"
type="module"
@@ -117,13 +117,13 @@
type="module"
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.23a257d02f3edb6832d1.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.c5746d5a037deaae6fba.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.6b23cf48f915c17ee2a9.module.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.6c539668440bdeff983f.module.js"
async=""
crossorigin="anonymous"
type="module"
Diff for link.html
@@ -6,7 +6,7 @@
<meta name="next-head-count" content="2" />
<link
rel="preload"
- href="/_next/static/runtime/main-cd53b7f04c623d12e151.module.js"
+ href="/_next/static/runtime/main-0d43dda5ba3a1c3fa707.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -24,7 +24,7 @@
/>
<link
rel="preload"
- href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.6b23cf48f915c17ee2a9.module.js"
+ href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.6c539668440bdeff983f.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -86,13 +86,13 @@
src="/_next/static/runtime/polyfills-b9d354b83d10fbe21b38.js"
></script>
<script
- src="/_next/static/runtime/main-76c97d70fdb8ec3ca87e.js"
+ src="/_next/static/runtime/main-574cba65670334e283b3.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/runtime/main-cd53b7f04c623d12e151.module.js"
+ src="/_next/static/runtime/main-0d43dda5ba3a1c3fa707.module.js"
async=""
crossorigin="anonymous"
type="module"
@@ -122,13 +122,13 @@
type="module"
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.23a257d02f3edb6832d1.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.c5746d5a037deaae6fba.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.6b23cf48f915c17ee2a9.module.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.6c539668440bdeff983f.module.js"
async=""
crossorigin="anonymous"
type="module"
Diff for withRouter.html
@@ -6,7 +6,7 @@
<meta name="next-head-count" content="2" />
<link
rel="preload"
- href="/_next/static/runtime/main-cd53b7f04c623d12e151.module.js"
+ href="/_next/static/runtime/main-0d43dda5ba3a1c3fa707.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -24,7 +24,7 @@
/>
<link
rel="preload"
- href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.6b23cf48f915c17ee2a9.module.js"
+ href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.6c539668440bdeff983f.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -81,13 +81,13 @@
src="/_next/static/runtime/polyfills-b9d354b83d10fbe21b38.js"
></script>
<script
- src="/_next/static/runtime/main-76c97d70fdb8ec3ca87e.js"
+ src="/_next/static/runtime/main-574cba65670334e283b3.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/runtime/main-cd53b7f04c623d12e151.module.js"
+ src="/_next/static/runtime/main-0d43dda5ba3a1c3fa707.module.js"
async=""
crossorigin="anonymous"
type="module"
@@ -117,13 +117,13 @@
type="module"
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.23a257d02f3edb6832d1.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.c5746d5a037deaae6fba.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.6b23cf48f915c17ee2a9.module.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.6c539668440bdeff983f.module.js"
async=""
crossorigin="anonymous"
type="module"
Serverless Mode (Increase detected ⚠️ )
General Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
buildDuration | 12.8s | 12.9s | |
nodeModulesSize | 67 MB | 67 MB |
Client Bundles (main, webpack, commons) Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
main-HASH.js gzip | 6.51 kB | 6.49 kB | -26 B |
webpack-HASH.js gzip | 746 B | 746 B | ✓ |
19b7e98f51cc..75a9.js gzip | 10.5 kB | N/A | N/A |
framework.HASH.js gzip | 39.1 kB | 39.1 kB | ✓ |
19b7e98f51cc..bacf.js gzip | N/A | 10.7 kB | N/A |
Overall change | 56.9 kB | 57 kB |
Client Bundles (main, webpack, commons) Modern Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
main-HASH.module.js gzip | 5.6 kB | 5.57 kB | -29 B |
webpack-HASH..dule.js gzip | 746 B | 746 B | ✓ |
19b7e98f51cc..dule.js gzip | 6.92 kB | N/A | N/A |
framework.HA..dule.js gzip | 39.1 kB | 39.1 kB | ✓ |
19b7e98f51cc..dule.js gzip | N/A | 7.04 kB | N/A |
Overall change | 52.4 kB | 52.5 kB |
Legacy Client Bundles (polyfills)
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 26.3 kB | 26.3 kB | ✓ |
Overall change | 26.3 kB | 26.3 kB | ✓ |
Client Build Manifests
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
_buildManifest.js gzip | 267 B | 267 B | ✓ |
_buildManife..dule.js gzip | 272 B | 272 B | ✓ |
Overall change | 539 B | 539 B | ✓ |
Serverless bundles Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
_error.js | 875 kB | 875 kB | ✓ |
404.html | 4.17 kB | 4.17 kB | ✓ |
hooks.html | 3.79 kB | 3.79 kB | ✓ |
index.js | 875 kB | 875 kB | ✓ |
link.js | 914 kB | 914 kB | |
routerDirect.js | 906 kB | 907 kB | |
withRouter.js | 906 kB | 907 kB | |
Overall change | 4.48 MB | 4.49 MB |
Stats from current PRDefault Server Mode (Increase detected
|
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
buildDuration | 11.9s | 12.4s | |
nodeModulesSize | 67 MB | 67 MB |
Page Load Tests Overall increase ✓
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.059 | 2.099 | |
/ avg req/sec | 1214.27 | 1190.87 | -23.4 |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.25 | 1.204 | -0.05 |
/error-in-render avg req/sec | 1999.3 | 2076.84 |
Client Bundles (main, webpack, commons) Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
main-HASH.js gzip | 6.51 kB | 6.49 kB | -23 B |
webpack-HASH.js gzip | 746 B | 746 B | ✓ |
19b7e98f51cc..75a9.js gzip | 10.5 kB | 10.7 kB | |
framework.HASH.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 56.9 kB | 57 kB |
Client Bundles (main, webpack, commons) Modern Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
main-HASH.module.js gzip | 5.6 kB | 5.58 kB | -27 B |
webpack-HASH..dule.js gzip | 746 B | 746 B | ✓ |
19b7e98f51cc..dule.js gzip | 6.92 kB | 7.04 kB | |
framework.HA..dule.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 52.4 kB | 52.5 kB |
Legacy Client Bundles (polyfills)
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 26.3 kB | 26.3 kB | ✓ |
Overall change | 26.3 kB | 26.3 kB | ✓ |
Client Build Manifests
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
_buildManifest.js gzip | 267 B | 267 B | ✓ |
_buildManife..dule.js gzip | 272 B | 272 B | ✓ |
Overall change | 539 B | 539 B | ✓ |
Rendered Page Sizes Overall decrease ✓
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
index.html gzip | 955 B | 955 B | ✓ |
link.html gzip | 961 B | 960 B | -1 B |
withRouter.html gzip | 948 B | 947 B | -1 B |
Overall change | 2.86 kB | 2.86 kB | -2 B |
Diffs
Diff for 19b7e98f51cc..edb6832d1.js
@@ -646,6 +646,51 @@
/***/
},
+ /***/ dF3r: /***/ function(module, exports, __webpack_require__) {
+ "use strict";
+
+ exports.__esModule = true;
+ exports.getAssetPathFromRoute = getAssetPathFromRoute;
+ exports.getRouteFromAssetPath = getRouteFromAssetPath; // These functions translate between a pages asset path (relative froma common prefix)
+ // and its logical route. "asset path" being its javascript file, data file, prerendered html,...
+
+ function getAssetPathFromRoute(route) {
+ var ext =
+ arguments.length > 1 && arguments[1] !== undefined
+ ? arguments[1]
+ : "";
+ var path =
+ route === "/"
+ ? "/index"
+ : /^\/index(\/|$)/.test(route)
+ ? "/index".concat(route)
+ : "".concat(route);
+ return path + ext;
+ }
+
+ function getRouteFromAssetPath(assetPath) {
+ var ext =
+ arguments.length > 1 && arguments[1] !== undefined
+ ? arguments[1]
+ : "";
+ assetPath = assetPath.replace(/\\/g, "/");
+ assetPath =
+ ext && assetPath.endsWith(ext)
+ ? assetPath.slice(0, -ext.length)
+ : assetPath;
+
+ if (assetPath.startsWith("/index/")) {
+ assetPath = assetPath.slice(6);
+ } else if (assetPath === "/index") {
+ assetPath = "/";
+ }
+
+ return assetPath;
+ }
+
+ /***/
+ },
+
/***/ dZ6Y: /***/ function(module, exports, __webpack_require__) {
"use strict";
@@ -726,6 +771,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
var _routeRegex = __webpack_require__("YTqd");
+ var _assetPath = __webpack_require__("dF3r");
+
function _interopRequireDefault(obj) {
return obj && obj.__esModule
? obj
@@ -751,8 +798,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
}
function prepareRoute(path) {
- path = delBasePath(path || "");
- return toRoute(!path || path === "/" ? "/index" : path);
+ return toRoute(delBasePath(path || "") || "/");
}
function prepareUrlAs(url, as) {
@@ -779,7 +825,9 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
// @ts-ignore __NEXT_DATA__
"/_next/data/"
.concat(__NEXT_DATA__.buildId)
- .concat(pathname, ".json")
+ .concat(
+ (0, _assetPath.getAssetPathFromRoute)(pathname, ".json")
+ )
),
query: query
}),
Diff for 19b7e98f51cc..a9.module.js
@@ -526,6 +526,51 @@
/***/
},
+ /***/ dF3r: /***/ function(module, exports, __webpack_require__) {
+ "use strict";
+
+ exports.__esModule = true;
+ exports.getAssetPathFromRoute = getAssetPathFromRoute;
+ exports.getRouteFromAssetPath = getRouteFromAssetPath; // These functions translate between a pages asset path (relative froma common prefix)
+ // and its logical route. "asset path" being its javascript file, data file, prerendered html,...
+
+ function getAssetPathFromRoute(route) {
+ var ext =
+ arguments.length > 1 && arguments[1] !== undefined
+ ? arguments[1]
+ : "";
+ var path =
+ route === "/"
+ ? "/index"
+ : /^\/index(\/|$)/.test(route)
+ ? "/index".concat(route)
+ : "".concat(route);
+ return path + ext;
+ }
+
+ function getRouteFromAssetPath(assetPath) {
+ var ext =
+ arguments.length > 1 && arguments[1] !== undefined
+ ? arguments[1]
+ : "";
+ assetPath = assetPath.replace(/\\/g, "/");
+ assetPath =
+ ext && assetPath.endsWith(ext)
+ ? assetPath.slice(0, -ext.length)
+ : assetPath;
+
+ if (assetPath.startsWith("/index/")) {
+ assetPath = assetPath.slice(6);
+ } else if (assetPath === "/index") {
+ assetPath = "/";
+ }
+
+ return assetPath;
+ }
+
+ /***/
+ },
+
/***/ dZ6Y: /***/ function(module, exports, __webpack_require__) {
"use strict";
@@ -598,6 +643,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
var _routeRegex = __webpack_require__("YTqd");
+ var _assetPath = __webpack_require__("dF3r");
+
function _interopRequireDefault(obj) {
return obj && obj.__esModule
? obj
@@ -623,8 +670,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
}
function prepareRoute(path) {
- path = delBasePath(path || "");
- return toRoute(!path || path === "/" ? "/index" : path);
+ return toRoute(delBasePath(path || "") || "/");
}
function prepareUrlAs(url, as) {
@@ -651,7 +697,9 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
// @ts-ignore __NEXT_DATA__
"/_next/data/"
.concat(__NEXT_DATA__.buildId)
- .concat(pathname, ".json")
+ .concat(
+ (0, _assetPath.getAssetPathFromRoute)(pathname, ".json")
+ )
),
query
}),
Diff for main-HASH.js
@@ -1432,7 +1432,6 @@
var _interopRequireDefault = __webpack_require__("TqRt");
exports.__esModule = true;
- exports.getAssetPath = getAssetPath;
exports["default"] = void 0;
var _url = __webpack_require__("QmWs");
@@ -1445,6 +1444,8 @@
var _routeRegex = __webpack_require__("YTqd");
+ var _assetPath = __webpack_require__("dF3r");
+
function hasRel(rel, link) {
try {
link = document.createElement("link");
@@ -1478,14 +1479,6 @@
return route.replace(/\/$/, "");
}
- function getAssetPath(route) {
- return route === "/"
- ? "/index"
- : /^\/index(\/|$)/.test(route)
- ? "/index".concat(route)
- : "".concat(route);
- }
-
function appendLink(href, rel, as) {
return new Promise(function(res, rej, link) {
link = document.createElement("link");
@@ -1578,11 +1571,14 @@
var getHrefForSlug =
/** @type string */
function getHrefForSlug(path) {
- var dataRoute = getAssetPath(path);
+ var dataRoute = (0, _assetPath.getAssetPathFromRoute)(
+ path,
+ ".json"
+ );
return ""
.concat(_this2.assetPrefix, "/_next/data/")
.concat(_this2.buildId)
- .concat(dataRoute, ".json");
+ .concat(dataRoute);
};
var _ref = (0, _url.parse)(href, true),
@@ -1825,7 +1821,7 @@
url = route;
} else {
if (false) {
- var ext, scriptRoute;
+ var scriptRoute, ext;
}
}
Diff for main-HASH.module.js
@@ -1073,7 +1073,6 @@
var _interopRequireDefault = __webpack_require__("TqRt");
exports.__esModule = true;
- exports.getAssetPath = getAssetPath;
exports.default = void 0;
var _url = __webpack_require__("QmWs");
@@ -1086,6 +1085,8 @@
var _routeRegex = __webpack_require__("YTqd");
+ var _assetPath = __webpack_require__("dF3r");
+
function hasRel(rel, link) {
try {
link = document.createElement("link");
@@ -1119,14 +1120,6 @@
return route.replace(/\/$/, "");
}
- function getAssetPath(route) {
- return route === "/"
- ? "/index"
- : /^\/index(\/|$)/.test(route)
- ? "/index".concat(route)
- : "".concat(route);
- }
-
function appendLink(href, rel, as) {
return new Promise((res, rej, link) => {
link = document.createElement("link");
@@ -1203,11 +1196,14 @@
var getHrefForSlug =
/** @type string */
path => {
- var dataRoute = getAssetPath(path);
+ var dataRoute = (0, _assetPath.getAssetPathFromRoute)(
+ path,
+ ".json"
+ );
return ""
.concat(this.assetPrefix, "/_next/data/")
.concat(this.buildId)
- .concat(dataRoute, ".json");
+ .concat(dataRoute);
};
var { pathname: hrefPathname, query } = (0, _url.parse)(href, true);
@@ -1412,7 +1408,7 @@
url = route;
} else {
if (false) {
- var ext, scriptRoute;
+ var scriptRoute, ext;
}
}
Diff for index.html
@@ -6,7 +6,7 @@
<meta name="next-head-count" content="2" />
<link
rel="preload"
- href="/_next/static/runtime/main-cd53b7f04c623d12e151.module.js"
+ href="/_next/static/runtime/main-e0762c2708da5f564549.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -24,7 +24,7 @@
/>
<link
rel="preload"
- href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.6b23cf48f915c17ee2a9.module.js"
+ href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.c1b3acc1017524fc2441.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -81,13 +81,13 @@
src="/_next/static/runtime/polyfills-b9d354b83d10fbe21b38.js"
></script>
<script
- src="/_next/static/runtime/main-76c97d70fdb8ec3ca87e.js"
+ src="/_next/static/runtime/main-fb0a3e3bbeca7e99524b.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/runtime/main-cd53b7f04c623d12e151.module.js"
+ src="/_next/static/runtime/main-e0762c2708da5f564549.module.js"
async=""
crossorigin="anonymous"
type="module"
@@ -117,13 +117,13 @@
type="module"
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.23a257d02f3edb6832d1.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.1efedb837891b64b96f8.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.6b23cf48f915c17ee2a9.module.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.c1b3acc1017524fc2441.module.js"
async=""
crossorigin="anonymous"
type="module"
Diff for link.html
@@ -6,7 +6,7 @@
<meta name="next-head-count" content="2" />
<link
rel="preload"
- href="/_next/static/runtime/main-cd53b7f04c623d12e151.module.js"
+ href="/_next/static/runtime/main-e0762c2708da5f564549.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -24,7 +24,7 @@
/>
<link
rel="preload"
- href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.6b23cf48f915c17ee2a9.module.js"
+ href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.c1b3acc1017524fc2441.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -86,13 +86,13 @@
src="/_next/static/runtime/polyfills-b9d354b83d10fbe21b38.js"
></script>
<script
- src="/_next/static/runtime/main-76c97d70fdb8ec3ca87e.js"
+ src="/_next/static/runtime/main-fb0a3e3bbeca7e99524b.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/runtime/main-cd53b7f04c623d12e151.module.js"
+ src="/_next/static/runtime/main-e0762c2708da5f564549.module.js"
async=""
crossorigin="anonymous"
type="module"
@@ -122,13 +122,13 @@
type="module"
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.23a257d02f3edb6832d1.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.1efedb837891b64b96f8.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.6b23cf48f915c17ee2a9.module.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.c1b3acc1017524fc2441.module.js"
async=""
crossorigin="anonymous"
type="module"
Diff for withRouter.html
@@ -6,7 +6,7 @@
<meta name="next-head-count" content="2" />
<link
rel="preload"
- href="/_next/static/runtime/main-cd53b7f04c623d12e151.module.js"
+ href="/_next/static/runtime/main-e0762c2708da5f564549.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -24,7 +24,7 @@
/>
<link
rel="preload"
- href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.6b23cf48f915c17ee2a9.module.js"
+ href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.c1b3acc1017524fc2441.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -81,13 +81,13 @@
src="/_next/static/runtime/polyfills-b9d354b83d10fbe21b38.js"
></script>
<script
- src="/_next/static/runtime/main-76c97d70fdb8ec3ca87e.js"
+ src="/_next/static/runtime/main-fb0a3e3bbeca7e99524b.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/runtime/main-cd53b7f04c623d12e151.module.js"
+ src="/_next/static/runtime/main-e0762c2708da5f564549.module.js"
async=""
crossorigin="anonymous"
type="module"
@@ -117,13 +117,13 @@
type="module"
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.23a257d02f3edb6832d1.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.1efedb837891b64b96f8.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.6b23cf48f915c17ee2a9.module.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.c1b3acc1017524fc2441.module.js"
async=""
crossorigin="anonymous"
type="module"
Serverless Mode (Increase detected ⚠️ )
General Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
buildDuration | 13.2s | 13.3s | |
nodeModulesSize | 67 MB | 67 MB |
Client Bundles (main, webpack, commons) Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
main-HASH.js gzip | 6.51 kB | 6.49 kB | -23 B |
webpack-HASH.js gzip | 746 B | 746 B | ✓ |
19b7e98f51cc..75a9.js gzip | 10.5 kB | N/A | N/A |
framework.HASH.js gzip | 39.1 kB | 39.1 kB | ✓ |
19b7e98f51cc..ffe1.js gzip | N/A | 10.7 kB | N/A |
Overall change | 56.9 kB | 57 kB |
Client Bundles (main, webpack, commons) Modern Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
main-HASH.module.js gzip | 5.6 kB | 5.58 kB | -27 B |
webpack-HASH..dule.js gzip | 746 B | 746 B | ✓ |
19b7e98f51cc..dule.js gzip | 6.92 kB | N/A | N/A |
framework.HA..dule.js gzip | 39.1 kB | 39.1 kB | ✓ |
19b7e98f51cc..dule.js gzip | N/A | 7.04 kB | N/A |
Overall change | 52.4 kB | 52.5 kB |
Legacy Client Bundles (polyfills)
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 26.3 kB | 26.3 kB | ✓ |
Overall change | 26.3 kB | 26.3 kB | ✓ |
Client Build Manifests
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
_buildManifest.js gzip | 267 B | 267 B | ✓ |
_buildManife..dule.js gzip | 272 B | 272 B | ✓ |
Overall change | 539 B | 539 B | ✓ |
Serverless bundles Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
_error.js | 875 kB | 875 kB | ✓ |
404.html | 4.17 kB | 4.17 kB | ✓ |
hooks.html | 3.79 kB | 3.79 kB | ✓ |
index.js | 875 kB | 875 kB | ✓ |
link.js | 914 kB | 915 kB | |
routerDirect.js | 906 kB | 907 kB | |
withRouter.js | 906 kB | 907 kB | |
Overall change | 4.48 MB | 4.49 MB |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
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 | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
buildDuration | 11.4s | 11.3s | -162ms |
nodeModulesSize | 67.1 MB | 67.1 MB |
Page Load Tests Overall decrease ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 1.902 | 1.898 | 0 |
/ avg req/sec | 1314.21 | 1317.06 | |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.14 | 1.194 | |
/error-in-render avg req/sec | 2192.83 | 2093.7 | -99.13 |
Client Bundles (main, webpack, commons) Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
main-HASH.js gzip | 6.52 kB | 6.49 kB | -31 B |
webpack-HASH.js gzip | 746 B | 746 B | ✓ |
19b7e98f51cc..62e5.js gzip | 10.6 kB | 10.6 kB | |
framework.HASH.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 57 kB | 57 kB |
Client Bundles (main, webpack, commons) Modern Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
main-HASH.module.js gzip | 5.61 kB | 5.57 kB | -35 B |
webpack-HASH..dule.js gzip | 746 B | 746 B | ✓ |
19b7e98f51cc..dule.js gzip | 6.93 kB | 6.99 kB | |
framework.HA..dule.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 52.4 kB | 52.4 kB |
Legacy Client Bundles (polyfills)
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 26.3 kB | 26.3 kB | ✓ |
Overall change | 26.3 kB | 26.3 kB | ✓ |
Client Build Manifests
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
_buildManifest.js gzip | 267 B | 267 B | ✓ |
_buildManife..dule.js gzip | 272 B | 272 B | ✓ |
Overall change | 539 B | 539 B | ✓ |
Rendered Page Sizes Overall decrease ✓
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
index.html gzip | 956 B | 953 B | -3 B |
link.html gzip | 961 B | 957 B | -4 B |
withRouter.html gzip | 948 B | 945 B | -3 B |
Overall change | 2.87 kB | 2.85 kB | -10 B |
Diffs
Diff for 19b7e98f51cc..96.module.js
@@ -216,6 +216,30 @@
/***/
},
+ /***/ Lab5: /***/ function(module, exports, __webpack_require__) {
+ "use strict";
+
+ exports.__esModule = true;
+ exports.default = getAssetPathFromRoute; // Translates a logical route into its pages asset path (relative from a common prefix)
+ // "asset path" being its javascript file, data file, prerendered html,...
+
+ function getAssetPathFromRoute(route) {
+ var ext =
+ arguments.length > 1 && arguments[1] !== undefined
+ ? arguments[1]
+ : "";
+ var path =
+ route === "/"
+ ? "/index"
+ : /^\/index(\/|$)/.test(route)
+ ? "/index".concat(route)
+ : "".concat(route);
+ return path + ext;
+ }
+
+ /***/
+ },
+
/***/ Qetd: /***/ function(module, exports, __webpack_require__) {
"use strict";
var assign = Object.assign.bind(Object);
@@ -607,6 +631,10 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
var _routeRegex = __webpack_require__("YTqd");
+ var _getAssetPathFromRoute = _interopRequireDefault(
+ __webpack_require__("Lab5")
+ );
+
function _interopRequireDefault(obj) {
return obj && obj.__esModule
? obj
@@ -632,8 +660,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
}
function prepareRoute(path) {
- path = delBasePath(path || "");
- return toRoute(!path || path === "/" ? "/index" : path);
+ return toRoute(delBasePath(path || "") || "/");
}
function prepareUrlAs(url, as) {
@@ -660,7 +687,9 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
// @ts-ignore __NEXT_DATA__
"/_next/data/"
.concat(__NEXT_DATA__.buildId)
- .concat(pathname, ".json")
+ .concat(
+ (0, _getAssetPathFromRoute.default)(pathname, ".json")
+ )
),
query
}),
Diff for 19b7e98f51cc..8bf3c44ba.js
@@ -239,6 +239,30 @@
/***/
},
+ /***/ Lab5: /***/ function(module, exports, __webpack_require__) {
+ "use strict";
+
+ exports.__esModule = true;
+ exports["default"] = getAssetPathFromRoute; // Translates a logical route into its pages asset path (relative from a common prefix)
+ // "asset path" being its javascript file, data file, prerendered html,...
+
+ function getAssetPathFromRoute(route) {
+ var ext =
+ arguments.length > 1 && arguments[1] !== undefined
+ ? arguments[1]
+ : "";
+ var path =
+ route === "/"
+ ? "/index"
+ : /^\/index(\/|$)/.test(route)
+ ? "/index".concat(route)
+ : "".concat(route);
+ return path + ext;
+ }
+
+ /***/
+ },
+
/***/ Qetd: /***/ function(module, exports, __webpack_require__) {
"use strict";
var assign = Object.assign.bind(Object);
@@ -737,6 +761,10 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
var _routeRegex = __webpack_require__("YTqd");
+ var _getAssetPathFromRoute = _interopRequireDefault(
+ __webpack_require__("Lab5")
+ );
+
function _interopRequireDefault(obj) {
return obj && obj.__esModule
? obj
@@ -762,8 +790,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
}
function prepareRoute(path) {
- path = delBasePath(path || "");
- return toRoute(!path || path === "/" ? "/index" : path);
+ return toRoute(delBasePath(path || "") || "/");
}
function prepareUrlAs(url, as) {
@@ -790,7 +817,9 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
// @ts-ignore __NEXT_DATA__
"/_next/data/"
.concat(__NEXT_DATA__.buildId)
- .concat(pathname, ".json")
+ .concat(
+ (0, _getAssetPathFromRoute["default"])(pathname, ".json")
+ )
),
query: query
}),
Diff for main-HASH.js
@@ -1430,7 +1430,6 @@
var _interopRequireDefault = __webpack_require__("TqRt");
exports.__esModule = true;
- exports.getAssetPath = getAssetPath;
exports["default"] = void 0;
var _url = __webpack_require__("QmWs");
@@ -1443,6 +1442,10 @@
var _routeRegex = __webpack_require__("YTqd");
+ var _getAssetPathFromRoute = _interopRequireDefault(
+ __webpack_require__("Lab5")
+ );
+
function hasRel(rel, link) {
try {
link = document.createElement("link");
@@ -1476,14 +1479,6 @@
return route.replace(/\/$/, "");
}
- function getAssetPath(route) {
- return route === "/"
- ? "/index"
- : /^\/index(\/|$)/.test(route)
- ? "/index".concat(route)
- : "".concat(route);
- }
-
function appendLink(href, rel, as) {
return new Promise(function(res, rej, link) {
link = document.createElement("link");
@@ -1576,11 +1571,14 @@
var getHrefForSlug =
/** @type string */
function getHrefForSlug(path) {
- var dataRoute = getAssetPath(path);
+ var dataRoute = (0, _getAssetPathFromRoute["default"])(
+ path,
+ ".json"
+ );
return ""
.concat(_this2.assetPrefix, "/_next/data/")
.concat(_this2.buildId)
- .concat(dataRoute, ".json");
+ .concat(dataRoute);
};
var _ref = (0, _url.parse)(href, true),
@@ -1833,7 +1831,7 @@
url = route;
} else {
if (false) {
- var ext, scriptRoute;
+ var scriptRoute, ext;
}
}
Diff for main-HASH.module.js
@@ -1071,7 +1071,6 @@
var _interopRequireDefault = __webpack_require__("TqRt");
exports.__esModule = true;
- exports.getAssetPath = getAssetPath;
exports.default = void 0;
var _url = __webpack_require__("QmWs");
@@ -1084,6 +1083,10 @@
var _routeRegex = __webpack_require__("YTqd");
+ var _getAssetPathFromRoute = _interopRequireDefault(
+ __webpack_require__("Lab5")
+ );
+
function hasRel(rel, link) {
try {
link = document.createElement("link");
@@ -1117,14 +1120,6 @@
return route.replace(/\/$/, "");
}
- function getAssetPath(route) {
- return route === "/"
- ? "/index"
- : /^\/index(\/|$)/.test(route)
- ? "/index".concat(route)
- : "".concat(route);
- }
-
function appendLink(href, rel, as) {
return new Promise((res, rej, link) => {
link = document.createElement("link");
@@ -1201,11 +1196,14 @@
var getHrefForSlug =
/** @type string */
path => {
- var dataRoute = getAssetPath(path);
+ var dataRoute = (0, _getAssetPathFromRoute.default)(
+ path,
+ ".json"
+ );
return ""
.concat(this.assetPrefix, "/_next/data/")
.concat(this.buildId)
- .concat(dataRoute, ".json");
+ .concat(dataRoute);
};
var { pathname: hrefPathname, query } = (0, _url.parse)(href, true);
@@ -1418,7 +1416,7 @@
url = route;
} else {
if (false) {
- var ext, scriptRoute;
+ var scriptRoute, ext;
}
}
Diff for index.html
@@ -6,7 +6,7 @@
<meta name="next-head-count" content="2" />
<link
rel="preload"
- href="/_next/static/runtime/main-c88e5b9647134fe3d99a.module.js"
+ href="/_next/static/runtime/main-1814f0d8ef179fb12882.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -24,7 +24,7 @@
/>
<link
rel="preload"
- href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.38f50e949e1a74742f96.module.js"
+ href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.a305f69ab07958bac8bd.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -81,13 +81,13 @@
src="/_next/static/runtime/polyfills-b9d354b83d10fbe21b38.js"
></script>
<script
- src="/_next/static/runtime/main-cf0b7e43251fd4df3911.js"
+ src="/_next/static/runtime/main-d16a50b6915cf775943f.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/runtime/main-c88e5b9647134fe3d99a.module.js"
+ src="/_next/static/runtime/main-1814f0d8ef179fb12882.module.js"
async=""
crossorigin="anonymous"
type="module"
@@ -117,13 +117,13 @@
type="module"
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.45aa21b8a4d8bf3c44ba.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.3bf88d6a54d78a1ad7fa.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.38f50e949e1a74742f96.module.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.a305f69ab07958bac8bd.module.js"
async=""
crossorigin="anonymous"
type="module"
Diff for link.html
@@ -6,7 +6,7 @@
<meta name="next-head-count" content="2" />
<link
rel="preload"
- href="/_next/static/runtime/main-c88e5b9647134fe3d99a.module.js"
+ href="/_next/static/runtime/main-1814f0d8ef179fb12882.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -24,7 +24,7 @@
/>
<link
rel="preload"
- href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.38f50e949e1a74742f96.module.js"
+ href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.a305f69ab07958bac8bd.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -86,13 +86,13 @@
src="/_next/static/runtime/polyfills-b9d354b83d10fbe21b38.js"
></script>
<script
- src="/_next/static/runtime/main-cf0b7e43251fd4df3911.js"
+ src="/_next/static/runtime/main-d16a50b6915cf775943f.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/runtime/main-c88e5b9647134fe3d99a.module.js"
+ src="/_next/static/runtime/main-1814f0d8ef179fb12882.module.js"
async=""
crossorigin="anonymous"
type="module"
@@ -122,13 +122,13 @@
type="module"
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.45aa21b8a4d8bf3c44ba.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.3bf88d6a54d78a1ad7fa.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.38f50e949e1a74742f96.module.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.a305f69ab07958bac8bd.module.js"
async=""
crossorigin="anonymous"
type="module"
Diff for withRouter.html
@@ -6,7 +6,7 @@
<meta name="next-head-count" content="2" />
<link
rel="preload"
- href="/_next/static/runtime/main-c88e5b9647134fe3d99a.module.js"
+ href="/_next/static/runtime/main-1814f0d8ef179fb12882.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -24,7 +24,7 @@
/>
<link
rel="preload"
- href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.38f50e949e1a74742f96.module.js"
+ href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.a305f69ab07958bac8bd.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -81,13 +81,13 @@
src="/_next/static/runtime/polyfills-b9d354b83d10fbe21b38.js"
></script>
<script
- src="/_next/static/runtime/main-cf0b7e43251fd4df3911.js"
+ src="/_next/static/runtime/main-d16a50b6915cf775943f.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/runtime/main-c88e5b9647134fe3d99a.module.js"
+ src="/_next/static/runtime/main-1814f0d8ef179fb12882.module.js"
async=""
crossorigin="anonymous"
type="module"
@@ -117,13 +117,13 @@
type="module"
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.45aa21b8a4d8bf3c44ba.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.3bf88d6a54d78a1ad7fa.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.38f50e949e1a74742f96.module.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.a305f69ab07958bac8bd.module.js"
async=""
crossorigin="anonymous"
type="module"
Serverless Mode (Increase detected ⚠️ )
General Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
buildDuration | 12.2s | 12.2s | |
nodeModulesSize | 67.1 MB | 67.1 MB |
Client Bundles (main, webpack, commons) Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
main-HASH.js gzip | 6.52 kB | 6.49 kB | -31 B |
webpack-HASH.js gzip | 746 B | 746 B | ✓ |
19b7e98f51cc..62e5.js gzip | 10.6 kB | N/A | N/A |
framework.HASH.js gzip | 39.1 kB | 39.1 kB | ✓ |
19b7e98f51cc..bcce.js gzip | N/A | 10.6 kB | N/A |
Overall change | 57 kB | 57 kB |
Client Bundles (main, webpack, commons) Modern Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
main-HASH.module.js gzip | 5.61 kB | 5.57 kB | -35 B |
webpack-HASH..dule.js gzip | 746 B | 746 B | ✓ |
19b7e98f51cc..dule.js gzip | 6.93 kB | N/A | N/A |
framework.HA..dule.js gzip | 39.1 kB | 39.1 kB | ✓ |
19b7e98f51cc..dule.js gzip | N/A | 6.99 kB | N/A |
Overall change | 52.4 kB | 52.4 kB |
Legacy Client Bundles (polyfills)
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 26.3 kB | 26.3 kB | ✓ |
Overall change | 26.3 kB | 26.3 kB | ✓ |
Client Build Manifests
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
_buildManifest.js gzip | 267 B | 267 B | ✓ |
_buildManife..dule.js gzip | 272 B | 272 B | ✓ |
Overall change | 539 B | 539 B | ✓ |
Serverless bundles Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
_error.js | 875 kB | 875 kB | ✓ |
404.html | 4.17 kB | 4.17 kB | ✓ |
hooks.html | 3.79 kB | 3.79 kB | ✓ |
index.js | 875 kB | 875 kB | ✓ |
link.js | 914 kB | 914 kB | |
routerDirect.js | 906 kB | 907 kB | |
withRouter.js | 906 kB | 907 kB | |
Overall change | 4.48 MB | 4.49 MB |
Failing test suitesCommit: 7abb151 test/integration/prerender/test/index.test.js
Expand output● SSG Prerender › dev mode › should support lazy catchall route
● SSG Prerender › dev mode › should support nested lazy catchall route
● SSG Prerender › dev mode › should handle fallback only page correctly HTML
● SSG Prerender › dev mode › should handle fallback only page correctly HTML
● SSG Prerender › dev mode › should show error when rewriting to dynamic SSG page
● SSG Prerender › dev mode › should always show fallback for page not in getStaticPaths
● SSG Prerender › dev mode › should show fallback before invalid JSON is returned from getStaticProps
● SSG Prerender › dev mode › should show error for invalid JSON returned from getStaticProps on SSR
● SSG Prerender › dev mode › should show error for invalid JSON returned from getStaticProps on CST
● SSG Prerender › dev mode getStaticPaths › should not cache getStaticPaths errors
● SSG Prerender › serverless mode › should reload page on failed data request, and retry
● SSG Prerender › serverless mode › should support lazy catchall route
● SSG Prerender › serverless mode › should support nested lazy catchall route
● SSG Prerender › serverless mode › should handle fallback only page correctly HTML
● SSG Prerender › serverless mode › should handle fallback only page correctly HTML
● SSG Prerender › serverless mode › should not show error for invalid JSON returned from getStaticProps on SSR
● SSG Prerender › serverless mode › outputs dataRoutes in routes-manifest correctly
● SSG Prerender › serverless mode › outputs a prerender-manifest correctly
● SSG Prerender › enumlated serverless mode › should reload page on failed data request, and retry
● SSG Prerender › enumlated serverless mode › should support lazy catchall route
● SSG Prerender › enumlated serverless mode › should support nested lazy catchall route
● SSG Prerender › enumlated serverless mode › outputs dataRoutes in routes-manifest correctly
● SSG Prerender › enumlated serverless mode › outputs a prerender-manifest correctly
● SSG Prerender › enumlated serverless mode › should call /_error GIP on 500
● SSG Prerender › production mode › should reload page on failed data request, and retry
● SSG Prerender › production mode › should support lazy catchall route
● SSG Prerender › production mode › should support nested lazy catchall route
● SSG Prerender › production mode › should handle fallback only page correctly HTML
● SSG Prerender › production mode › should handle fallback only page correctly HTML
● SSG Prerender › production mode › should not show error for invalid JSON returned from getStaticProps on SSR
● SSG Prerender › production mode › outputs dataRoutes in routes-manifest correctly
● SSG Prerender › production mode › outputs a prerender-manifest correctly
● SSG Prerender › export mode › should copy prerender files and honor exportTrailingSlash
● SSG Prerender › export mode › should navigate between pages successfully
● Test suite failed to run
|
Stats from current PRDefault Server Mode (Increase detected
|
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
buildDuration | 12.1s | 12.1s | -88ms |
nodeModulesSize | 67.1 MB | 67.1 MB |
Page Load Tests Overall increase ✓
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.06 | 2.042 | -0.02 |
/ avg req/sec | 1213.73 | 1224.13 | |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.311 | 1.215 | -0.1 |
/error-in-render avg req/sec | 1907.55 | 2057.59 |
Client Bundles (main, webpack, commons) Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
main-HASH.js gzip | 6.52 kB | 6.49 kB | -31 B |
webpack-HASH.js gzip | 746 B | 746 B | ✓ |
19b7e98f51cc..62e5.js gzip | 10.6 kB | 10.6 kB | |
framework.HASH.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 57 kB | 57 kB |
Client Bundles (main, webpack, commons) Modern Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
main-HASH.module.js gzip | 5.61 kB | 5.57 kB | -35 B |
webpack-HASH..dule.js gzip | 746 B | 746 B | ✓ |
19b7e98f51cc..dule.js gzip | 6.93 kB | 6.99 kB | |
framework.HA..dule.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 52.4 kB | 52.4 kB |
Legacy Client Bundles (polyfills)
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 26.3 kB | 26.3 kB | ✓ |
Overall change | 26.3 kB | 26.3 kB | ✓ |
Client Build Manifests
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
_buildManifest.js gzip | 267 B | 267 B | ✓ |
_buildManife..dule.js gzip | 272 B | 272 B | ✓ |
Overall change | 539 B | 539 B | ✓ |
Rendered Page Sizes Overall decrease ✓
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
index.html gzip | 956 B | 953 B | -3 B |
link.html gzip | 961 B | 957 B | -4 B |
withRouter.html gzip | 948 B | 945 B | -3 B |
Overall change | 2.87 kB | 2.85 kB | -10 B |
Diffs
Diff for 19b7e98f51cc..96.module.js
@@ -216,6 +216,30 @@
/***/
},
+ /***/ Lab5: /***/ function(module, exports, __webpack_require__) {
+ "use strict";
+
+ exports.__esModule = true;
+ exports.default = getAssetPathFromRoute; // Translates a logical route into its pages asset path (relative from a common prefix)
+ // "asset path" being its javascript file, data file, prerendered html,...
+
+ function getAssetPathFromRoute(route) {
+ var ext =
+ arguments.length > 1 && arguments[1] !== undefined
+ ? arguments[1]
+ : "";
+ var path =
+ route === "/"
+ ? "/index"
+ : /^\/index(\/|$)/.test(route)
+ ? "/index".concat(route)
+ : "".concat(route);
+ return path + ext;
+ }
+
+ /***/
+ },
+
/***/ Qetd: /***/ function(module, exports, __webpack_require__) {
"use strict";
var assign = Object.assign.bind(Object);
@@ -607,6 +631,10 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
var _routeRegex = __webpack_require__("YTqd");
+ var _getAssetPathFromRoute = _interopRequireDefault(
+ __webpack_require__("Lab5")
+ );
+
function _interopRequireDefault(obj) {
return obj && obj.__esModule
? obj
@@ -632,8 +660,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
}
function prepareRoute(path) {
- path = delBasePath(path || "");
- return toRoute(!path || path === "/" ? "/index" : path);
+ return toRoute(delBasePath(path || "") || "/");
}
function prepareUrlAs(url, as) {
@@ -660,7 +687,9 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
// @ts-ignore __NEXT_DATA__
"/_next/data/"
.concat(__NEXT_DATA__.buildId)
- .concat(pathname, ".json")
+ .concat(
+ (0, _getAssetPathFromRoute.default)(pathname, ".json")
+ )
),
query
}),
Diff for 19b7e98f51cc..8bf3c44ba.js
@@ -239,6 +239,30 @@
/***/
},
+ /***/ Lab5: /***/ function(module, exports, __webpack_require__) {
+ "use strict";
+
+ exports.__esModule = true;
+ exports["default"] = getAssetPathFromRoute; // Translates a logical route into its pages asset path (relative from a common prefix)
+ // "asset path" being its javascript file, data file, prerendered html,...
+
+ function getAssetPathFromRoute(route) {
+ var ext =
+ arguments.length > 1 && arguments[1] !== undefined
+ ? arguments[1]
+ : "";
+ var path =
+ route === "/"
+ ? "/index"
+ : /^\/index(\/|$)/.test(route)
+ ? "/index".concat(route)
+ : "".concat(route);
+ return path + ext;
+ }
+
+ /***/
+ },
+
/***/ Qetd: /***/ function(module, exports, __webpack_require__) {
"use strict";
var assign = Object.assign.bind(Object);
@@ -737,6 +761,10 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
var _routeRegex = __webpack_require__("YTqd");
+ var _getAssetPathFromRoute = _interopRequireDefault(
+ __webpack_require__("Lab5")
+ );
+
function _interopRequireDefault(obj) {
return obj && obj.__esModule
? obj
@@ -762,8 +790,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
}
function prepareRoute(path) {
- path = delBasePath(path || "");
- return toRoute(!path || path === "/" ? "/index" : path);
+ return toRoute(delBasePath(path || "") || "/");
}
function prepareUrlAs(url, as) {
@@ -790,7 +817,9 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
// @ts-ignore __NEXT_DATA__
"/_next/data/"
.concat(__NEXT_DATA__.buildId)
- .concat(pathname, ".json")
+ .concat(
+ (0, _getAssetPathFromRoute["default"])(pathname, ".json")
+ )
),
query: query
}),
Diff for main-HASH.js
@@ -1430,7 +1430,6 @@
var _interopRequireDefault = __webpack_require__("TqRt");
exports.__esModule = true;
- exports.getAssetPath = getAssetPath;
exports["default"] = void 0;
var _url = __webpack_require__("QmWs");
@@ -1443,6 +1442,10 @@
var _routeRegex = __webpack_require__("YTqd");
+ var _getAssetPathFromRoute = _interopRequireDefault(
+ __webpack_require__("Lab5")
+ );
+
function hasRel(rel, link) {
try {
link = document.createElement("link");
@@ -1476,14 +1479,6 @@
return route.replace(/\/$/, "");
}
- function getAssetPath(route) {
- return route === "/"
- ? "/index"
- : /^\/index(\/|$)/.test(route)
- ? "/index".concat(route)
- : "".concat(route);
- }
-
function appendLink(href, rel, as) {
return new Promise(function(res, rej, link) {
link = document.createElement("link");
@@ -1576,11 +1571,14 @@
var getHrefForSlug =
/** @type string */
function getHrefForSlug(path) {
- var dataRoute = getAssetPath(path);
+ var dataRoute = (0, _getAssetPathFromRoute["default"])(
+ path,
+ ".json"
+ );
return ""
.concat(_this2.assetPrefix, "/_next/data/")
.concat(_this2.buildId)
- .concat(dataRoute, ".json");
+ .concat(dataRoute);
};
var _ref = (0, _url.parse)(href, true),
@@ -1833,7 +1831,7 @@
url = route;
} else {
if (false) {
- var ext, scriptRoute;
+ var scriptRoute, ext;
}
}
Diff for main-HASH.module.js
@@ -1071,7 +1071,6 @@
var _interopRequireDefault = __webpack_require__("TqRt");
exports.__esModule = true;
- exports.getAssetPath = getAssetPath;
exports.default = void 0;
var _url = __webpack_require__("QmWs");
@@ -1084,6 +1083,10 @@
var _routeRegex = __webpack_require__("YTqd");
+ var _getAssetPathFromRoute = _interopRequireDefault(
+ __webpack_require__("Lab5")
+ );
+
function hasRel(rel, link) {
try {
link = document.createElement("link");
@@ -1117,14 +1120,6 @@
return route.replace(/\/$/, "");
}
- function getAssetPath(route) {
- return route === "/"
- ? "/index"
- : /^\/index(\/|$)/.test(route)
- ? "/index".concat(route)
- : "".concat(route);
- }
-
function appendLink(href, rel, as) {
return new Promise((res, rej, link) => {
link = document.createElement("link");
@@ -1201,11 +1196,14 @@
var getHrefForSlug =
/** @type string */
path => {
- var dataRoute = getAssetPath(path);
+ var dataRoute = (0, _getAssetPathFromRoute.default)(
+ path,
+ ".json"
+ );
return ""
.concat(this.assetPrefix, "/_next/data/")
.concat(this.buildId)
- .concat(dataRoute, ".json");
+ .concat(dataRoute);
};
var { pathname: hrefPathname, query } = (0, _url.parse)(href, true);
@@ -1418,7 +1416,7 @@
url = route;
} else {
if (false) {
- var ext, scriptRoute;
+ var scriptRoute, ext;
}
}
Diff for index.html
@@ -6,7 +6,7 @@
<meta name="next-head-count" content="2" />
<link
rel="preload"
- href="/_next/static/runtime/main-c88e5b9647134fe3d99a.module.js"
+ href="/_next/static/runtime/main-1814f0d8ef179fb12882.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -24,7 +24,7 @@
/>
<link
rel="preload"
- href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.38f50e949e1a74742f96.module.js"
+ href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.a305f69ab07958bac8bd.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -81,13 +81,13 @@
src="/_next/static/runtime/polyfills-b9d354b83d10fbe21b38.js"
></script>
<script
- src="/_next/static/runtime/main-cf0b7e43251fd4df3911.js"
+ src="/_next/static/runtime/main-d16a50b6915cf775943f.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/runtime/main-c88e5b9647134fe3d99a.module.js"
+ src="/_next/static/runtime/main-1814f0d8ef179fb12882.module.js"
async=""
crossorigin="anonymous"
type="module"
@@ -117,13 +117,13 @@
type="module"
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.45aa21b8a4d8bf3c44ba.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.3bf88d6a54d78a1ad7fa.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.38f50e949e1a74742f96.module.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.a305f69ab07958bac8bd.module.js"
async=""
crossorigin="anonymous"
type="module"
Diff for link.html
@@ -6,7 +6,7 @@
<meta name="next-head-count" content="2" />
<link
rel="preload"
- href="/_next/static/runtime/main-c88e5b9647134fe3d99a.module.js"
+ href="/_next/static/runtime/main-1814f0d8ef179fb12882.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -24,7 +24,7 @@
/>
<link
rel="preload"
- href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.38f50e949e1a74742f96.module.js"
+ href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.a305f69ab07958bac8bd.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -86,13 +86,13 @@
src="/_next/static/runtime/polyfills-b9d354b83d10fbe21b38.js"
></script>
<script
- src="/_next/static/runtime/main-cf0b7e43251fd4df3911.js"
+ src="/_next/static/runtime/main-d16a50b6915cf775943f.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/runtime/main-c88e5b9647134fe3d99a.module.js"
+ src="/_next/static/runtime/main-1814f0d8ef179fb12882.module.js"
async=""
crossorigin="anonymous"
type="module"
@@ -122,13 +122,13 @@
type="module"
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.45aa21b8a4d8bf3c44ba.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.3bf88d6a54d78a1ad7fa.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.38f50e949e1a74742f96.module.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.a305f69ab07958bac8bd.module.js"
async=""
crossorigin="anonymous"
type="module"
Diff for withRouter.html
@@ -6,7 +6,7 @@
<meta name="next-head-count" content="2" />
<link
rel="preload"
- href="/_next/static/runtime/main-c88e5b9647134fe3d99a.module.js"
+ href="/_next/static/runtime/main-1814f0d8ef179fb12882.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -24,7 +24,7 @@
/>
<link
rel="preload"
- href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.38f50e949e1a74742f96.module.js"
+ href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.a305f69ab07958bac8bd.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -81,13 +81,13 @@
src="/_next/static/runtime/polyfills-b9d354b83d10fbe21b38.js"
></script>
<script
- src="/_next/static/runtime/main-cf0b7e43251fd4df3911.js"
+ src="/_next/static/runtime/main-d16a50b6915cf775943f.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/runtime/main-c88e5b9647134fe3d99a.module.js"
+ src="/_next/static/runtime/main-1814f0d8ef179fb12882.module.js"
async=""
crossorigin="anonymous"
type="module"
@@ -117,13 +117,13 @@
type="module"
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.45aa21b8a4d8bf3c44ba.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.3bf88d6a54d78a1ad7fa.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.38f50e949e1a74742f96.module.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.a305f69ab07958bac8bd.module.js"
async=""
crossorigin="anonymous"
type="module"
Serverless Mode (Increase detected ⚠️ )
General Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
buildDuration | 12.8s | 12.4s | -454ms |
nodeModulesSize | 67.1 MB | 67.1 MB |
Client Bundles (main, webpack, commons) Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
main-HASH.js gzip | 6.52 kB | 6.49 kB | -31 B |
webpack-HASH.js gzip | 746 B | 746 B | ✓ |
19b7e98f51cc..62e5.js gzip | 10.6 kB | N/A | N/A |
framework.HASH.js gzip | 39.1 kB | 39.1 kB | ✓ |
19b7e98f51cc..bcce.js gzip | N/A | 10.6 kB | N/A |
Overall change | 57 kB | 57 kB |
Client Bundles (main, webpack, commons) Modern Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
main-HASH.module.js gzip | 5.61 kB | 5.57 kB | -35 B |
webpack-HASH..dule.js gzip | 746 B | 746 B | ✓ |
19b7e98f51cc..dule.js gzip | 6.93 kB | N/A | N/A |
framework.HA..dule.js gzip | 39.1 kB | 39.1 kB | ✓ |
19b7e98f51cc..dule.js gzip | N/A | 6.99 kB | N/A |
Overall change | 52.4 kB | 52.4 kB |
Legacy Client Bundles (polyfills)
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 26.3 kB | 26.3 kB | ✓ |
Overall change | 26.3 kB | 26.3 kB | ✓ |
Client Build Manifests
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
_buildManifest.js gzip | 267 B | 267 B | ✓ |
_buildManife..dule.js gzip | 272 B | 272 B | ✓ |
Overall change | 539 B | 539 B | ✓ |
Serverless bundles Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
_error.js | 875 kB | 875 kB | ✓ |
404.html | 4.17 kB | 4.17 kB | ✓ |
hooks.html | 3.79 kB | 3.79 kB | ✓ |
index.js | 875 kB | 875 kB | ✓ |
link.js | 914 kB | 914 kB | |
routerDirect.js | 906 kB | 907 kB | |
withRouter.js | 906 kB | 907 kB | |
Overall change | 4.48 MB | 4.49 MB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Stats from current PRDefault Server Mode (Increase detected
|
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
buildDuration | 9.6s | 9.5s | -96ms |
nodeModulesSize | 67.1 MB | 67.1 MB |
Page Load Tests Overall increase ✓
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 1.683 | 1.627 | -0.06 |
/ avg req/sec | 1485.72 | 1536.15 | |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 0.986 | 0.959 | -0.03 |
/error-in-render avg req/sec | 2536.08 | 2607.16 |
Client Bundles (main, webpack, commons) Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
main-HASH.js gzip | 6.52 kB | 6.49 kB | -31 B |
webpack-HASH.js gzip | 746 B | 746 B | ✓ |
19b7e98f51cc..62e5.js gzip | 10.6 kB | 10.6 kB | |
framework.HASH.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 57 kB | 57 kB |
Client Bundles (main, webpack, commons) Modern Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
main-HASH.module.js gzip | 5.61 kB | 5.57 kB | -35 B |
webpack-HASH..dule.js gzip | 746 B | 746 B | ✓ |
19b7e98f51cc..dule.js gzip | 6.93 kB | 6.99 kB | |
framework.HA..dule.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 52.4 kB | 52.4 kB |
Legacy Client Bundles (polyfills)
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 26.3 kB | 26.3 kB | ✓ |
Overall change | 26.3 kB | 26.3 kB | ✓ |
Client Build Manifests
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
_buildManifest.js gzip | 267 B | 267 B | ✓ |
_buildManife..dule.js gzip | 272 B | 272 B | ✓ |
Overall change | 539 B | 539 B | ✓ |
Rendered Page Sizes Overall decrease ✓
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
index.html gzip | 956 B | 953 B | -3 B |
link.html gzip | 961 B | 957 B | -4 B |
withRouter.html gzip | 948 B | 945 B | -3 B |
Overall change | 2.87 kB | 2.85 kB | -10 B |
Diffs
Diff for 19b7e98f51cc..96.module.js
@@ -216,6 +216,30 @@
/***/
},
+ /***/ Lab5: /***/ function(module, exports, __webpack_require__) {
+ "use strict";
+
+ exports.__esModule = true;
+ exports.default = getAssetPathFromRoute; // Translates a logical route into its pages asset path (relative from a common prefix)
+ // "asset path" being its javascript file, data file, prerendered html,...
+
+ function getAssetPathFromRoute(route) {
+ var ext =
+ arguments.length > 1 && arguments[1] !== undefined
+ ? arguments[1]
+ : "";
+ var path =
+ route === "/"
+ ? "/index"
+ : /^\/index(\/|$)/.test(route)
+ ? "/index".concat(route)
+ : "".concat(route);
+ return path + ext;
+ }
+
+ /***/
+ },
+
/***/ Qetd: /***/ function(module, exports, __webpack_require__) {
"use strict";
var assign = Object.assign.bind(Object);
@@ -607,6 +631,10 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
var _routeRegex = __webpack_require__("YTqd");
+ var _getAssetPathFromRoute = _interopRequireDefault(
+ __webpack_require__("Lab5")
+ );
+
function _interopRequireDefault(obj) {
return obj && obj.__esModule
? obj
@@ -632,8 +660,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
}
function prepareRoute(path) {
- path = delBasePath(path || "");
- return toRoute(!path || path === "/" ? "/index" : path);
+ return toRoute(delBasePath(path || "") || "/");
}
function prepareUrlAs(url, as) {
@@ -660,7 +687,9 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
// @ts-ignore __NEXT_DATA__
"/_next/data/"
.concat(__NEXT_DATA__.buildId)
- .concat(pathname, ".json")
+ .concat(
+ (0, _getAssetPathFromRoute.default)(pathname, ".json")
+ )
),
query
}),
Diff for 19b7e98f51cc..8bf3c44ba.js
@@ -239,6 +239,30 @@
/***/
},
+ /***/ Lab5: /***/ function(module, exports, __webpack_require__) {
+ "use strict";
+
+ exports.__esModule = true;
+ exports["default"] = getAssetPathFromRoute; // Translates a logical route into its pages asset path (relative from a common prefix)
+ // "asset path" being its javascript file, data file, prerendered html,...
+
+ function getAssetPathFromRoute(route) {
+ var ext =
+ arguments.length > 1 && arguments[1] !== undefined
+ ? arguments[1]
+ : "";
+ var path =
+ route === "/"
+ ? "/index"
+ : /^\/index(\/|$)/.test(route)
+ ? "/index".concat(route)
+ : "".concat(route);
+ return path + ext;
+ }
+
+ /***/
+ },
+
/***/ Qetd: /***/ function(module, exports, __webpack_require__) {
"use strict";
var assign = Object.assign.bind(Object);
@@ -737,6 +761,10 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
var _routeRegex = __webpack_require__("YTqd");
+ var _getAssetPathFromRoute = _interopRequireDefault(
+ __webpack_require__("Lab5")
+ );
+
function _interopRequireDefault(obj) {
return obj && obj.__esModule
? obj
@@ -762,8 +790,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
}
function prepareRoute(path) {
- path = delBasePath(path || "");
- return toRoute(!path || path === "/" ? "/index" : path);
+ return toRoute(delBasePath(path || "") || "/");
}
function prepareUrlAs(url, as) {
@@ -790,7 +817,9 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
// @ts-ignore __NEXT_DATA__
"/_next/data/"
.concat(__NEXT_DATA__.buildId)
- .concat(pathname, ".json")
+ .concat(
+ (0, _getAssetPathFromRoute["default"])(pathname, ".json")
+ )
),
query: query
}),
Diff for main-HASH.js
@@ -1430,7 +1430,6 @@
var _interopRequireDefault = __webpack_require__("TqRt");
exports.__esModule = true;
- exports.getAssetPath = getAssetPath;
exports["default"] = void 0;
var _url = __webpack_require__("QmWs");
@@ -1443,6 +1442,10 @@
var _routeRegex = __webpack_require__("YTqd");
+ var _getAssetPathFromRoute = _interopRequireDefault(
+ __webpack_require__("Lab5")
+ );
+
function hasRel(rel, link) {
try {
link = document.createElement("link");
@@ -1476,14 +1479,6 @@
return route.replace(/\/$/, "");
}
- function getAssetPath(route) {
- return route === "/"
- ? "/index"
- : /^\/index(\/|$)/.test(route)
- ? "/index".concat(route)
- : "".concat(route);
- }
-
function appendLink(href, rel, as) {
return new Promise(function(res, rej, link) {
link = document.createElement("link");
@@ -1576,11 +1571,14 @@
var getHrefForSlug =
/** @type string */
function getHrefForSlug(path) {
- var dataRoute = getAssetPath(path);
+ var dataRoute = (0, _getAssetPathFromRoute["default"])(
+ path,
+ ".json"
+ );
return ""
.concat(_this2.assetPrefix, "/_next/data/")
.concat(_this2.buildId)
- .concat(dataRoute, ".json");
+ .concat(dataRoute);
};
var _ref = (0, _url.parse)(href, true),
@@ -1833,7 +1831,7 @@
url = route;
} else {
if (false) {
- var ext, scriptRoute;
+ var scriptRoute, ext;
}
}
Diff for main-HASH.module.js
@@ -1071,7 +1071,6 @@
var _interopRequireDefault = __webpack_require__("TqRt");
exports.__esModule = true;
- exports.getAssetPath = getAssetPath;
exports.default = void 0;
var _url = __webpack_require__("QmWs");
@@ -1084,6 +1083,10 @@
var _routeRegex = __webpack_require__("YTqd");
+ var _getAssetPathFromRoute = _interopRequireDefault(
+ __webpack_require__("Lab5")
+ );
+
function hasRel(rel, link) {
try {
link = document.createElement("link");
@@ -1117,14 +1120,6 @@
return route.replace(/\/$/, "");
}
- function getAssetPath(route) {
- return route === "/"
- ? "/index"
- : /^\/index(\/|$)/.test(route)
- ? "/index".concat(route)
- : "".concat(route);
- }
-
function appendLink(href, rel, as) {
return new Promise((res, rej, link) => {
link = document.createElement("link");
@@ -1201,11 +1196,14 @@
var getHrefForSlug =
/** @type string */
path => {
- var dataRoute = getAssetPath(path);
+ var dataRoute = (0, _getAssetPathFromRoute.default)(
+ path,
+ ".json"
+ );
return ""
.concat(this.assetPrefix, "/_next/data/")
.concat(this.buildId)
- .concat(dataRoute, ".json");
+ .concat(dataRoute);
};
var { pathname: hrefPathname, query } = (0, _url.parse)(href, true);
@@ -1418,7 +1416,7 @@
url = route;
} else {
if (false) {
- var ext, scriptRoute;
+ var scriptRoute, ext;
}
}
Diff for index.html
@@ -6,7 +6,7 @@
<meta name="next-head-count" content="2" />
<link
rel="preload"
- href="/_next/static/runtime/main-c88e5b9647134fe3d99a.module.js"
+ href="/_next/static/runtime/main-1814f0d8ef179fb12882.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -24,7 +24,7 @@
/>
<link
rel="preload"
- href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.38f50e949e1a74742f96.module.js"
+ href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.a305f69ab07958bac8bd.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -81,13 +81,13 @@
src="/_next/static/runtime/polyfills-b9d354b83d10fbe21b38.js"
></script>
<script
- src="/_next/static/runtime/main-cf0b7e43251fd4df3911.js"
+ src="/_next/static/runtime/main-d16a50b6915cf775943f.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/runtime/main-c88e5b9647134fe3d99a.module.js"
+ src="/_next/static/runtime/main-1814f0d8ef179fb12882.module.js"
async=""
crossorigin="anonymous"
type="module"
@@ -117,13 +117,13 @@
type="module"
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.45aa21b8a4d8bf3c44ba.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.3bf88d6a54d78a1ad7fa.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.38f50e949e1a74742f96.module.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.a305f69ab07958bac8bd.module.js"
async=""
crossorigin="anonymous"
type="module"
Diff for link.html
@@ -6,7 +6,7 @@
<meta name="next-head-count" content="2" />
<link
rel="preload"
- href="/_next/static/runtime/main-c88e5b9647134fe3d99a.module.js"
+ href="/_next/static/runtime/main-1814f0d8ef179fb12882.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -24,7 +24,7 @@
/>
<link
rel="preload"
- href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.38f50e949e1a74742f96.module.js"
+ href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.a305f69ab07958bac8bd.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -86,13 +86,13 @@
src="/_next/static/runtime/polyfills-b9d354b83d10fbe21b38.js"
></script>
<script
- src="/_next/static/runtime/main-cf0b7e43251fd4df3911.js"
+ src="/_next/static/runtime/main-d16a50b6915cf775943f.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/runtime/main-c88e5b9647134fe3d99a.module.js"
+ src="/_next/static/runtime/main-1814f0d8ef179fb12882.module.js"
async=""
crossorigin="anonymous"
type="module"
@@ -122,13 +122,13 @@
type="module"
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.45aa21b8a4d8bf3c44ba.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.3bf88d6a54d78a1ad7fa.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.38f50e949e1a74742f96.module.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.a305f69ab07958bac8bd.module.js"
async=""
crossorigin="anonymous"
type="module"
Diff for withRouter.html
@@ -6,7 +6,7 @@
<meta name="next-head-count" content="2" />
<link
rel="preload"
- href="/_next/static/runtime/main-c88e5b9647134fe3d99a.module.js"
+ href="/_next/static/runtime/main-1814f0d8ef179fb12882.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -24,7 +24,7 @@
/>
<link
rel="preload"
- href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.38f50e949e1a74742f96.module.js"
+ href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.a305f69ab07958bac8bd.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -81,13 +81,13 @@
src="/_next/static/runtime/polyfills-b9d354b83d10fbe21b38.js"
></script>
<script
- src="/_next/static/runtime/main-cf0b7e43251fd4df3911.js"
+ src="/_next/static/runtime/main-d16a50b6915cf775943f.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/runtime/main-c88e5b9647134fe3d99a.module.js"
+ src="/_next/static/runtime/main-1814f0d8ef179fb12882.module.js"
async=""
crossorigin="anonymous"
type="module"
@@ -117,13 +117,13 @@
type="module"
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.45aa21b8a4d8bf3c44ba.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.3bf88d6a54d78a1ad7fa.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.38f50e949e1a74742f96.module.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.a305f69ab07958bac8bd.module.js"
async=""
crossorigin="anonymous"
type="module"
Serverless Mode (Increase detected ⚠️ )
General Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
buildDuration | 10.2s | 10.2s | |
nodeModulesSize | 67.1 MB | 67.1 MB |
Client Bundles (main, webpack, commons) Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
main-HASH.js gzip | 6.52 kB | 6.49 kB | -31 B |
webpack-HASH.js gzip | 746 B | 746 B | ✓ |
19b7e98f51cc..62e5.js gzip | 10.6 kB | N/A | N/A |
framework.HASH.js gzip | 39.1 kB | 39.1 kB | ✓ |
19b7e98f51cc..bcce.js gzip | N/A | 10.6 kB | N/A |
Overall change | 57 kB | 57 kB |
Client Bundles (main, webpack, commons) Modern Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
main-HASH.module.js gzip | 5.61 kB | 5.57 kB | -35 B |
webpack-HASH..dule.js gzip | 746 B | 746 B | ✓ |
19b7e98f51cc..dule.js gzip | 6.93 kB | N/A | N/A |
framework.HA..dule.js gzip | 39.1 kB | 39.1 kB | ✓ |
19b7e98f51cc..dule.js gzip | N/A | 6.99 kB | N/A |
Overall change | 52.4 kB | 52.4 kB |
Legacy Client Bundles (polyfills)
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 26.3 kB | 26.3 kB | ✓ |
Overall change | 26.3 kB | 26.3 kB | ✓ |
Client Build Manifests
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
_buildManifest.js gzip | 267 B | 267 B | ✓ |
_buildManife..dule.js gzip | 272 B | 272 B | ✓ |
Overall change | 539 B | 539 B | ✓ |
Serverless bundles Overall increase ⚠️
vercel/next.js canary | Janpot/next.js wip-remove-index | Change | |
---|---|---|---|
_error.js | 875 kB | 875 kB | ✓ |
404.html | 4.17 kB | 4.17 kB | ✓ |
hooks.html | 3.79 kB | 3.79 kB | ✓ |
index.js | 875 kB | 875 kB | ✓ |
link.js | 914 kB | 915 kB | |
routerDirect.js | 906 kB | 907 kB | |
withRouter.js | 906 kB | 907 kB | |
Overall change | 4.48 MB | 4.49 MB |
Noticed this while reviewing vercel#14376. After having done vercel#13699, this code didn't feel right to me: ```js function prepareRoute(path: string) { path = delBasePath(path || '') // this /index rewrite is problematic, it makes pages/index.js // and pages/index/index.js point to the same thing: return toRoute(!path || path === '/' ? '/index' : path) } ``` Added a nested index page to the prerender tests and found it was rendering the `/` route on navigation. This uncovered 2 more places around the dataroute where the index path was not translated correctly. **edit:** Just to note that there was nothing wrong with vercel#14376, the issue was already there, I just noticed it while reading that PR
Noticed this while reviewing #14376. After having done #13699, this code didn't feel right to me:
Added a nested index page to the prerender tests and found it was rendering the
/
route on navigation. This uncovered 2 more places around the dataroute where the index path was not translated correctly.edit:
Just to note that there was nothing wrong with #14376, the issue was already there, I just noticed it while reading that PR