-
Notifications
You must be signed in to change notification settings - Fork 27.2k
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 basepath trailing slash #15200
Merged
Merged
fix basepath trailing slash #15200
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Stats from current PRDefault Server Mode (Increase detected
|
vercel/next.js canary | Janpot/next.js basepath-trailing-slash | Change | |
---|---|---|---|
buildDuration | 12.3s | 12.4s | |
nodeModulesSize | 66.5 MB | 66.5 MB |
Page Load Tests Overall decrease ⚠️
vercel/next.js canary | Janpot/next.js basepath-trailing-slash | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.034 | 2.013 | -0.02 |
/ avg req/sec | 1229.32 | 1242.17 | +12.85 |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.225 | 1.278 | |
/error-in-render avg req/sec | 2039.99 | 1956.62 |
Client Bundles (main, webpack, commons) Overall increase ⚠️
vercel/next.js canary | Janpot/next.js basepath-trailing-slash | Change | |
---|---|---|---|
main-HASH.js gzip | 6.72 kB | 6.72 kB | ✓ |
webpack-HASH.js gzip | 751 B | 751 B | ✓ |
19b7e98f51cc..cead.js gzip | 9.77 kB | 9.78 kB | |
framework.HASH.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 56.4 kB | 56.4 kB |
Client Bundles (main, webpack, commons) Modern Overall increase ⚠️
vercel/next.js canary | Janpot/next.js basepath-trailing-slash | Change | |
---|---|---|---|
main-HASH.module.js gzip | 5.8 kB | 5.8 kB | ✓ |
webpack-HASH..dule.js gzip | 751 B | 751 B | ✓ |
19b7e98f51cc..dule.js gzip | 6.17 kB | 6.18 kB | |
framework.HA..dule.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 51.9 kB | 51.9 kB |
Legacy Client Bundles (polyfills)
vercel/next.js canary | Janpot/next.js basepath-trailing-slash | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 26.4 kB | 26.4 kB | ✓ |
Overall change | 26.4 kB | 26.4 kB | ✓ |
Client Build Manifests
vercel/next.js canary | Janpot/next.js basepath-trailing-slash | Change | |
---|---|---|---|
_buildManifest.js gzip | 267 B | 267 B | ✓ |
_buildManife..dule.js gzip | 273 B | 273 B | ✓ |
Overall change | 540 B | 540 B | ✓ |
Rendered Page Sizes Overall decrease ✓
vercel/next.js canary | Janpot/next.js basepath-trailing-slash | Change | |
---|---|---|---|
index.html gzip | 954 B | 954 B | ✓ |
link.html gzip | 962 B | 959 B | -3 B |
withRouter.html gzip | 948 B | 945 B | -3 B |
Overall change | 2.86 kB | 2.86 kB | -6 B |
Diffs
Diff for 19b7e98f51cc..48.module.js
@@ -330,6 +330,7 @@
exports.__esModule = true;
exports.removePathTrailingSlash = removePathTrailingSlash;
exports.normalizeTrailingSlash = normalizeTrailingSlash;
+ exports.normalizePathTrailingSlash = void 0;
/**
* Removes the trailing slash of a path if there is one. Preserves the root path `/`.
*/
@@ -349,6 +350,8 @@
* Normalizes the trailing slash of the path of a parsed url. Non-destructive.
*/
+ exports.normalizePathTrailingSlash = normalizePathTrailingSlash;
+
function normalizeTrailingSlash(url) {
var normalizedPath =
url.pathname && normalizePathTrailingSlash(url.pathname);
@@ -588,7 +591,11 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
var basePath = false || "";
function addBasePath(path) {
- return basePath ? (path === "/" ? basePath : basePath + path) : path;
+ return basePath
+ ? path === "/"
+ ? (0, _normalizeTrailingSlash.normalizePathTrailingSlash)(basePath)
+ : basePath + path
+ : path;
}
function delBasePath(path) {
Diff for 19b7e98f51cc..2ee983bad.js
@@ -409,6 +409,7 @@
exports.__esModule = true;
exports.removePathTrailingSlash = removePathTrailingSlash;
exports.normalizeTrailingSlash = normalizeTrailingSlash;
+ exports.normalizePathTrailingSlash = void 0;
/**
* Removes the trailing slash of a path if there is one. Preserves the root path `/`.
*/
@@ -428,6 +429,8 @@
* Normalizes the trailing slash of the path of a parsed url. Non-destructive.
*/
+ exports.normalizePathTrailingSlash = normalizePathTrailingSlash;
+
function normalizeTrailingSlash(url) {
var normalizedPath =
url.pathname && normalizePathTrailingSlash(url.pathname);
@@ -723,7 +726,11 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
var basePath = false || "";
function addBasePath(path) {
- return basePath ? (path === "/" ? basePath : basePath + path) : path;
+ return basePath
+ ? path === "/"
+ ? (0, _normalizeTrailingSlash.normalizePathTrailingSlash)(basePath)
+ : basePath + path
+ : path;
}
function delBasePath(path) {
Diff for index.html
@@ -24,7 +24,7 @@
/>
<link
rel="preload"
- href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.5bca75f3a87d540d7c48.module.js"
+ href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.22466679e4b2b5d9c38a.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -117,13 +117,13 @@
type="module"
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.b5c2b9fbb9c2ee983bad.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.d640e2a126685fefb495.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.5bca75f3a87d540d7c48.module.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.22466679e4b2b5d9c38a.module.js"
async=""
crossorigin="anonymous"
type="module"
Diff for link.html
@@ -24,7 +24,7 @@
/>
<link
rel="preload"
- href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.5bca75f3a87d540d7c48.module.js"
+ href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.22466679e4b2b5d9c38a.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -122,13 +122,13 @@
type="module"
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.b5c2b9fbb9c2ee983bad.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.d640e2a126685fefb495.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.5bca75f3a87d540d7c48.module.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.22466679e4b2b5d9c38a.module.js"
async=""
crossorigin="anonymous"
type="module"
Diff for withRouter.html
@@ -24,7 +24,7 @@
/>
<link
rel="preload"
- href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.5bca75f3a87d540d7c48.module.js"
+ href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.22466679e4b2b5d9c38a.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -117,13 +117,13 @@
type="module"
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.b5c2b9fbb9c2ee983bad.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.d640e2a126685fefb495.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.5bca75f3a87d540d7c48.module.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.22466679e4b2b5d9c38a.module.js"
async=""
crossorigin="anonymous"
type="module"
Serverless Mode (Increase detected ⚠️ )
General Overall increase ⚠️
vercel/next.js canary | Janpot/next.js basepath-trailing-slash | Change | |
---|---|---|---|
buildDuration | 13.2s | 13.3s | |
nodeModulesSize | 66.5 MB | 66.5 MB |
Client Bundles (main, webpack, commons) Overall increase ⚠️
vercel/next.js canary | Janpot/next.js basepath-trailing-slash | Change | |
---|---|---|---|
main-HASH.js gzip | 6.72 kB | 6.72 kB | ✓ |
webpack-HASH.js gzip | 751 B | 751 B | ✓ |
19b7e98f51cc..cead.js gzip | 9.77 kB | N/A | N/A |
framework.HASH.js gzip | 39.1 kB | 39.1 kB | ✓ |
19b7e98f51cc..d690.js gzip | N/A | 9.78 kB | N/A |
Overall change | 56.4 kB | 56.4 kB |
Client Bundles (main, webpack, commons) Modern Overall increase ⚠️
vercel/next.js canary | Janpot/next.js basepath-trailing-slash | Change | |
---|---|---|---|
main-HASH.module.js gzip | 5.8 kB | 5.8 kB | ✓ |
webpack-HASH..dule.js gzip | 751 B | 751 B | ✓ |
19b7e98f51cc..dule.js gzip | 6.17 kB | N/A | N/A |
framework.HA..dule.js gzip | 39.1 kB | 39.1 kB | ✓ |
19b7e98f51cc..dule.js gzip | N/A | 6.18 kB | N/A |
Overall change | 51.9 kB | 51.9 kB |
Legacy Client Bundles (polyfills)
vercel/next.js canary | Janpot/next.js basepath-trailing-slash | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 26.4 kB | 26.4 kB | ✓ |
Overall change | 26.4 kB | 26.4 kB | ✓ |
Client Build Manifests
vercel/next.js canary | Janpot/next.js basepath-trailing-slash | Change | |
---|---|---|---|
_buildManifest.js gzip | 267 B | 267 B | ✓ |
_buildManife..dule.js gzip | 273 B | 273 B | ✓ |
Overall change | 540 B | 540 B | ✓ |
Serverless bundles Overall increase ⚠️
vercel/next.js canary | Janpot/next.js basepath-trailing-slash | Change | |
---|---|---|---|
_error.js | 882 kB | 882 kB | ✓ |
404.html | 4.17 kB | 4.17 kB | ✓ |
hooks.html | 3.79 kB | 3.79 kB | ✓ |
index.js | 882 kB | 882 kB | ✓ |
link.js | 924 kB | 924 kB | |
routerDirect.js | 918 kB | 918 kB | |
withRouter.js | 918 kB | 918 kB | |
Overall change | 4.53 MB | 4.53 MB |
Failing test suitesCommit: ae3fe80 test/integration/size-limit/test/index.test.js
Expand output● Production response size › should not increase the overall response size of default build
|
Timer
reviewed
Jul 15, 2020
Timer
requested changes
Jul 15, 2020
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.
Please replace all manual replacing:
.replace('// <placeholder>', 'trailingSlash: true')
.replace('// basePath:', 'basePath:')
With the File
utility!
Stats from current PRDefault Server Mode (Decrease detected ✓)General Overall decrease ✓
Page Load Tests Overall increase ✓
Client Bundles (main, webpack, commons) Overall decrease ✓
Client Bundles (main, webpack, commons) Modern Overall decrease ✓
Legacy Client Bundles (polyfills)
Client Build Manifests
Rendered Page Sizes Overall decrease ✓
DiffsDiff for 19b7e98f51cc..48.module.js@@ -329,7 +329,7 @@
exports.__esModule = true;
exports.removePathTrailingSlash = removePathTrailingSlash;
- exports.normalizeTrailingSlash = normalizeTrailingSlash;
+ exports.normalizePathTrailingSlash = void 0;
/**
* Removes the trailing slash of a path if there is one. Preserves the root path `/`.
*/
@@ -345,23 +345,7 @@
var normalizePathTrailingSlash = false
? undefined
: removePathTrailingSlash;
- /**
- * Normalizes the trailing slash of the path of a parsed url. Non-destructive.
- */
-
- function normalizeTrailingSlash(url) {
- var normalizedPath =
- url.pathname && normalizePathTrailingSlash(url.pathname);
- return url.pathname === normalizedPath
- ? url
- : url instanceof URL
- ? Object.assign(new URL(url.href), {
- pathname: normalizedPath
- })
- : Object.assign({}, url, {
- pathname: normalizedPath
- });
- }
+ exports.normalizePathTrailingSlash = normalizePathTrailingSlash;
/***/
},
@@ -588,7 +572,11 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
var basePath = false || "";
function addBasePath(path) {
- return basePath ? (path === "/" ? basePath : basePath + path) : path;
+ return basePath
+ ? path === "/"
+ ? (0, _normalizeTrailingSlash.normalizePathTrailingSlash)(basePath)
+ : basePath + path
+ : path;
}
function delBasePath(path) {
@@ -612,9 +600,9 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
typeof href === "string"
? href
: (0, _utils.formatWithValidation)(href);
- var finalUrl = (0, _normalizeTrailingSlash.normalizeTrailingSlash)(
- new URL(urlAsString, base)
- ); // if the origin didn't change, it means we received a relative href
+ var finalUrl = new URL(urlAsString, base);
+ finalUrl.pathname = (0,
+ _normalizeTrailingSlash.normalizePathTrailingSlash)(finalUrl.pathname); // if the origin didn't change, it means we received a relative href
return finalUrl.origin === base.origin
? finalUrl.href.slice(finalUrl.origin.length) Diff for 19b7e98f51cc..2ee983bad.js@@ -408,7 +408,7 @@
exports.__esModule = true;
exports.removePathTrailingSlash = removePathTrailingSlash;
- exports.normalizeTrailingSlash = normalizeTrailingSlash;
+ exports.normalizePathTrailingSlash = void 0;
/**
* Removes the trailing slash of a path if there is one. Preserves the root path `/`.
*/
@@ -424,23 +424,7 @@
var normalizePathTrailingSlash = false
? undefined
: removePathTrailingSlash;
- /**
- * Normalizes the trailing slash of the path of a parsed url. Non-destructive.
- */
-
- function normalizeTrailingSlash(url) {
- var normalizedPath =
- url.pathname && normalizePathTrailingSlash(url.pathname);
- return url.pathname === normalizedPath
- ? url
- : url instanceof URL
- ? Object.assign(new URL(url.href), {
- pathname: normalizedPath
- })
- : Object.assign({}, url, {
- pathname: normalizedPath
- });
- }
+ exports.normalizePathTrailingSlash = normalizePathTrailingSlash;
/***/
},
@@ -723,7 +707,11 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
var basePath = false || "";
function addBasePath(path) {
- return basePath ? (path === "/" ? basePath : basePath + path) : path;
+ return basePath
+ ? path === "/"
+ ? (0, _normalizeTrailingSlash.normalizePathTrailingSlash)(basePath)
+ : basePath + path
+ : path;
}
function delBasePath(path) {
@@ -747,9 +735,9 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
typeof href === "string"
? href
: (0, _utils.formatWithValidation)(href);
- var finalUrl = (0, _normalizeTrailingSlash.normalizeTrailingSlash)(
- new URL(urlAsString, base)
- ); // if the origin didn't change, it means we received a relative href
+ var finalUrl = new URL(urlAsString, base);
+ finalUrl.pathname = (0,
+ _normalizeTrailingSlash.normalizePathTrailingSlash)(finalUrl.pathname); // if the origin didn't change, it means we received a relative href
return finalUrl.origin === base.origin
? finalUrl.href.slice(finalUrl.origin.length) Diff for index.html@@ -24,7 +24,7 @@
/>
<link
rel="preload"
- href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.5bca75f3a87d540d7c48.module.js"
+ href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.811b5004511e489d7629.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -117,13 +117,13 @@
type="module"
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.b5c2b9fbb9c2ee983bad.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.8ad209e2165faf626451.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.5bca75f3a87d540d7c48.module.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.811b5004511e489d7629.module.js"
async=""
crossorigin="anonymous"
type="module" Diff for link.html@@ -24,7 +24,7 @@
/>
<link
rel="preload"
- href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.5bca75f3a87d540d7c48.module.js"
+ href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.811b5004511e489d7629.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -122,13 +122,13 @@
type="module"
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.b5c2b9fbb9c2ee983bad.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.8ad209e2165faf626451.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.5bca75f3a87d540d7c48.module.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.811b5004511e489d7629.module.js"
async=""
crossorigin="anonymous"
type="module" Diff for withRouter.html@@ -24,7 +24,7 @@
/>
<link
rel="preload"
- href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.5bca75f3a87d540d7c48.module.js"
+ href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.811b5004511e489d7629.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -117,13 +117,13 @@
type="module"
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.b5c2b9fbb9c2ee983bad.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.8ad209e2165faf626451.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.5bca75f3a87d540d7c48.module.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.811b5004511e489d7629.module.js"
async=""
crossorigin="anonymous"
type="module" Serverless Mode (Decrease detected ✓)General Overall decrease ✓
Client Bundles (main, webpack, commons) Overall decrease ✓
Client Bundles (main, webpack, commons) Modern Overall decrease ✓
Legacy Client Bundles (polyfills)
Client Build Manifests
Serverless bundles Overall decrease ✓
|
Stats from current PRDefault Server Mode (Increase detected
|
vercel/next.js canary | Janpot/next.js basepath-trailing-slash | Change | |
---|---|---|---|
buildDuration | 13.2s | 13.2s | -45ms |
nodeModulesSize | 66.5 MB | 66.5 MB | -1.3 kB |
Page Load Tests Overall increase ✓
vercel/next.js canary | Janpot/next.js basepath-trailing-slash | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.286 | 2.212 | -0.07 |
/ avg req/sec | 1093.69 | 1130.3 | +36.61 |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.521 | 1.453 | -0.07 |
/error-in-render avg req/sec | 1643.45 | 1720.16 | +76.71 |
Client Bundles (main, webpack, commons) Overall decrease ✓
vercel/next.js canary | Janpot/next.js basepath-trailing-slash | Change | |
---|---|---|---|
main-HASH.js gzip | 6.72 kB | 6.72 kB | ✓ |
webpack-HASH.js gzip | 751 B | 751 B | ✓ |
19b7e98f51cc..cead.js gzip | 9.77 kB | 9.74 kB | -28 B |
framework.HASH.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 56.4 kB | 56.4 kB | -28 B |
Client Bundles (main, webpack, commons) Modern Overall decrease ✓
vercel/next.js canary | Janpot/next.js basepath-trailing-slash | Change | |
---|---|---|---|
main-HASH.module.js gzip | 5.8 kB | 5.8 kB | ✓ |
webpack-HASH..dule.js gzip | 751 B | 751 B | ✓ |
19b7e98f51cc..dule.js gzip | 6.17 kB | 6.14 kB | -28 B |
framework.HA..dule.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 51.9 kB | 51.8 kB | -28 B |
Legacy Client Bundles (polyfills)
vercel/next.js canary | Janpot/next.js basepath-trailing-slash | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 26.4 kB | 26.4 kB | ✓ |
Overall change | 26.4 kB | 26.4 kB | ✓ |
Client Build Manifests
vercel/next.js canary | Janpot/next.js basepath-trailing-slash | Change | |
---|---|---|---|
_buildManifest.js gzip | 267 B | 267 B | ✓ |
_buildManife..dule.js gzip | 273 B | 273 B | ✓ |
Overall change | 540 B | 540 B | ✓ |
Rendered Page Sizes Overall decrease ✓
vercel/next.js canary | Janpot/next.js basepath-trailing-slash | Change | |
---|---|---|---|
index.html gzip | 954 B | 953 B | -1 B |
link.html gzip | 962 B | 960 B | -2 B |
withRouter.html gzip | 948 B | 945 B | -3 B |
Overall change | 2.86 kB | 2.86 kB | -6 B |
Diffs
Diff for 19b7e98f51cc..48.module.js
@@ -329,7 +329,7 @@
exports.__esModule = true;
exports.removePathTrailingSlash = removePathTrailingSlash;
- exports.normalizeTrailingSlash = normalizeTrailingSlash;
+ exports.normalizePathTrailingSlash = void 0;
/**
* Removes the trailing slash of a path if there is one. Preserves the root path `/`.
*/
@@ -345,23 +345,7 @@
var normalizePathTrailingSlash = false
? undefined
: removePathTrailingSlash;
- /**
- * Normalizes the trailing slash of the path of a parsed url. Non-destructive.
- */
-
- function normalizeTrailingSlash(url) {
- var normalizedPath =
- url.pathname && normalizePathTrailingSlash(url.pathname);
- return url.pathname === normalizedPath
- ? url
- : url instanceof URL
- ? Object.assign(new URL(url.href), {
- pathname: normalizedPath
- })
- : Object.assign({}, url, {
- pathname: normalizedPath
- });
- }
+ exports.normalizePathTrailingSlash = normalizePathTrailingSlash;
/***/
},
@@ -588,7 +572,11 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
var basePath = false || "";
function addBasePath(path) {
- return basePath ? (path === "/" ? basePath : basePath + path) : path;
+ return basePath
+ ? path === "/"
+ ? (0, _normalizeTrailingSlash.normalizePathTrailingSlash)(basePath)
+ : basePath + path
+ : path;
}
function delBasePath(path) {
@@ -612,9 +600,9 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
typeof href === "string"
? href
: (0, _utils.formatWithValidation)(href);
- var finalUrl = (0, _normalizeTrailingSlash.normalizeTrailingSlash)(
- new URL(urlAsString, base)
- ); // if the origin didn't change, it means we received a relative href
+ var finalUrl = new URL(urlAsString, base);
+ finalUrl.pathname = (0,
+ _normalizeTrailingSlash.normalizePathTrailingSlash)(finalUrl.pathname); // if the origin didn't change, it means we received a relative href
return finalUrl.origin === base.origin
? finalUrl.href.slice(finalUrl.origin.length)
Diff for 19b7e98f51cc..2ee983bad.js
@@ -408,7 +408,7 @@
exports.__esModule = true;
exports.removePathTrailingSlash = removePathTrailingSlash;
- exports.normalizeTrailingSlash = normalizeTrailingSlash;
+ exports.normalizePathTrailingSlash = void 0;
/**
* Removes the trailing slash of a path if there is one. Preserves the root path `/`.
*/
@@ -424,23 +424,7 @@
var normalizePathTrailingSlash = false
? undefined
: removePathTrailingSlash;
- /**
- * Normalizes the trailing slash of the path of a parsed url. Non-destructive.
- */
-
- function normalizeTrailingSlash(url) {
- var normalizedPath =
- url.pathname && normalizePathTrailingSlash(url.pathname);
- return url.pathname === normalizedPath
- ? url
- : url instanceof URL
- ? Object.assign(new URL(url.href), {
- pathname: normalizedPath
- })
- : Object.assign({}, url, {
- pathname: normalizedPath
- });
- }
+ exports.normalizePathTrailingSlash = normalizePathTrailingSlash;
/***/
},
@@ -723,7 +707,11 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
var basePath = false || "";
function addBasePath(path) {
- return basePath ? (path === "/" ? basePath : basePath + path) : path;
+ return basePath
+ ? path === "/"
+ ? (0, _normalizeTrailingSlash.normalizePathTrailingSlash)(basePath)
+ : basePath + path
+ : path;
}
function delBasePath(path) {
@@ -747,9 +735,9 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
typeof href === "string"
? href
: (0, _utils.formatWithValidation)(href);
- var finalUrl = (0, _normalizeTrailingSlash.normalizeTrailingSlash)(
- new URL(urlAsString, base)
- ); // if the origin didn't change, it means we received a relative href
+ var finalUrl = new URL(urlAsString, base);
+ finalUrl.pathname = (0,
+ _normalizeTrailingSlash.normalizePathTrailingSlash)(finalUrl.pathname); // if the origin didn't change, it means we received a relative href
return finalUrl.origin === base.origin
? finalUrl.href.slice(finalUrl.origin.length)
Diff for index.html
@@ -24,7 +24,7 @@
/>
<link
rel="preload"
- href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.5bca75f3a87d540d7c48.module.js"
+ href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.811b5004511e489d7629.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -117,13 +117,13 @@
type="module"
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.b5c2b9fbb9c2ee983bad.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.8ad209e2165faf626451.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.5bca75f3a87d540d7c48.module.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.811b5004511e489d7629.module.js"
async=""
crossorigin="anonymous"
type="module"
Diff for link.html
@@ -24,7 +24,7 @@
/>
<link
rel="preload"
- href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.5bca75f3a87d540d7c48.module.js"
+ href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.811b5004511e489d7629.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -122,13 +122,13 @@
type="module"
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.b5c2b9fbb9c2ee983bad.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.8ad209e2165faf626451.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.5bca75f3a87d540d7c48.module.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.811b5004511e489d7629.module.js"
async=""
crossorigin="anonymous"
type="module"
Diff for withRouter.html
@@ -24,7 +24,7 @@
/>
<link
rel="preload"
- href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.5bca75f3a87d540d7c48.module.js"
+ href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.811b5004511e489d7629.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -117,13 +117,13 @@
type="module"
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.b5c2b9fbb9c2ee983bad.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.8ad209e2165faf626451.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.5bca75f3a87d540d7c48.module.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.811b5004511e489d7629.module.js"
async=""
crossorigin="anonymous"
type="module"
Serverless Mode (Decrease detected ✓)
General Overall decrease ✓
vercel/next.js canary | Janpot/next.js basepath-trailing-slash | Change | |
---|---|---|---|
buildDuration | 14.3s | 14.6s | |
nodeModulesSize | 66.5 MB | 66.5 MB | -1.3 kB |
Client Bundles (main, webpack, commons) Overall decrease ✓
vercel/next.js canary | Janpot/next.js basepath-trailing-slash | Change | |
---|---|---|---|
main-HASH.js gzip | 6.72 kB | 6.72 kB | ✓ |
webpack-HASH.js gzip | 751 B | 751 B | ✓ |
19b7e98f51cc..cead.js gzip | 9.77 kB | N/A | N/A |
framework.HASH.js gzip | 39.1 kB | 39.1 kB | ✓ |
19b7e98f51cc..6b36.js gzip | N/A | 9.74 kB | N/A |
Overall change | 56.4 kB | 56.4 kB | -28 B |
Client Bundles (main, webpack, commons) Modern Overall decrease ✓
vercel/next.js canary | Janpot/next.js basepath-trailing-slash | Change | |
---|---|---|---|
main-HASH.module.js gzip | 5.8 kB | 5.8 kB | ✓ |
webpack-HASH..dule.js gzip | 751 B | 751 B | ✓ |
19b7e98f51cc..dule.js gzip | 6.17 kB | N/A | N/A |
framework.HA..dule.js gzip | 39.1 kB | 39.1 kB | ✓ |
19b7e98f51cc..dule.js gzip | N/A | 6.14 kB | N/A |
Overall change | 51.9 kB | 51.8 kB | -28 B |
Legacy Client Bundles (polyfills)
vercel/next.js canary | Janpot/next.js basepath-trailing-slash | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 26.4 kB | 26.4 kB | ✓ |
Overall change | 26.4 kB | 26.4 kB | ✓ |
Client Build Manifests
vercel/next.js canary | Janpot/next.js basepath-trailing-slash | Change | |
---|---|---|---|
_buildManifest.js gzip | 267 B | 267 B | ✓ |
_buildManife..dule.js gzip | 273 B | 273 B | ✓ |
Overall change | 540 B | 540 B | ✓ |
Serverless bundles Overall decrease ✓
vercel/next.js canary | Janpot/next.js basepath-trailing-slash | Change | |
---|---|---|---|
_error.js | 882 kB | 882 kB | ✓ |
404.html | 4.17 kB | 4.17 kB | ✓ |
hooks.html | 3.79 kB | 3.79 kB | ✓ |
index.js | 882 kB | 882 kB | ✓ |
link.js | 924 kB | 923 kB | -256 B |
routerDirect.js | 918 kB | 917 kB | -256 B |
withRouter.js | 918 kB | 917 kB | -256 B |
Overall change | 4.53 MB | 4.53 MB | -768 B |
Timer
approved these changes
Jul 15, 2020
Stats from current PRDefault Server Mode (Increase detected
|
vercel/next.js canary | Janpot/next.js basepath-trailing-slash | Change | |
---|---|---|---|
buildDuration | 12.6s | 12.6s | -69ms |
nodeModulesSize | 66.5 MB | 66.5 MB | -1.3 kB |
Page Load Tests Overall increase ✓
vercel/next.js canary | Janpot/next.js basepath-trailing-slash | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.082 | 2.089 | |
/ avg req/sec | 1200.69 | 1196.84 | |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.327 | 1.295 | -0.03 |
/error-in-render avg req/sec | 1884.39 | 1931.21 | +46.82 |
Client Bundles (main, webpack, commons) Overall decrease ✓
vercel/next.js canary | Janpot/next.js basepath-trailing-slash | Change | |
---|---|---|---|
main-HASH.js gzip | 6.72 kB | 6.72 kB | ✓ |
webpack-HASH.js gzip | 751 B | 751 B | ✓ |
19b7e98f51cc..cead.js gzip | 9.77 kB | 9.74 kB | -28 B |
framework.HASH.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 56.4 kB | 56.4 kB | -28 B |
Client Bundles (main, webpack, commons) Modern Overall decrease ✓
vercel/next.js canary | Janpot/next.js basepath-trailing-slash | Change | |
---|---|---|---|
main-HASH.module.js gzip | 5.8 kB | 5.8 kB | ✓ |
webpack-HASH..dule.js gzip | 751 B | 751 B | ✓ |
19b7e98f51cc..dule.js gzip | 6.17 kB | 6.14 kB | -28 B |
framework.HA..dule.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 51.9 kB | 51.8 kB | -28 B |
Legacy Client Bundles (polyfills)
vercel/next.js canary | Janpot/next.js basepath-trailing-slash | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 26.4 kB | 26.4 kB | ✓ |
Overall change | 26.4 kB | 26.4 kB | ✓ |
Client Build Manifests
vercel/next.js canary | Janpot/next.js basepath-trailing-slash | Change | |
---|---|---|---|
_buildManifest.js gzip | 267 B | 267 B | ✓ |
_buildManife..dule.js gzip | 273 B | 273 B | ✓ |
Overall change | 540 B | 540 B | ✓ |
Rendered Page Sizes Overall decrease ✓
vercel/next.js canary | Janpot/next.js basepath-trailing-slash | Change | |
---|---|---|---|
index.html gzip | 954 B | 953 B | -1 B |
link.html gzip | 962 B | 960 B | -2 B |
withRouter.html gzip | 948 B | 945 B | -3 B |
Overall change | 2.86 kB | 2.86 kB | -6 B |
Diffs
Diff for 19b7e98f51cc..48.module.js
@@ -329,7 +329,7 @@
exports.__esModule = true;
exports.removePathTrailingSlash = removePathTrailingSlash;
- exports.normalizeTrailingSlash = normalizeTrailingSlash;
+ exports.normalizePathTrailingSlash = void 0;
/**
* Removes the trailing slash of a path if there is one. Preserves the root path `/`.
*/
@@ -345,23 +345,7 @@
var normalizePathTrailingSlash = false
? undefined
: removePathTrailingSlash;
- /**
- * Normalizes the trailing slash of the path of a parsed url. Non-destructive.
- */
-
- function normalizeTrailingSlash(url) {
- var normalizedPath =
- url.pathname && normalizePathTrailingSlash(url.pathname);
- return url.pathname === normalizedPath
- ? url
- : url instanceof URL
- ? Object.assign(new URL(url.href), {
- pathname: normalizedPath
- })
- : Object.assign({}, url, {
- pathname: normalizedPath
- });
- }
+ exports.normalizePathTrailingSlash = normalizePathTrailingSlash;
/***/
},
@@ -588,7 +572,11 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
var basePath = false || "";
function addBasePath(path) {
- return basePath ? (path === "/" ? basePath : basePath + path) : path;
+ return basePath
+ ? path === "/"
+ ? (0, _normalizeTrailingSlash.normalizePathTrailingSlash)(basePath)
+ : basePath + path
+ : path;
}
function delBasePath(path) {
@@ -612,9 +600,9 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
typeof href === "string"
? href
: (0, _utils.formatWithValidation)(href);
- var finalUrl = (0, _normalizeTrailingSlash.normalizeTrailingSlash)(
- new URL(urlAsString, base)
- ); // if the origin didn't change, it means we received a relative href
+ var finalUrl = new URL(urlAsString, base);
+ finalUrl.pathname = (0,
+ _normalizeTrailingSlash.normalizePathTrailingSlash)(finalUrl.pathname); // if the origin didn't change, it means we received a relative href
return finalUrl.origin === base.origin
? finalUrl.href.slice(finalUrl.origin.length)
Diff for 19b7e98f51cc..2ee983bad.js
@@ -408,7 +408,7 @@
exports.__esModule = true;
exports.removePathTrailingSlash = removePathTrailingSlash;
- exports.normalizeTrailingSlash = normalizeTrailingSlash;
+ exports.normalizePathTrailingSlash = void 0;
/**
* Removes the trailing slash of a path if there is one. Preserves the root path `/`.
*/
@@ -424,23 +424,7 @@
var normalizePathTrailingSlash = false
? undefined
: removePathTrailingSlash;
- /**
- * Normalizes the trailing slash of the path of a parsed url. Non-destructive.
- */
-
- function normalizeTrailingSlash(url) {
- var normalizedPath =
- url.pathname && normalizePathTrailingSlash(url.pathname);
- return url.pathname === normalizedPath
- ? url
- : url instanceof URL
- ? Object.assign(new URL(url.href), {
- pathname: normalizedPath
- })
- : Object.assign({}, url, {
- pathname: normalizedPath
- });
- }
+ exports.normalizePathTrailingSlash = normalizePathTrailingSlash;
/***/
},
@@ -723,7 +707,11 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
var basePath = false || "";
function addBasePath(path) {
- return basePath ? (path === "/" ? basePath : basePath + path) : path;
+ return basePath
+ ? path === "/"
+ ? (0, _normalizeTrailingSlash.normalizePathTrailingSlash)(basePath)
+ : basePath + path
+ : path;
}
function delBasePath(path) {
@@ -747,9 +735,9 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
typeof href === "string"
? href
: (0, _utils.formatWithValidation)(href);
- var finalUrl = (0, _normalizeTrailingSlash.normalizeTrailingSlash)(
- new URL(urlAsString, base)
- ); // if the origin didn't change, it means we received a relative href
+ var finalUrl = new URL(urlAsString, base);
+ finalUrl.pathname = (0,
+ _normalizeTrailingSlash.normalizePathTrailingSlash)(finalUrl.pathname); // if the origin didn't change, it means we received a relative href
return finalUrl.origin === base.origin
? finalUrl.href.slice(finalUrl.origin.length)
Diff for index.html
@@ -24,7 +24,7 @@
/>
<link
rel="preload"
- href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.5bca75f3a87d540d7c48.module.js"
+ href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.811b5004511e489d7629.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -117,13 +117,13 @@
type="module"
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.b5c2b9fbb9c2ee983bad.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.8ad209e2165faf626451.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.5bca75f3a87d540d7c48.module.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.811b5004511e489d7629.module.js"
async=""
crossorigin="anonymous"
type="module"
Diff for link.html
@@ -24,7 +24,7 @@
/>
<link
rel="preload"
- href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.5bca75f3a87d540d7c48.module.js"
+ href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.811b5004511e489d7629.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -122,13 +122,13 @@
type="module"
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.b5c2b9fbb9c2ee983bad.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.8ad209e2165faf626451.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.5bca75f3a87d540d7c48.module.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.811b5004511e489d7629.module.js"
async=""
crossorigin="anonymous"
type="module"
Diff for withRouter.html
@@ -24,7 +24,7 @@
/>
<link
rel="preload"
- href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.5bca75f3a87d540d7c48.module.js"
+ href="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.811b5004511e489d7629.module.js"
as="script"
crossorigin="anonymous"
/>
@@ -117,13 +117,13 @@
type="module"
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.b5c2b9fbb9c2ee983bad.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.8ad209e2165faf626451.js"
async=""
crossorigin="anonymous"
nomodule=""
></script>
<script
- src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.5bca75f3a87d540d7c48.module.js"
+ src="/_next/static/chunks/19b7e98f51cc0d86c45d01159bbbfb942bfe49b8.811b5004511e489d7629.module.js"
async=""
crossorigin="anonymous"
type="module"
Serverless Mode (Decrease detected ✓)
General Overall decrease ✓
vercel/next.js canary | Janpot/next.js basepath-trailing-slash | Change | |
---|---|---|---|
buildDuration | 13.9s | 13.7s | -125ms |
nodeModulesSize | 66.5 MB | 66.5 MB | -1.3 kB |
Client Bundles (main, webpack, commons) Overall decrease ✓
vercel/next.js canary | Janpot/next.js basepath-trailing-slash | Change | |
---|---|---|---|
main-HASH.js gzip | 6.72 kB | 6.72 kB | ✓ |
webpack-HASH.js gzip | 751 B | 751 B | ✓ |
19b7e98f51cc..cead.js gzip | 9.77 kB | N/A | N/A |
framework.HASH.js gzip | 39.1 kB | 39.1 kB | ✓ |
19b7e98f51cc..6b36.js gzip | N/A | 9.74 kB | N/A |
Overall change | 56.4 kB | 56.4 kB | -28 B |
Client Bundles (main, webpack, commons) Modern Overall decrease ✓
vercel/next.js canary | Janpot/next.js basepath-trailing-slash | Change | |
---|---|---|---|
main-HASH.module.js gzip | 5.8 kB | 5.8 kB | ✓ |
webpack-HASH..dule.js gzip | 751 B | 751 B | ✓ |
19b7e98f51cc..dule.js gzip | 6.17 kB | N/A | N/A |
framework.HA..dule.js gzip | 39.1 kB | 39.1 kB | ✓ |
19b7e98f51cc..dule.js gzip | N/A | 6.14 kB | N/A |
Overall change | 51.9 kB | 51.8 kB | -28 B |
Legacy Client Bundles (polyfills)
vercel/next.js canary | Janpot/next.js basepath-trailing-slash | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 26.4 kB | 26.4 kB | ✓ |
Overall change | 26.4 kB | 26.4 kB | ✓ |
Client Build Manifests
vercel/next.js canary | Janpot/next.js basepath-trailing-slash | Change | |
---|---|---|---|
_buildManifest.js gzip | 267 B | 267 B | ✓ |
_buildManife..dule.js gzip | 273 B | 273 B | ✓ |
Overall change | 540 B | 540 B | ✓ |
Serverless bundles Overall decrease ✓
vercel/next.js canary | Janpot/next.js basepath-trailing-slash | Change | |
---|---|---|---|
_error.js | 882 kB | 882 kB | ✓ |
404.html | 4.17 kB | 4.17 kB | ✓ |
hooks.html | 3.79 kB | 3.79 kB | ✓ |
index.js | 882 kB | 882 kB | ✓ |
link.js | 924 kB | 923 kB | -256 B |
routerDirect.js | 918 kB | 917 kB | -256 B |
withRouter.js | 918 kB | 917 kB | -256 B |
Overall change | 4.53 MB | 4.53 MB | -768 B |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes the link rewriting part of #15194