-
Notifications
You must be signed in to change notification settings - Fork 26.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perf: add a profiler mode to the node server #44753
Conversation
Stats from current PRDefault Build (Increase detected
|
vercel/next.js canary | vercel/next.js add-trace-debug | Change | |
---|---|---|---|
buildDuration | 1m 3.5s | 1m 5s | |
buildDurationCached | 13.5s | 14s | |
nodeModulesSize | 132 MB | 132 MB | |
nextStartRea..uration (ms) | 550ms | 570ms |
Client Bundles (main, webpack) Overall decrease ✓
vercel/next.js canary | vercel/next.js add-trace-debug | Change | |
---|---|---|---|
606-HASH.js gzip | 24.7 kB | 24.7 kB | |
9.HASH.js gzip | 180 B | 181 B | |
974ec2d0-HASH.js gzip | 50.5 kB | 50.5 kB | ✓ |
framework-HASH.js gzip | 45.2 kB | 45.2 kB | ✓ |
main-app-HASH.js gzip | 217 B | 216 B | -1 B |
main-HASH.js gzip | 27.7 kB | 27.6 kB | -25 B |
webpack-HASH.js gzip | 1.7 kB | 1.7 kB | ✓ |
Overall change | 150 kB | 150 kB | -24 B |
Legacy Client Bundles (polyfills)
vercel/next.js canary | vercel/next.js add-trace-debug | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages Overall decrease ✓
vercel/next.js canary | vercel/next.js add-trace-debug | Change | |
---|---|---|---|
_app-HASH.js gzip | 195 B | 194 B | -1 B |
_error-HASH.js gzip | 182 B | 182 B | ✓ |
amp-HASH.js gzip | 504 B | 507 B | |
css-HASH.js gzip | 320 B | 321 B | |
dynamic-HASH.js gzip | 1.82 kB | 1.82 kB | -1 B |
edge-ssr-HASH.js gzip | 256 B | 255 B | -1 B |
head-HASH.js gzip | 350 B | 351 B | |
hooks-HASH.js gzip | 369 B | 368 B | -1 B |
image-HASH.js gzip | 3.83 kB | 3.83 kB | -1 B |
index-HASH.js gzip | 256 B | 256 B | ✓ |
link-HASH.js gzip | 2.61 kB | 2.61 kB | -2 B |
routerDirect..HASH.js gzip | 311 B | 311 B | ✓ |
script-HASH.js gzip | 385 B | 385 B | ✓ |
withRouter-HASH.js gzip | 309 B | 307 B | -2 B |
85e02e95b279..7e3.css gzip | 107 B | 107 B | ✓ |
Overall change | 11.8 kB | 11.8 kB | -4 B |
Client Build Manifests
vercel/next.js canary | vercel/next.js add-trace-debug | Change | |
---|---|---|---|
_buildManifest.js gzip | 483 B | 483 B | ✓ |
Overall change | 483 B | 483 B | ✓ |
Rendered Page Sizes Overall increase ⚠️
vercel/next.js canary | vercel/next.js add-trace-debug | Change | |
---|---|---|---|
index.html gzip | 510 B | 512 B | |
link.html gzip | 524 B | 528 B | |
withRouter.html gzip | 505 B | 508 B | |
Overall change | 1.54 kB | 1.55 kB |
Edge SSR bundle Size Overall decrease ✓
vercel/next.js canary | vercel/next.js add-trace-debug | Change | |
---|---|---|---|
edge-ssr.js gzip | 88.3 kB | 88.3 kB | |
page.js gzip | 144 kB | 144 kB | -7 B |
Overall change | 232 kB | 232 kB | -3 B |
Middleware size Overall increase ⚠️
vercel/next.js canary | vercel/next.js add-trace-debug | Change | |
---|---|---|---|
middleware-b..fest.js gzip | 626 B | 627 B | |
middleware-r..fest.js gzip | 144 B | 145 B | |
middleware.js gzip | 21 kB | 21 kB | |
edge-runtime..pack.js gzip | 1.83 kB | 1.83 kB | ✓ |
Overall change | 23.6 kB | 23.6 kB |
Diffs
Diff for page.js
Diff too large to display
Diff for middleware-b..-manifest.js
@@ -7,97 +7,97 @@ self.__BUILD_MANIFEST = {
"static/BUILD_ID/_ssgManifest.js",
],
rootMainFiles: [
- "static/chunks/webpack-aa3032f54a56dedc.js",
- "static/chunks/framework-f36ad77a7a5c0ab0.js",
- "static/chunks/974ec2d0-d7f52b4dad063e40.js",
- "static/chunks/606-20cdf4ceab0acbd1.js",
- "static/chunks/main-app-07c4dc5167159262.js",
+ "static/chunks/webpack-47553a3eb0f031ba.js",
+ "static/chunks/framework-4c585c1ddda5a333.js",
+ "static/chunks/39549b6b-e31732129354aff9.js",
+ "static/chunks/7-0a557d8bf207ebe3.js",
+ "static/chunks/main-app-e172575a92a80054.js",
],
pages: {
"/": [
- "static/chunks/webpack-aa3032f54a56dedc.js",
- "static/chunks/framework-f36ad77a7a5c0ab0.js",
- "static/chunks/main-bf13de1edec6bf51.js",
- "static/chunks/pages/index-73e61f551f6942fb.js",
+ "static/chunks/webpack-47553a3eb0f031ba.js",
+ "static/chunks/framework-4c585c1ddda5a333.js",
+ "static/chunks/main-7d94658eae146068.js",
+ "static/chunks/pages/index-b27e261de6a98233.js",
],
"/_app": [
- "static/chunks/webpack-aa3032f54a56dedc.js",
- "static/chunks/framework-f36ad77a7a5c0ab0.js",
- "static/chunks/main-bf13de1edec6bf51.js",
- "static/chunks/pages/_app-4ce47ffa64d5cee5.js",
+ "static/chunks/webpack-47553a3eb0f031ba.js",
+ "static/chunks/framework-4c585c1ddda5a333.js",
+ "static/chunks/main-7d94658eae146068.js",
+ "static/chunks/pages/_app-9b05656d2c01065f.js",
],
"/_error": [
- "static/chunks/webpack-aa3032f54a56dedc.js",
- "static/chunks/framework-f36ad77a7a5c0ab0.js",
- "static/chunks/main-bf13de1edec6bf51.js",
- "static/chunks/pages/_error-dc5dba09656e585f.js",
+ "static/chunks/webpack-47553a3eb0f031ba.js",
+ "static/chunks/framework-4c585c1ddda5a333.js",
+ "static/chunks/main-7d94658eae146068.js",
+ "static/chunks/pages/_error-07e6ce9646113e18.js",
],
"/amp": [
- "static/chunks/webpack-aa3032f54a56dedc.js",
- "static/chunks/framework-f36ad77a7a5c0ab0.js",
- "static/chunks/main-bf13de1edec6bf51.js",
- "static/chunks/pages/amp-adb784fc8419e472.js",
+ "static/chunks/webpack-47553a3eb0f031ba.js",
+ "static/chunks/framework-4c585c1ddda5a333.js",
+ "static/chunks/main-7d94658eae146068.js",
+ "static/chunks/pages/amp-5b13834f1a6185c5.js",
],
"/css": [
- "static/chunks/webpack-aa3032f54a56dedc.js",
- "static/chunks/framework-f36ad77a7a5c0ab0.js",
- "static/chunks/main-bf13de1edec6bf51.js",
+ "static/chunks/webpack-47553a3eb0f031ba.js",
+ "static/chunks/framework-4c585c1ddda5a333.js",
+ "static/chunks/main-7d94658eae146068.js",
"static/css/94fdbc56eafa2039.css",
- "static/chunks/pages/css-9c2929f80dffa841.js",
+ "static/chunks/pages/css-a954fe90a591d776.js",
],
"/dynamic": [
- "static/chunks/webpack-aa3032f54a56dedc.js",
- "static/chunks/framework-f36ad77a7a5c0ab0.js",
- "static/chunks/main-bf13de1edec6bf51.js",
- "static/chunks/pages/dynamic-b04ed3837db75eab.js",
+ "static/chunks/webpack-47553a3eb0f031ba.js",
+ "static/chunks/framework-4c585c1ddda5a333.js",
+ "static/chunks/main-7d94658eae146068.js",
+ "static/chunks/pages/dynamic-5ec40dd0bfe5c9fe.js",
],
"/edge-ssr": [
- "static/chunks/webpack-aa3032f54a56dedc.js",
- "static/chunks/framework-f36ad77a7a5c0ab0.js",
- "static/chunks/main-bf13de1edec6bf51.js",
- "static/chunks/pages/edge-ssr-f2aa541ccbb5616e.js",
+ "static/chunks/webpack-47553a3eb0f031ba.js",
+ "static/chunks/framework-4c585c1ddda5a333.js",
+ "static/chunks/main-7d94658eae146068.js",
+ "static/chunks/pages/edge-ssr-d05e0e6c4b0f8c3c.js",
],
"/head": [
- "static/chunks/webpack-aa3032f54a56dedc.js",
- "static/chunks/framework-f36ad77a7a5c0ab0.js",
- "static/chunks/main-bf13de1edec6bf51.js",
- "static/chunks/pages/head-e84a0745b30d7800.js",
+ "static/chunks/webpack-47553a3eb0f031ba.js",
+ "static/chunks/framework-4c585c1ddda5a333.js",
+ "static/chunks/main-7d94658eae146068.js",
+ "static/chunks/pages/head-84516712a41e8774.js",
],
"/hooks": [
- "static/chunks/webpack-aa3032f54a56dedc.js",
- "static/chunks/framework-f36ad77a7a5c0ab0.js",
- "static/chunks/main-bf13de1edec6bf51.js",
- "static/chunks/pages/hooks-67dc3793196997cf.js",
+ "static/chunks/webpack-47553a3eb0f031ba.js",
+ "static/chunks/framework-4c585c1ddda5a333.js",
+ "static/chunks/main-7d94658eae146068.js",
+ "static/chunks/pages/hooks-098f77b3140ecce8.js",
],
"/image": [
- "static/chunks/webpack-aa3032f54a56dedc.js",
- "static/chunks/framework-f36ad77a7a5c0ab0.js",
- "static/chunks/main-bf13de1edec6bf51.js",
- "static/chunks/pages/image-237e8fc3a7bdd8f2.js",
+ "static/chunks/webpack-47553a3eb0f031ba.js",
+ "static/chunks/framework-4c585c1ddda5a333.js",
+ "static/chunks/main-7d94658eae146068.js",
+ "static/chunks/pages/image-b169e1386bd0843a.js",
],
"/link": [
- "static/chunks/webpack-aa3032f54a56dedc.js",
- "static/chunks/framework-f36ad77a7a5c0ab0.js",
- "static/chunks/main-bf13de1edec6bf51.js",
- "static/chunks/pages/link-7bb5ea1a5a178db7.js",
+ "static/chunks/webpack-47553a3eb0f031ba.js",
+ "static/chunks/framework-4c585c1ddda5a333.js",
+ "static/chunks/main-7d94658eae146068.js",
+ "static/chunks/pages/link-313bef9650226604.js",
],
"/routerDirect": [
- "static/chunks/webpack-aa3032f54a56dedc.js",
- "static/chunks/framework-f36ad77a7a5c0ab0.js",
- "static/chunks/main-bf13de1edec6bf51.js",
- "static/chunks/pages/routerDirect-35dcdb6a65d3b21f.js",
+ "static/chunks/webpack-47553a3eb0f031ba.js",
+ "static/chunks/framework-4c585c1ddda5a333.js",
+ "static/chunks/main-7d94658eae146068.js",
+ "static/chunks/pages/routerDirect-a4371e7bca96e027.js",
],
"/script": [
- "static/chunks/webpack-aa3032f54a56dedc.js",
- "static/chunks/framework-f36ad77a7a5c0ab0.js",
- "static/chunks/main-bf13de1edec6bf51.js",
- "static/chunks/pages/script-57c7854259c205b6.js",
+ "static/chunks/webpack-47553a3eb0f031ba.js",
+ "static/chunks/framework-4c585c1ddda5a333.js",
+ "static/chunks/main-7d94658eae146068.js",
+ "static/chunks/pages/script-eca1edb18604fceb.js",
],
"/withRouter": [
- "static/chunks/webpack-aa3032f54a56dedc.js",
- "static/chunks/framework-f36ad77a7a5c0ab0.js",
- "static/chunks/main-bf13de1edec6bf51.js",
- "static/chunks/pages/withRouter-f375949da3842a3a.js",
+ "static/chunks/webpack-47553a3eb0f031ba.js",
+ "static/chunks/framework-4c585c1ddda5a333.js",
+ "static/chunks/main-7d94658eae146068.js",
+ "static/chunks/pages/withRouter-05b7dc75b1131bd3.js",
],
},
ampFirstPages: [],
Diff for middleware-r..-manifest.js
@@ -1,6 +1,6 @@
self.__REACT_LOADABLE_MANIFEST = {
"dynamic.js -> ../components/hello": {
- id: 3009,
- files: ["static/chunks/9.61b34194ea8a102b.js"],
+ id: 3270,
+ files: ["static/chunks/270.21df5c6d1503180b.js"],
},
};
Diff for middleware.js
@@ -2,7 +2,7 @@
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[826],
{
- /***/ 4426: /***/ (
+ /***/ 1551: /***/ (
__unused_webpack_module,
__webpack_exports__,
__webpack_require__
@@ -15,7 +15,7 @@
__webpack_require__.d(__webpack_exports__, {
default: () =>
/* binding */ next_middleware_loaderabsolutePagePath_private_next_root_dir_2Fmiddleware_js_page_2Fmiddleware_rootDir_2Ftmp_2Fnext_statsMtX86M_2Fstats_app_matchers_,
- }); // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/error.js
+ }); // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/error.js
class PageSignatureError extends Error {
constructor({ page }) {
@@ -42,7 +42,7 @@
Read more: https://nextjs.org/docs/messages/middleware-parse-user-agent
`);
}
- } //# sourceMappingURL=error.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/utils.js
+ } //# sourceMappingURL=error.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/utils.js
function fromNodeHeaders(object) {
const headers = new Headers();
@@ -163,7 +163,7 @@
}
);
}
- } //# sourceMappingURL=utils.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/spec-extension/fetch-event.js
+ } //# sourceMappingURL=utils.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/spec-extension/fetch-event.js
const responseSymbol = Symbol("response");
const passThroughSymbol = Symbol("passThrough");
@@ -209,7 +209,7 @@
page: this.sourcePage,
});
}
- } //# sourceMappingURL=fetch-event.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/i18n/detect-domain-locale.js
+ } //# sourceMappingURL=fetch-event.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/i18n/detect-domain-locale.js
function detectDomainLocale(domainItems, hostname, detectedLocale) {
if (!domainItems) return;
@@ -235,7 +235,7 @@
return item;
}
}
- } //# sourceMappingURL=detect-domain-locale.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/remove-trailing-slash.js
+ } //# sourceMappingURL=detect-domain-locale.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/remove-trailing-slash.js
/**
* Removes the trailing slash for a given route or page path. Preserves the
@@ -245,7 +245,7 @@
* - `/` -> `/`
*/ function removeTrailingSlash(route) {
return route.replace(/\/$/, "") || "/";
- } //# sourceMappingURL=remove-trailing-slash.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/parse-path.js
+ } //# sourceMappingURL=remove-trailing-slash.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/parse-path.js
/**
* Given a path this function will find the pathname, query and hash and return
@@ -273,7 +273,7 @@
query: "",
hash: "",
};
- } //# sourceMappingURL=parse-path.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/add-path-prefix.js
+ } //# sourceMappingURL=parse-path.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/add-path-prefix.js
/**
* Adds the provided prefix to the given path. It first ensures that the path
@@ -284,7 +284,7 @@
}
const { pathname, query, hash } = parsePath(path);
return "" + prefix + pathname + query + hash;
- } //# sourceMappingURL=add-path-prefix.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/add-path-suffix.js
+ } //# sourceMappingURL=add-path-prefix.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/add-path-suffix.js
/**
* Similarly to `addPathPrefix`, this function adds a suffix at the end on the
@@ -296,7 +296,7 @@
}
const { pathname, query, hash } = parsePath(path);
return "" + pathname + suffix + query + hash;
- } //# sourceMappingURL=add-path-suffix.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/path-has-prefix.js
+ } //# sourceMappingURL=add-path-suffix.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/path-has-prefix.js
/**
* Checks if a given path starts with a given prefix. It ensures it matches
@@ -310,7 +310,7 @@
}
const { pathname } = parsePath(path);
return pathname === prefix || pathname.startsWith(prefix + "/");
- } //# sourceMappingURL=path-has-prefix.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/add-locale.js
+ } //# sourceMappingURL=path-has-prefix.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/add-locale.js
/**
* For a given path and a locale, if the locale is given, it will prefix the
@@ -329,7 +329,7 @@
}
// Add the locale prefix to the path.
return addPathPrefix(path, "/" + locale);
- } //# sourceMappingURL=add-locale.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/format-next-pathname-info.js
+ } //# sourceMappingURL=add-locale.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/format-next-pathname-info.js
function formatNextPathnameInfo(info) {
let pathname = addLocale(
@@ -353,7 +353,7 @@
? addPathSuffix(pathname, "/")
: pathname
: removeTrailingSlash(pathname);
- } //# sourceMappingURL=format-next-pathname-info.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/get-hostname.js
+ } //# sourceMappingURL=format-next-pathname-info.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/get-hostname.js
/**
* Takes an object with a hostname property (like a parsed URL) and some
@@ -373,7 +373,7 @@
hostname = parsed.hostname;
} else return;
return hostname.toLowerCase();
- } //# sourceMappingURL=get-hostname.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/i18n/normalize-locale-path.js
+ } //# sourceMappingURL=get-hostname.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/i18n/normalize-locale-path.js
/**
* For a pathname that may include a locale from a list of locales, it
@@ -403,7 +403,7 @@
pathname,
detectedLocale,
};
- } //# sourceMappingURL=normalize-locale-path.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/remove-path-prefix.js
+ } //# sourceMappingURL=normalize-locale-path.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/remove-path-prefix.js
/**
* Given a path and a prefix it will remove the prefix when it exists in the
@@ -437,7 +437,7 @@
// If the path without the prefix doesn't start with a `/` we need to add it
// back to the path to make sure it's a valid path.
return "/" + withoutPrefix;
- } //# sourceMappingURL=remove-path-prefix.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/get-next-pathname-info.js
+ } //# sourceMappingURL=remove-path-prefix.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/get-next-pathname-info.js
function getNextPathnameInfo(pathname, options) {
var _options_nextConfig;
@@ -488,7 +488,7 @@
: info.pathname;
}
return info;
- } //# sourceMappingURL=get-next-pathname-info.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/next-url.js
+ } //# sourceMappingURL=get-next-pathname-info.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/next-url.js
const REGEX_LOCALHOST_HOSTNAME =
/(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|::1|localhost)/;
@@ -715,8 +715,8 @@
}
} //# sourceMappingURL=next-url.js.map
- // EXTERNAL MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js
- var cookies = __webpack_require__(2537); // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/spec-extension/cookies.js // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/spec-extension/request.js
+ // EXTERNAL MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js
+ var cookies = __webpack_require__(1960); // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/spec-extension/cookies.js // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/spec-extension/request.js
//# sourceMappingURL=cookies.js.map
const INTERNALS = Symbol("internal request");
@@ -792,7 +792,7 @@
get url() {
return this[INTERNALS].url;
}
- } //# sourceMappingURL=request.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/spec-extension/response.js
+ } //# sourceMappingURL=request.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/spec-extension/response.js
const response_INTERNALS = Symbol("internal response");
const REDIRECTS = new Set([301, 302, 303, 307, 308]);
@@ -891,7 +891,7 @@
headers,
});
}
- } //# sourceMappingURL=response.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/relativize-url.js
+ } //# sourceMappingURL=response.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/relativize-url.js
/**
* Given a URL as a string and a base URL it will make the URL relative
@@ -904,7 +904,7 @@
return relative.protocol + "//" + relative.host === origin
? relative.toString().replace(origin, "")
: relative.toString();
- } //# sourceMappingURL=relativize-url.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/internal-utils.js
+ } //# sourceMappingURL=relativize-url.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/internal-utils.js
const INTERNAL_QUERY_NAMES = [
"__nextFallback",
@@ -929,7 +929,7 @@
}
}
return searchParams;
- } //# sourceMappingURL=internal-utils.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/app-paths.js
+ } //# sourceMappingURL=internal-utils.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/app-paths.js
/**
* Normalizes an app route so it represents the actual request path. Essentially
@@ -980,7 +980,7 @@
* Since this function is used on full urls it checks `?` for searchParams handling.
*/ function normalizeRscPath(pathname, enabled) {
return enabled ? pathname.replace(/\.rsc($|\?)/, "$1") : pathname;
- } //# sourceMappingURL=app-paths.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/client/components/app-router-headers.js
+ } //# sourceMappingURL=app-paths.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/client/components/app-router-headers.js
const RSC = "RSC";
const ACTION = "Next-Action";
@@ -995,7 +995,7 @@
[RSC],
[NEXT_ROUTER_STATE_TREE],
[NEXT_ROUTER_PREFETCH],
- ]; //# sourceMappingURL=app-router-headers.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/lib/constants.js
+ ]; //# sourceMappingURL=app-router-headers.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/lib/constants.js
const NEXT_QUERY_PARAM_PREFIX = "nxtP";
const PRERENDER_REVALIDATE_HEADER = "x-prerender-revalidate";
@@ -1091,7 +1091,7 @@
middleware: "middleware",
edgeAsset: "edge-asset",
appClient: "app-client",
- }; //# sourceMappingURL=constants.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/adapter.js
+ }; //# sourceMappingURL=constants.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/adapter.js
class NextRequestHint extends NextRequest {
constructor(params) {
@@ -1385,11 +1385,11 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
});
// Eagerly fire instrumentation hook to make the startup faster.
void ensureInstrumentationRegistered();
- } //# sourceMappingURL=adapter.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/build/webpack/loaders/next-middleware-loader.js?absolutePagePath=private-next-root-dir%2Fmiddleware.js&page=%2Fmiddleware&rootDir=%2Ftmp%2Fnext-statsMtX86M%2Fstats-app&matchers=!
+ } //# sourceMappingURL=adapter.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/build/webpack/loaders/next-middleware-loader.js?absolutePagePath=private-next-root-dir%2Fmiddleware.js&page=%2Fmiddleware&rootDir=%2Ftmp%2Fnext-statsMtX86M%2Fstats-app&matchers=!
enhanceGlobals();
- var mod = __webpack_require__(8974);
+ var mod = __webpack_require__(3578);
var handler = mod.middleware || mod.default;
if (typeof handler !== "function") {
@@ -1411,7 +1411,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 8974: /***/ (
+ /***/ 3578: /***/ (
__unused_webpack_module,
__webpack_exports__,
__webpack_require__
@@ -1423,7 +1423,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/* harmony export */
});
/* harmony import */ var next_dist_server_web_exports_next_response__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(3190);
+ __webpack_require__(6151);
async function middleware() {
return next_dist_server_web_exports_next_response__WEBPACK_IMPORTED_MODULE_0__ /* ["default"].next */.Z.next();
@@ -1432,7 +1432,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 2537: /***/ (module) => {
+ /***/ 1960: /***/ (module) => {
"use strict";
var __defProp = Object.defineProperty;
@@ -1798,7 +1798,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 3190: /***/ (
+ /***/ 6151: /***/ (
__unused_webpack_module,
exports,
__webpack_require__
@@ -1816,12 +1816,12 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
return _response.NextResponse;
},
});
- const _response = __webpack_require__(9140); //# sourceMappingURL=next-response.js.map
+ const _response = __webpack_require__(587); //# sourceMappingURL=next-response.js.map
/***/
},
- /***/ 8465: /***/ (
+ /***/ 9811: /***/ (
__unused_webpack_module,
exports,
__webpack_require__
@@ -1837,10 +1837,10 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
return NextURL;
},
});
- const _detectdomainlocale = __webpack_require__(1772);
- const _formatnextpathnameinfo = __webpack_require__(5694);
- const _gethostname = __webpack_require__(2558);
- const _getnextpathnameinfo = __webpack_require__(885);
+ const _detectdomainlocale = __webpack_require__(2546);
+ const _formatnextpathnameinfo = __webpack_require__(856);
+ const _gethostname = __webpack_require__(5230);
+ const _getnextpathnameinfo = __webpack_require__(4835);
const REGEX_LOCALHOST_HOSTNAME =
/(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|::1|localhost)/;
function parseURL(url, base) {
@@ -2072,7 +2072,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 6092: /***/ (
+ /***/ 2248: /***/ (
__unused_webpack_module,
exports,
__webpack_require__
@@ -2083,7 +2083,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
value: true,
});
0 && 0;
- _export_star(__webpack_require__(2537), exports);
+ _export_star(__webpack_require__(1960), exports);
function _export_star(from, to) {
Object.keys(from).forEach(function (k) {
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
@@ -2101,7 +2101,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 9140: /***/ (
+ /***/ 587: /***/ (
__unused_webpack_module,
exports,
__webpack_require__
@@ -2117,9 +2117,9 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
return NextResponse;
},
});
- const _nexturl = __webpack_require__(8465);
- const _utils = __webpack_require__(7896);
- const _cookies = __webpack_require__(6092);
+ const _nexturl = __webpack_require__(9811);
+ const _utils = __webpack_require__(3037);
+ const _cookies = __webpack_require__(2248);
const INTERNALS = Symbol("internal response");
const REDIRECTS = new Set([301, 302, 303, 307, 308]);
function handleMiddlewareField(init, headers) {
@@ -2225,7 +2225,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 7896: /***/ (__unused_webpack_module, exports) => {
+ /***/ 3037: /***/ (__unused_webpack_module, exports) => {
"use strict";
Object.defineProperty(exports, "__esModule", {
@@ -2366,7 +2366,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 2558: /***/ (__unused_webpack_module, exports) => {
+ /***/ 5230: /***/ (__unused_webpack_module, exports) => {
"use strict";
Object.defineProperty(exports, "__esModule", {
@@ -2396,7 +2396,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 1772: /***/ (__unused_webpack_module, exports) => {
+ /***/ 2546: /***/ (__unused_webpack_module, exports) => {
"use strict";
Object.defineProperty(exports, "__esModule", {
@@ -2437,7 +2437,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 5037: /***/ (__unused_webpack_module, exports) => {
+ /***/ 9248: /***/ (__unused_webpack_module, exports) => {
"use strict";
Object.defineProperty(exports, "__esModule", {
@@ -2474,7 +2474,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 2700: /***/ (
+ /***/ 540: /***/ (
__unused_webpack_module,
exports,
__webpack_require__
@@ -2490,8 +2490,8 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
return addLocale;
},
});
- const _addpathprefix = __webpack_require__(5734);
- const _pathhasprefix = __webpack_require__(3613);
+ const _addpathprefix = __webpack_require__(553);
+ const _pathhasprefix = __webpack_require__(7699);
function addLocale(path, locale, defaultLocale, ignorePrefix) {
// If no locale was given or the locale is the default locale, we don't need
// to prefix the path.
@@ -2513,7 +2513,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 5734: /***/ (
+ /***/ 553: /***/ (
__unused_webpack_module,
exports,
__webpack_require__
@@ -2529,7 +2529,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
return addPathPrefix;
},
});
- const _parsepath = __webpack_require__(210);
+ const _parsepath = __webpack_require__(4746);
function addPathPrefix(path, prefix) {
if (!path.startsWith("/") || !prefix) {
return path;
@@ -2541,7 +2541,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 4138: /***/ (
+ /***/ 9740: /***/ (
__unused_webpack_module,
exports,
__webpack_require__
@@ -2557,7 +2557,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
return addPathSuffix;
},
});
- const _parsepath = __webpack_require__(210);
+ const _parsepath = __webpack_require__(4746);
function addPathSuffix(path, suffix) {
if (!path.startsWith("/") || !suffix) {
return path;
@@ -2569,7 +2569,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 5694: /***/ (
+ /***/ 856: /***/ (
__unused_webpack_module,
exports,
__webpack_require__
@@ -2585,10 +2585,10 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
return formatNextPathnameInfo;
},
});
- const _removetrailingslash = __webpack_require__(390);
- const _addpathprefix = __webpack_require__(5734);
- const _addpathsuffix = __webpack_require__(4138);
- const _addlocale = __webpack_require__(2700);
+ const _removetrailingslash = __webpack_require__(8735);
+ const _addpathprefix = __webpack_require__(553);
+ const _addpathsuffix = __webpack_require__(9740);
+ const _addlocale = __webpack_require__(540);
function formatNextPathnameInfo(info) {
let pathname = (0, _addlocale.addLocale)(
info.pathname,
@@ -2619,7 +2619,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 885: /***/ (
+ /***/ 4835: /***/ (
__unused_webpack_module,
exports,
__webpack_require__
@@ -2635,9 +2635,9 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
return getNextPathnameInfo;
},
});
- const _normalizelocalepath = __webpack_require__(5037);
- const _removepathprefix = __webpack_require__(1742);
- const _pathhasprefix = __webpack_require__(3613);
+ const _normalizelocalepath = __webpack_require__(9248);
+ const _removepathprefix = __webpack_require__(5627);
+ const _pathhasprefix = __webpack_require__(7699);
function getNextPathnameInfo(pathname, options) {
var _options_nextConfig;
const { basePath, i18n, trailingSlash } =
@@ -2701,7 +2701,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 210: /***/ (__unused_webpack_module, exports) => {
+ /***/ 4746: /***/ (__unused_webpack_module, exports) => {
"use strict";
/**
* Given a path this function will find the pathname, query and hash and return
@@ -2744,7 +2744,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 3613: /***/ (
+ /***/ 7699: /***/ (
__unused_webpack_module,
exports,
__webpack_require__
@@ -2760,7 +2760,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
return pathHasPrefix;
},
});
- const _parsepath = __webpack_require__(210);
+ const _parsepath = __webpack_require__(4746);
function pathHasPrefix(path, prefix) {
if (typeof path !== "string") {
return false;
@@ -2772,7 +2772,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 1742: /***/ (
+ /***/ 5627: /***/ (
__unused_webpack_module,
exports,
__webpack_require__
@@ -2788,7 +2788,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
return removePathPrefix;
},
});
- const _pathhasprefix = __webpack_require__(3613);
+ const _pathhasprefix = __webpack_require__(7699);
function removePathPrefix(path, prefix) {
// If the path doesn't start with the prefix we can return it as is. This
// protects us from situations where the prefix is a substring of the path
@@ -2819,7 +2819,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 390: /***/ (__unused_webpack_module, exports) => {
+ /***/ 8735: /***/ (__unused_webpack_module, exports) => {
"use strict";
/**
* Removes the trailing slash for a given route or page path. Preserves the
@@ -2848,7 +2848,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
// webpackRuntimeModules
/******/ var __webpack_exec__ = (moduleId) =>
__webpack_require__((__webpack_require__.s = moduleId));
- /******/ var __webpack_exports__ = __webpack_exec__(4426);
+ /******/ var __webpack_exports__ = __webpack_exec__(1551);
/******/ (_ENTRIES =
typeof _ENTRIES === "undefined" ? {} : _ENTRIES).middleware_middleware =
__webpack_exports__;
Diff for edge-ssr.js
Diff too large to display
Diff for _buildManifest.js
@@ -1,28 +1,28 @@
self.__BUILD_MANIFEST = {
__rewrites: { beforeFiles: [], afterFiles: [], fallback: [] },
- "/": ["static\u002Fchunks\u002Fpages\u002Findex-73e61f551f6942fb.js"],
- "/_error": ["static\u002Fchunks\u002Fpages\u002F_error-dc5dba09656e585f.js"],
- "/amp": ["static\u002Fchunks\u002Fpages\u002Famp-adb784fc8419e472.js"],
+ "/": ["static\u002Fchunks\u002Fpages\u002Findex-b27e261de6a98233.js"],
+ "/_error": ["static\u002Fchunks\u002Fpages\u002F_error-07e6ce9646113e18.js"],
+ "/amp": ["static\u002Fchunks\u002Fpages\u002Famp-5b13834f1a6185c5.js"],
"/css": [
"static\u002Fcss\u002F94fdbc56eafa2039.css",
- "static\u002Fchunks\u002Fpages\u002Fcss-9c2929f80dffa841.js",
+ "static\u002Fchunks\u002Fpages\u002Fcss-a954fe90a591d776.js",
],
"/dynamic": [
- "static\u002Fchunks\u002Fpages\u002Fdynamic-b04ed3837db75eab.js",
+ "static\u002Fchunks\u002Fpages\u002Fdynamic-5ec40dd0bfe5c9fe.js",
],
"/edge-ssr": [
- "static\u002Fchunks\u002Fpages\u002Fedge-ssr-f2aa541ccbb5616e.js",
+ "static\u002Fchunks\u002Fpages\u002Fedge-ssr-d05e0e6c4b0f8c3c.js",
],
- "/head": ["static\u002Fchunks\u002Fpages\u002Fhead-e84a0745b30d7800.js"],
- "/hooks": ["static\u002Fchunks\u002Fpages\u002Fhooks-67dc3793196997cf.js"],
- "/image": ["static\u002Fchunks\u002Fpages\u002Fimage-237e8fc3a7bdd8f2.js"],
- "/link": ["static\u002Fchunks\u002Fpages\u002Flink-7bb5ea1a5a178db7.js"],
+ "/head": ["static\u002Fchunks\u002Fpages\u002Fhead-84516712a41e8774.js"],
+ "/hooks": ["static\u002Fchunks\u002Fpages\u002Fhooks-098f77b3140ecce8.js"],
+ "/image": ["static\u002Fchunks\u002Fpages\u002Fimage-b169e1386bd0843a.js"],
+ "/link": ["static\u002Fchunks\u002Fpages\u002Flink-313bef9650226604.js"],
"/routerDirect": [
- "static\u002Fchunks\u002Fpages\u002FrouterDirect-35dcdb6a65d3b21f.js",
+ "static\u002Fchunks\u002Fpages\u002FrouterDirect-a4371e7bca96e027.js",
],
- "/script": ["static\u002Fchunks\u002Fpages\u002Fscript-57c7854259c205b6.js"],
+ "/script": ["static\u002Fchunks\u002Fpages\u002Fscript-eca1edb18604fceb.js"],
"/withRouter": [
- "static\u002Fchunks\u002Fpages\u002FwithRouter-f375949da3842a3a.js",
+ "static\u002Fchunks\u002Fpages\u002FwithRouter-05b7dc75b1131bd3.js",
],
sortedPages: [
"\u002F",
Diff for _app-HASH.js
@@ -1,7 +1,7 @@
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[888],
{
- /***/ 3115: /***/ function (
+ /***/ 1113: /***/ function (
__unused_webpack_module,
__unused_webpack_exports,
__webpack_require__
@@ -9,7 +9,7 @@
(window.__NEXT_P = window.__NEXT_P || []).push([
"/_app",
function () {
- return __webpack_require__(4943);
+ return __webpack_require__(7174);
},
]);
if (false) {
@@ -24,7 +24,7 @@
return __webpack_require__((__webpack_require__.s = moduleId));
};
/******/ __webpack_require__.O(0, [774, 179], function () {
- return __webpack_exec__(3115), __webpack_exec__(3985);
+ return __webpack_exec__(1113), __webpack_exec__(688);
});
/******/ var __webpack_exports__ = __webpack_require__.O();
/******/ _N_E = __webpack_exports__;
Diff for _error-HASH.js
@@ -1,7 +1,7 @@
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[820],
{
- /***/ 5374: /***/ function (
+ /***/ 3363: /***/ function (
__unused_webpack_module,
__unused_webpack_exports,
__webpack_require__
@@ -9,7 +9,7 @@
(window.__NEXT_P = window.__NEXT_P || []).push([
"/_error",
function () {
- return __webpack_require__(8567);
+ return __webpack_require__(9911);
},
]);
if (false) {
@@ -24,7 +24,7 @@
return __webpack_require__((__webpack_require__.s = moduleId));
};
/******/ __webpack_require__.O(0, [888, 774, 179], function () {
- return __webpack_exec__(5374);
+ return __webpack_exec__(3363);
});
/******/ var __webpack_exports__ = __webpack_require__.O();
/******/ _N_E = __webpack_exports__;
Diff for amp-HASH.js
@@ -1,17 +1,17 @@
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[216],
{
- /***/ 8510: /***/ function (
+ /***/ 8753: /***/ function (
module,
__unused_webpack_exports,
__webpack_require__
) {
- module.exports = __webpack_require__(4660);
+ module.exports = __webpack_require__(4487);
/***/
},
- /***/ 7010: /***/ function (
+ /***/ 5348: /***/ function (
__unused_webpack_module,
__unused_webpack_exports,
__webpack_require__
@@ -19,7 +19,7 @@
(window.__NEXT_P = window.__NEXT_P || []).push([
"/amp",
function () {
- return __webpack_require__(6624);
+ return __webpack_require__(6539);
},
]);
if (false) {
@@ -28,7 +28,7 @@
/***/
},
- /***/ 4660: /***/ function (module, exports, __webpack_require__) {
+ /***/ 4487: /***/ function (module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
@@ -44,8 +44,8 @@
const _react = /*#__PURE__*/ _interop_require_default._(
__webpack_require__(959)
);
- const _ampcontext = __webpack_require__(382);
- const _ampmode = __webpack_require__(2961);
+ const _ampcontext = __webpack_require__(2882);
+ const _ampmode = __webpack_require__(7069);
function useAmp() {
// Don't assign the context value to a variable to save bytes
return (0, _ampmode.isInAmpMode)(
@@ -67,7 +67,7 @@
/***/
},
- /***/ 6624: /***/ function (
+ /***/ 6539: /***/ function (
__unused_webpack_module,
__webpack_exports__,
__webpack_require__
@@ -84,7 +84,7 @@
/* harmony export */
});
/* harmony import */ var next_amp__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(8510);
+ __webpack_require__(8753);
/* harmony import */ var next_amp__WEBPACK_IMPORTED_MODULE_0___default =
/*#__PURE__*/ __webpack_require__.n(
next_amp__WEBPACK_IMPORTED_MODULE_0__
@@ -108,7 +108,7 @@
return __webpack_require__((__webpack_require__.s = moduleId));
};
/******/ __webpack_require__.O(0, [888, 774, 179], function () {
- return __webpack_exec__(7010);
+ return __webpack_exec__(5348);
});
/******/ var __webpack_exports__ = __webpack_require__.O();
/******/ _N_E = __webpack_exports__;
Diff for css-HASH.js
@@ -1,7 +1,7 @@
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[706],
{
- /***/ 860: /***/ function (
+ /***/ 6437: /***/ function (
__unused_webpack_module,
__unused_webpack_exports,
__webpack_require__
@@ -9,7 +9,7 @@
(window.__NEXT_P = window.__NEXT_P || []).push([
"/css",
function () {
- return __webpack_require__(1234);
+ return __webpack_require__(8045);
},
]);
if (false) {
@@ -18,7 +18,7 @@
/***/
},
- /***/ 1234: /***/ function (
+ /***/ 8045: /***/ function (
__unused_webpack_module,
__webpack_exports__,
__webpack_require__
@@ -28,7 +28,7 @@
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ =
__webpack_require__(1527);
/* harmony import */ var _css_module_css__WEBPACK_IMPORTED_MODULE_1__ =
- __webpack_require__(1355);
+ __webpack_require__(1044);
/* harmony import */ var _css_module_css__WEBPACK_IMPORTED_MODULE_1___default =
/*#__PURE__*/ __webpack_require__.n(
_css_module_css__WEBPACK_IMPORTED_MODULE_1__
@@ -48,7 +48,7 @@
/***/
},
- /***/ 1355: /***/ function (module) {
+ /***/ 1044: /***/ function (module) {
// extracted by mini-css-extract-plugin
module.exports = { helloWorld: "css_helloWorld__qqNwY" };
@@ -61,7 +61,7 @@
return __webpack_require__((__webpack_require__.s = moduleId));
};
/******/ __webpack_require__.O(0, [774, 888, 179], function () {
- return __webpack_exec__(860);
+ return __webpack_exec__(6437);
});
/******/ var __webpack_exports__ = __webpack_require__.O();
/******/ _N_E = __webpack_exports__;
Diff for dynamic-HASH.js
@@ -1,7 +1,7 @@
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[739],
{
- /***/ 3995: /***/ function (
+ /***/ 7753: /***/ function (
__unused_webpack_module,
__unused_webpack_exports,
__webpack_require__
@@ -9,7 +9,7 @@
(window.__NEXT_P = window.__NEXT_P || []).push([
"/dynamic",
function () {
- return __webpack_require__(3660);
+ return __webpack_require__(1802);
},
]);
if (false) {
@@ -18,7 +18,7 @@
/***/
},
- /***/ 8988: /***/ function (module, exports, __webpack_require__) {
+ /***/ 2406: /***/ function (module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
@@ -45,7 +45,7 @@
__webpack_require__(959)
);
const _loadable = /*#__PURE__*/ _interop_require_default._(
- __webpack_require__(3262)
+ __webpack_require__(4114)
);
const isServerSide = "object" === "undefined";
// Normalize loader to return the module as form { default: Component } for `React.lazy`.
@@ -146,7 +146,7 @@
/***/
},
- /***/ 1343: /***/ function (
+ /***/ 795: /***/ function (
__unused_webpack_module,
exports,
__webpack_require__
@@ -173,7 +173,7 @@
/***/
},
- /***/ 3262: /***/ function (
+ /***/ 4114: /***/ function (
__unused_webpack_module,
exports,
__webpack_require__
@@ -215,7 +215,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
const _react = /*#__PURE__*/ _interop_require_default._(
__webpack_require__(959)
);
- const _loadablecontext = __webpack_require__(1343);
+ const _loadablecontext = __webpack_require__(795);
function resolve(obj) {
return obj && obj.default ? obj.default : obj;
}
@@ -450,7 +450,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
/***/
},
- /***/ 3660: /***/ function (
+ /***/ 1802: /***/ function (
__unused_webpack_module,
__webpack_exports__,
__webpack_require__
@@ -466,7 +466,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ =
__webpack_require__(1527);
/* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_1__ =
- __webpack_require__(6113);
+ __webpack_require__(2677);
/* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_1___default =
/*#__PURE__*/ __webpack_require__.n(
next_dynamic__WEBPACK_IMPORTED_MODULE_1__
@@ -475,11 +475,11 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
const DynamicHello = next_dynamic__WEBPACK_IMPORTED_MODULE_1___default()(
() =>
__webpack_require__
- .e(/* import() */ 9)
- .then(__webpack_require__.bind(__webpack_require__, 3009)),
+ .e(/* import() */ 270)
+ .then(__webpack_require__.bind(__webpack_require__, 3270)),
{
loadableGenerated: {
- webpack: () => [/*require.resolve*/ 3009],
+ webpack: () => [/*require.resolve*/ 3270],
},
}
);
@@ -506,12 +506,12 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
/***/
},
- /***/ 6113: /***/ function (
+ /***/ 2677: /***/ function (
module,
__unused_webpack_exports,
__webpack_require__
) {
- module.exports = __webpack_require__(8988);
+ module.exports = __webpack_require__(2406);
/***/
},
@@ -522,7 +522,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
return __webpack_require__((__webpack_require__.s = moduleId));
};
/******/ __webpack_require__.O(0, [774, 888, 179], function () {
- return __webpack_exec__(3995);
+ return __webpack_exec__(7753);
});
/******/ var __webpack_exports__ = __webpack_require__.O();
/******/ _N_E = __webpack_exports__;
Diff for edge-ssr-HASH.js
@@ -1,7 +1,7 @@
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[800],
{
- /***/ 6219: /***/ function (
+ /***/ 6027: /***/ function (
__unused_webpack_module,
__unused_webpack_exports,
__webpack_require__
@@ -9,7 +9,7 @@
(window.__NEXT_P = window.__NEXT_P || []).push([
"/edge-ssr",
function () {
- return __webpack_require__(3114);
+ return __webpack_require__(7338);
},
]);
if (false) {
@@ -18,7 +18,7 @@
/***/
},
- /***/ 3114: /***/ function (
+ /***/ 7338: /***/ function (
__unused_webpack_module,
__webpack_exports__,
__webpack_require__
@@ -48,7 +48,7 @@
return __webpack_require__((__webpack_require__.s = moduleId));
};
/******/ __webpack_require__.O(0, [888, 774, 179], function () {
- return __webpack_exec__(6219);
+ return __webpack_exec__(6027);
});
/******/ var __webpack_exports__ = __webpack_require__.O();
/******/ _N_E = __webpack_exports__;
Diff for head-HASH.js
@@ -1,7 +1,7 @@
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[645],
{
- /***/ 2899: /***/ function (
+ /***/ 6955: /***/ function (
__unused_webpack_module,
__unused_webpack_exports,
__webpack_require__
@@ -9,7 +9,7 @@
(window.__NEXT_P = window.__NEXT_P || []).push([
"/head",
function () {
- return __webpack_require__(6279);
+ return __webpack_require__(9343);
},
]);
if (false) {
@@ -18,7 +18,7 @@
/***/
},
- /***/ 6279: /***/ function (
+ /***/ 9343: /***/ function (
__unused_webpack_module,
__webpack_exports__,
__webpack_require__
@@ -34,7 +34,7 @@
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ =
__webpack_require__(1527);
/* harmony import */ var next_head__WEBPACK_IMPORTED_MODULE_1__ =
- __webpack_require__(8412);
+ __webpack_require__(9046);
/* harmony import */ var next_head__WEBPACK_IMPORTED_MODULE_1___default =
/*#__PURE__*/ __webpack_require__.n(
next_head__WEBPACK_IMPORTED_MODULE_1__
@@ -68,12 +68,12 @@
/***/
},
- /***/ 8412: /***/ function (
+ /***/ 9046: /***/ function (
module,
__unused_webpack_exports,
__webpack_require__
) {
- module.exports = __webpack_require__(7305);
+ module.exports = __webpack_require__(3590);
/***/
},
@@ -84,7 +84,7 @@
return __webpack_require__((__webpack_require__.s = moduleId));
};
/******/ __webpack_require__.O(0, [774, 888, 179], function () {
- return __webpack_exec__(2899);
+ return __webpack_exec__(6955);
});
/******/ var __webpack_exports__ = __webpack_require__.O();
/******/ _N_E = __webpack_exports__;
Diff for hooks-HASH.js
@@ -1,7 +1,7 @@
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[757],
{
- /***/ 2304: /***/ function (
+ /***/ 7819: /***/ function (
__unused_webpack_module,
__unused_webpack_exports,
__webpack_require__
@@ -9,7 +9,7 @@
(window.__NEXT_P = window.__NEXT_P || []).push([
"/hooks",
function () {
- return __webpack_require__(8313);
+ return __webpack_require__(1780);
},
]);
if (false) {
@@ -18,7 +18,7 @@
/***/
},
- /***/ 8313: /***/ function (
+ /***/ 1780: /***/ function (
__unused_webpack_module,
__webpack_exports__,
__webpack_require__
@@ -79,7 +79,7 @@
return __webpack_require__((__webpack_require__.s = moduleId));
};
/******/ __webpack_require__.O(0, [774, 888, 179], function () {
- return __webpack_exec__(2304);
+ return __webpack_exec__(7819);
});
/******/ var __webpack_exports__ = __webpack_require__.O();
/******/ _N_E = __webpack_exports__;
Diff for image-HASH.js
@@ -1,7 +1,7 @@
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[358],
{
- /***/ 5885: /***/ function (
+ /***/ 801: /***/ function (
__unused_webpack_module,
__unused_webpack_exports,
__webpack_require__
@@ -9,7 +9,7 @@
(window.__NEXT_P = window.__NEXT_P || []).push([
"/image",
function () {
- return __webpack_require__(8931);
+ return __webpack_require__(974);
},
]);
if (false) {
@@ -18,7 +18,7 @@
/***/
},
- /***/ 3655: /***/ function (module, exports, __webpack_require__) {
+ /***/ 997: /***/ function (module, exports, __webpack_require__) {
"use strict";
/* __next_internal_client_entry_do_not_use__ cjs */
Object.defineProperty(exports, "__esModule", {
@@ -36,14 +36,14 @@
__webpack_require__(959)
);
const _head = /*#__PURE__*/ _interop_require_default._(
- __webpack_require__(7305)
+ __webpack_require__(3590)
);
- const _imageblursvg = __webpack_require__(8700);
- const _imageconfig = __webpack_require__(2975);
- const _imageconfigcontext = __webpack_require__(8415);
- const _warnonce = __webpack_require__(717);
+ const _imageblursvg = __webpack_require__(2185);
+ const _imageconfig = __webpack_require__(4115);
+ const _imageconfigcontext = __webpack_require__(2111);
+ const _warnonce = __webpack_require__(6941);
const _imageloader = /*#__PURE__*/ _interop_require_default._(
- __webpack_require__(2019)
+ __webpack_require__(3719)
);
const configEnv = {
deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
@@ -669,7 +669,7 @@
/***/
},
- /***/ 8700: /***/ function (__unused_webpack_module, exports) {
+ /***/ 2185: /***/ function (__unused_webpack_module, exports) {
"use strict";
/**
* A shared function, used on both client and server, to generate a SVG blur placeholder.
@@ -731,7 +731,7 @@
/***/
},
- /***/ 2019: /***/ function (__unused_webpack_module, exports) {
+ /***/ 3719: /***/ function (__unused_webpack_module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", {
@@ -765,7 +765,7 @@
/***/
},
- /***/ 8931: /***/ function (
+ /***/ 974: /***/ function (
__unused_webpack_module,
__webpack_exports__,
__webpack_require__
@@ -786,8 +786,8 @@
// EXTERNAL MODULE: ./node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js
var jsx_runtime = __webpack_require__(1527);
- // EXTERNAL MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/image.js
- var next_image = __webpack_require__(3960);
+ // EXTERNAL MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/image.js
+ var next_image = __webpack_require__(8249);
var image_default = /*#__PURE__*/ __webpack_require__.n(next_image); // CONCATENATED MODULE: ./pages/nextjs.png
/* harmony default export */ var nextjs = {
src: "/_next/static/media/nextjs.cae0b805.png",
@@ -817,12 +817,12 @@
/***/
},
- /***/ 3960: /***/ function (
+ /***/ 8249: /***/ function (
module,
__unused_webpack_exports,
__webpack_require__
) {
- module.exports = __webpack_require__(3655);
+ module.exports = __webpack_require__(997);
/***/
},
@@ -833,7 +833,7 @@
return __webpack_require__((__webpack_require__.s = moduleId));
};
/******/ __webpack_require__.O(0, [774, 888, 179], function () {
- return __webpack_exec__(5885);
+ return __webpack_exec__(801);
});
/******/ var __webpack_exports__ = __webpack_require__.O();
/******/ _N_E = __webpack_exports__;
Diff for index-HASH.js
@@ -1,7 +1,7 @@
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[405],
{
- /***/ 3558: /***/ function (
+ /***/ 6481: /***/ function (
__unused_webpack_module,
__unused_webpack_exports,
__webpack_require__
@@ -9,7 +9,7 @@
(window.__NEXT_P = window.__NEXT_P || []).push([
"/",
function () {
- return __webpack_require__(5241);
+ return __webpack_require__(853);
},
]);
if (false) {
@@ -18,7 +18,7 @@
/***/
},
- /***/ 5241: /***/ function (
+ /***/ 853: /***/ function (
__unused_webpack_module,
__webpack_exports__,
__webpack_require__
@@ -44,7 +44,7 @@
return __webpack_require__((__webpack_require__.s = moduleId));
};
/******/ __webpack_require__.O(0, [888, 774, 179], function () {
- return __webpack_exec__(3558);
+ return __webpack_exec__(6481);
});
/******/ var __webpack_exports__ = __webpack_require__.O();
/******/ _N_E = __webpack_exports__;
Diff for link-HASH.js
@@ -1,7 +1,7 @@
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[644],
{
- /***/ 8662: /***/ function (
+ /***/ 7014: /***/ function (
__unused_webpack_module,
__unused_webpack_exports,
__webpack_require__
@@ -9,7 +9,7 @@
(window.__NEXT_P = window.__NEXT_P || []).push([
"/link",
function () {
- return __webpack_require__(1488);
+ return __webpack_require__(1509);
},
]);
if (false) {
@@ -18,7 +18,7 @@
/***/
},
- /***/ 6994: /***/ function (module, exports) {
+ /***/ 7191: /***/ function (module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", {
@@ -86,7 +86,7 @@
/***/
},
- /***/ 1310: /***/ function (module, exports) {
+ /***/ 5578: /***/ function
Post job cleanup.
[command]/usr/bin/git version
git version 2.40.1
Temporarily overriding HOME='/home/runner/work/_temp/7874fd23-1827-4e7b-bd62-ea33943e306c' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/next.js/next.js
[command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
[command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
http.https://github.com/.extraheader
[command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Cleaning up orphan processes
Commit: fbc9f49f62522bcfd023ec02d324c7751e352994
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.
Looks like the packed Next.js version accidentally got committed, can we remove that bit?
await maybeStartProfilingRequest( | ||
normalizedReq as NodeNextRequest, | ||
normalizedRes as NodeNextResponse | ||
) | ||
return handler(this.normalizeReq(req), this.normalizeRes(res), parsedUrl) |
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.
return handler(this.normalizeReq(req), this.normalizeRes(res), parsedUrl) | |
return handler(normalizedReq, normalizedRes, parsedUrl) |
Is it possible to avoid this.normalize{Req,Res}
twice?
if (req.headers['x-nextjs-trace']) { | ||
res.setHeader('x-nextjs-trace', '1') | ||
await startProfiler() | ||
patchResponseObject(res) | ||
} else { | ||
// we want to disable profiler incase it was started on server start | ||
await maybeStopProfiler() | ||
} |
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.
Start and stop profiler could be costly.
Even when assuming the profiler itself has 0 overhead, adding an await
means the server has to wait for an extra microtask before serving a response (According to the ES Spec, the engine should always queue a microtask when a promise is being await
-ed, even if that promise has already been resolved).
if (!PROFILER_ENABLED) { | ||
return | ||
} |
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.
Having a branch (if (!PROFILER_ENABLED)
) for every incoming request could be slow (It is a hot path. If the engine is having trouble optimizing this, this would be a performance overhead).
The creator of Bluebird (Bluebird is one of the fastest JavaScript Promise implementations to this day, even comparable to the V8 native) has introduced an approach in his blog post Three JavaScript performance fundamentals that make Bluebird fast called "Use no-op functions and overwrite them lazily to implement costly optional features", here I quote:
Checking if the monitoring feature is enabled before making the call to the hook function would be better than just making the call regardless of if the feature is enabled. However, the cost can actually be completely eliminated for users that have not enabled the feature thanks to inline caches and function inlining. This can be done by making the initial hook method just an empty function.
Now, if the user doesn’t enable the monitoring feature, the optimizer sees that the function call doesn’t do anything and eliminates it. So the call to the hook method inside the constructor effectively doesn’t exist.
To make the feature actually work, the act of enabling the feature must overwrite all the related no-op functions with the actual implementations.
Failing test suitesCommit: ab59d0a
Expand output● Middleware custom matchers basePath › should match query path
Read more about building and testing Next.js in contributing.md. |
Summary
This PR adds a profiling "mode" for the Next.js Node.js server. Ever wished you understood how your app behaved when deploying on various platforms like Vercel/AWS? Hopefully this will help.
The profiling mode for the server means that when you add a special header to your request, Next.js will instead return a CPU profile instead of the regular response, aka the same kind of trace that you get when you use the performance tab in the chrome dev tools. More on that here.
This will allow you to analyse better what goes on in your request, how you can optimise scenarios like cold boots and hot loads.
This is what it looks like:
How to use
When this lands in
canary
, to use this, first you'll need to run your Next server with theNEXTJS_PROFILER_ENABLED
env variable present in your environment. It can be as simple asNEXTJS_PROFILER_ENABLED=1 next start
.Then, you'll want to add a special header,
x-nextjs-trace
, to the request you want to debug. The request will return a json payload. This will be your trace. You probably want to pipe that to a file ending with.cpuprofile
.Example:
You can then open that file in the Chrome Dev Tools in the Performance tab or in VSCode with the right extensions.
Note: you can also control the sampling interval with the
NEXTJS_PROFILER_INTERVAL
env var.Implementation
Behind the scene, this simply uses the
Inspector
api from Node, which basically allow us to use the V8 profiler under the hood.Bug
fixes #number
contributing.md
Feature
fixes #number
contributing.md
Documentation / Examples
pnpm build && pnpm lint