Skip to content
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

edge-ssr: bundle next/dist as ESM for better tree-shaking (#40251) #40980

Merged
merged 1 commit into from Sep 28, 2022

Conversation

feedthejim
Copy link
Contributor

Re-do of #40251

Edge SSR'd routes cold boot performances are proportional to the executed code size.

In order to improve it, we are trying to optimize for the bundle size of a packed Edge SSR route.

This PR adds ESM compilation targets for all Next.js dist packages and use them to bundle Edge SSR'd route.

This allows us to leverage the better tree shaking/DCE for ESM modules in webpack in order to decrease the overall bundle size.

This PR also enables minifying Edge SSR routes. Since we don't control which minifier might be used later (if any), it's best if we provide an already optimised bundle.

image

This is a 10ms cold boot win per my benchmarking script, which I'll put in a subsequent PR.

Not done yet:

  • swap exported requires in next/link (and others) etc to point them to the esm modules version
  • Related issues linked using fixes #number

  • Integration tests added

  • Errors have helpful link attached, see contributing.md

  • Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.

  • Related issues linked using fixes #number

  • Integration tests added

  • Documentation added

  • Telemetry added. In case of a feature if it's used or not.

  • Errors have helpful link attached, see contributing.md

  • Make sure the linting passes by running pnpm lint

  • The examples guidelines are followed from our contributing doc

Co-authored-by: JJ Kasper jj@jjsweb.site
Co-authored-by: Shu Ding g@shud.in

Bug

  • Related issues linked using fixes #number
  • Integration tests added
  • Errors have a helpful link attached, see contributing.md

Feature

  • Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
  • Related issues linked using fixes #number
  • Integration tests added
  • Documentation added
  • Telemetry added. In case of a feature if it's used or not.
  • Errors have a helpful link attached, see contributing.md

Documentation / Examples

  • Make sure the linting passes by running pnpm lint
  • The "examples guidelines" are followed from our contributing doc

Edge SSR'd routes cold boot performances are proportional to the
executed code size.

In order to improve it, we are trying to optimize for the bundle size of
a packed Edge SSR route.

This PR adds ESM compilation targets for all Next.js dist packages and
use them to bundle Edge SSR'd route.

This allows us to leverage the better tree shaking/DCE for ESM modules
in webpack in order to decrease the overall bundle size.

This PR also enables minifying Edge SSR routes. Since we don't control
which minifier might be used later (if any), it's best if we provide an
already optimised bundle.

<img width="903" alt="image"
src="https://user-images.githubusercontent.com/11064311/190005211-b7cb2c58-a56a-44b0-8ee4-fd3f603e41bd.png">

This is a 10ms cold boot win per my benchmarking script, which I'll put
in a subsequent PR.

Not done yet:
- ~~swap exported requires in `next/link` (and others) etc to point them
to the esm modules version~~

<!--
Thanks for opening a PR! Your contribution is much appreciated.
In order to make sure your PR is handled as smoothly as possible we
request that you follow the checklist sections below.
Choose the right checklist for the change that you're making:
-->

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

- [x] Implements an existing feature request or RFC. Make sure the
feature request has been accepted for implementation before opening a
PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

- [ ] Make sure the linting passes by running `pnpm lint`
- [ ] The examples guidelines are followed from [our contributing
doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples)

Co-authored-by: JJ Kasper <jj@jjsweb.site>
Co-authored-by: Shu Ding <g@shud.in>
@ijjk
Copy link
Member

ijjk commented Sep 28, 2022

Stats from current PR

Default Build (Increase detected ⚠️)
General Overall increase ⚠️
vercel/next.js canary feedthejim/next.js next-edge-ssr-esm Change
buildDuration 33.7s 31.6s -2.1s
buildDurationCached 8.5s 8.5s -64ms
nodeModulesSize 82.7 MB 91.8 MB ⚠️ +9.17 MB
nextStartRea..uration (ms) 292ms 273ms -19ms
nextDevReadyDuration 333ms 328ms -5ms
Page Load Tests Overall decrease ⚠️
vercel/next.js canary feedthejim/next.js next-edge-ssr-esm Change
/ failed reqs 0 0
/ total time (seconds) 9.724 9.631 -0.09
/ avg req/sec 257.11 259.59 +2.48
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 6.545 6.615 ⚠️ +0.07
/error-in-render avg req/sec 381.96 377.95 ⚠️ -4.01
Client Bundles (main, webpack) Overall decrease ✓
vercel/next.js canary feedthejim/next.js next-edge-ssr-esm Change
526.HASH.js gzip 180 B 176 B -4 B
app-internal..HASH.js gzip 122 B 122 B
framework-HASH.js gzip 48.7 kB 48.7 kB
main-app-HASH.js gzip 15.6 kB 15.6 kB -2 B
main-HASH.js gzip 31 kB 31 kB -35 B
webpack-HASH.js gzip 1.54 kB 1.54 kB ⚠️ +1 B
Overall change 97.1 kB 97.1 kB -40 B
Legacy Client Bundles (polyfills)
vercel/next.js canary feedthejim/next.js next-edge-ssr-esm Change
polyfills-HASH.js gzip 31 kB 31 kB
Overall change 31 kB 31 kB
Client Pages Overall decrease ✓
vercel/next.js canary feedthejim/next.js next-edge-ssr-esm Change
_app-HASH.js gzip 201 B 200 B -1 B
_error-HASH.js gzip 194 B 195 B ⚠️ +1 B
amp-HASH.js gzip 493 B 494 B ⚠️ +1 B
css-HASH.js gzip 328 B 328 B
dynamic-HASH.js gzip 2.03 kB 2.03 kB
edge-ssr-HASH.js gzip 273 B 271 B -2 B
head-HASH.js gzip 356 B 355 B -1 B
hooks-HASH.js gzip 804 B 800 B -4 B
image-HASH.js gzip 4.89 kB 4.89 kB ⚠️ +2 B
index-HASH.js gzip 262 B 263 B ⚠️ +1 B
link-HASH.js gzip 2.36 kB 2.36 kB -1 B
routerDirect..HASH.js gzip 321 B 322 B ⚠️ +1 B
script-HASH.js gzip 391 B 389 B -2 B
withRouter-HASH.js gzip 318 B 320 B ⚠️ +2 B
85e02e95b279..7e3.css gzip 107 B 107 B
Overall change 13.3 kB 13.3 kB -3 B
Client Build Manifests Overall increase ⚠️
vercel/next.js canary feedthejim/next.js next-edge-ssr-esm Change
_buildManifest.js gzip 482 B 485 B ⚠️ +3 B
Overall change 482 B 485 B ⚠️ +3 B
Rendered Page Sizes Overall decrease ✓
vercel/next.js canary feedthejim/next.js next-edge-ssr-esm Change
index.html gzip 514 B 512 B -2 B
link.html gzip 528 B 525 B -3 B
withRouter.html gzip 508 B 506 B -2 B
Overall change 1.55 kB 1.54 kB -7 B
Edge SSR bundle Size Overall decrease ✓
vercel/next.js canary feedthejim/next.js next-edge-ssr-esm Change
edge-ssr.js gzip 81.9 kB 73 kB -8.85 kB
page.js gzip 92.8 kB 82.7 kB -10 kB
Overall change 175 kB 156 kB -18.9 kB
Middleware size Overall decrease ✓
vercel/next.js canary feedthejim/next.js next-edge-ssr-esm Change
middleware-b..fest.js gzip 589 B 593 B ⚠️ +4 B
middleware-r..fest.js gzip 145 B 143 B -2 B
middleware.js gzip 18.8 kB 18.8 kB ⚠️ +2 B
edge-runtime..pack.js gzip 2.21 kB 1.83 kB -379 B
Overall change 21.7 kB 21.3 kB -375 B

Diffs

Diff for page.js

Diff too large to display

Diff for edge-runtime-webpack.js
@@ -107,51 +107,6 @@
       /******/
     };
     /******/
-  })(); /* webpack/runtime/create fake namespace object */
-  /******/
-
-  /******/ /******/ (() => {
-    /******/ var getProto = Object.getPrototypeOf
-      ? obj => Object.getPrototypeOf(obj)
-      : obj => obj.__proto__;
-    /******/ var leafPrototypes; // create a fake namespace object // mode & 1: value is a module id, require it // mode & 2: merge all properties of value into the ns // mode & 4: return value when already ns object // mode & 16: return value when it's Promise-like // mode & 8|1: behave like require
-    /******/ /******/ /******/ /******/ /******/ /******/ /******/ __webpack_require__.t = function(
-      value,
-      mode
-    ) {
-      /******/ if (mode & 1) value = this(value);
-      /******/ if (mode & 8) return value;
-      /******/ if (typeof value === "object" && value) {
-        /******/ if (mode & 4 && value.__esModule) return value;
-        /******/ if (mode & 16 && typeof value.then === "function")
-          return value;
-        /******/
-      }
-      /******/ var ns = Object.create(null);
-      /******/ __webpack_require__.r(ns);
-      /******/ var def = {};
-      /******/ leafPrototypes = leafPrototypes || [
-        null,
-        getProto({}),
-        getProto([]),
-        getProto(getProto)
-      ];
-      /******/ for (
-        var current = mode & 2 && value;
-        typeof current == "object" && !~leafPrototypes.indexOf(current);
-        current = getProto(current)
-      ) {
-        /******/ Object.getOwnPropertyNames(current).forEach(
-          key => (def[key] = () => value[key])
-        );
-        /******/
-      }
-      /******/ def["default"] = () => value;
-      /******/ __webpack_require__.d(ns, def);
-      /******/ return ns;
-      /******/
-    };
-    /******/
   })(); /* webpack/runtime/define property getters */
   /******/
Diff for middleware-b..-manifest.js
@@ -7,95 +7,95 @@ self.__BUILD_MANIFEST = {
     "static/BUILD_ID/_ssgManifest.js"
   ],
   rootMainFiles: [
-    "static/chunks/webpack-fcb4093c738bb521.js",
+    "static/chunks/webpack-cc0939af409f0a02.js",
     "static/chunks/framework-a7097d2b3993023c.js",
-    "static/chunks/main-app-a12f8178b4f1523f.js"
+    "static/chunks/main-app-d36d214d1724d3ac.js"
   ],
   pages: {
     "/": [
-      "static/chunks/webpack-fcb4093c738bb521.js",
+      "static/chunks/webpack-cc0939af409f0a02.js",
       "static/chunks/framework-a7097d2b3993023c.js",
-      "static/chunks/main-3b9e8019062c2058.js",
-      "static/chunks/pages/index-3599128172c7065d.js"
+      "static/chunks/main-63c55871ccff79ba.js",
+      "static/chunks/pages/index-db0b95bb3aebea20.js"
     ],
     "/_app": [
-      "static/chunks/webpack-fcb4093c738bb521.js",
+      "static/chunks/webpack-cc0939af409f0a02.js",
       "static/chunks/framework-a7097d2b3993023c.js",
-      "static/chunks/main-3b9e8019062c2058.js",
-      "static/chunks/pages/_app-2917be7de825dce4.js"
+      "static/chunks/main-63c55871ccff79ba.js",
+      "static/chunks/pages/_app-baf4854f3c5c3fc8.js"
     ],
     "/_error": [
-      "static/chunks/webpack-fcb4093c738bb521.js",
+      "static/chunks/webpack-cc0939af409f0a02.js",
       "static/chunks/framework-a7097d2b3993023c.js",
-      "static/chunks/main-3b9e8019062c2058.js",
-      "static/chunks/pages/_error-e00448fe65d8a74e.js"
+      "static/chunks/main-63c55871ccff79ba.js",
+      "static/chunks/pages/_error-bf7fb54f6d1f425b.js"
     ],
     "/amp": [
-      "static/chunks/webpack-fcb4093c738bb521.js",
+      "static/chunks/webpack-cc0939af409f0a02.js",
       "static/chunks/framework-a7097d2b3993023c.js",
-      "static/chunks/main-3b9e8019062c2058.js",
-      "static/chunks/pages/amp-11f02462aee33a9e.js"
+      "static/chunks/main-63c55871ccff79ba.js",
+      "static/chunks/pages/amp-66ad3df7d6b5b663.js"
     ],
     "/css": [
-      "static/chunks/webpack-fcb4093c738bb521.js",
+      "static/chunks/webpack-cc0939af409f0a02.js",
       "static/chunks/framework-a7097d2b3993023c.js",
-      "static/chunks/main-3b9e8019062c2058.js",
+      "static/chunks/main-63c55871ccff79ba.js",
       "static/css/94fdbc56eafa2039.css",
-      "static/chunks/pages/css-a409faca2bd611cb.js"
+      "static/chunks/pages/css-167731d21fbb0fa7.js"
     ],
     "/dynamic": [
-      "static/chunks/webpack-fcb4093c738bb521.js",
+      "static/chunks/webpack-cc0939af409f0a02.js",
       "static/chunks/framework-a7097d2b3993023c.js",
-      "static/chunks/main-3b9e8019062c2058.js",
-      "static/chunks/pages/dynamic-9c4d466ddb015702.js"
+      "static/chunks/main-63c55871ccff79ba.js",
+      "static/chunks/pages/dynamic-2e8509f33f3ba1b6.js"
     ],
     "/edge-ssr": [
-      "static/chunks/webpack-fcb4093c738bb521.js",
+      "static/chunks/webpack-cc0939af409f0a02.js",
       "static/chunks/framework-a7097d2b3993023c.js",
-      "static/chunks/main-3b9e8019062c2058.js",
-      "static/chunks/pages/edge-ssr-75a68070c33bbc5e.js"
+      "static/chunks/main-63c55871ccff79ba.js",
+      "static/chunks/pages/edge-ssr-6ec76e3da302866c.js"
     ],
     "/head": [
-      "static/chunks/webpack-fcb4093c738bb521.js",
+      "static/chunks/webpack-cc0939af409f0a02.js",
       "static/chunks/framework-a7097d2b3993023c.js",
-      "static/chunks/main-3b9e8019062c2058.js",
-      "static/chunks/pages/head-d378ca124110ae57.js"
+      "static/chunks/main-63c55871ccff79ba.js",
+      "static/chunks/pages/head-795ab8496bc83f0f.js"
     ],
     "/hooks": [
-      "static/chunks/webpack-fcb4093c738bb521.js",
+      "static/chunks/webpack-cc0939af409f0a02.js",
       "static/chunks/framework-a7097d2b3993023c.js",
-      "static/chunks/main-3b9e8019062c2058.js",
-      "static/chunks/pages/hooks-f98b2b0a174a9b21.js"
+      "static/chunks/main-63c55871ccff79ba.js",
+      "static/chunks/pages/hooks-cda21f5db0b0a3ba.js"
     ],
     "/image": [
-      "static/chunks/webpack-fcb4093c738bb521.js",
+      "static/chunks/webpack-cc0939af409f0a02.js",
       "static/chunks/framework-a7097d2b3993023c.js",
-      "static/chunks/main-3b9e8019062c2058.js",
-      "static/chunks/pages/image-41fcf1585541657f.js"
+      "static/chunks/main-63c55871ccff79ba.js",
+      "static/chunks/pages/image-a37f4f477985d3bb.js"
     ],
     "/link": [
-      "static/chunks/webpack-fcb4093c738bb521.js",
+      "static/chunks/webpack-cc0939af409f0a02.js",
       "static/chunks/framework-a7097d2b3993023c.js",
-      "static/chunks/main-3b9e8019062c2058.js",
-      "static/chunks/pages/link-d0227f2ab574a4d5.js"
+      "static/chunks/main-63c55871ccff79ba.js",
+      "static/chunks/pages/link-d9a4fa0de44fb34c.js"
     ],
     "/routerDirect": [
-      "static/chunks/webpack-fcb4093c738bb521.js",
+      "static/chunks/webpack-cc0939af409f0a02.js",
       "static/chunks/framework-a7097d2b3993023c.js",
-      "static/chunks/main-3b9e8019062c2058.js",
-      "static/chunks/pages/routerDirect-cad33725752f6ff2.js"
+      "static/chunks/main-63c55871ccff79ba.js",
+      "static/chunks/pages/routerDirect-0d8bc30e1db5be8d.js"
     ],
     "/script": [
-      "static/chunks/webpack-fcb4093c738bb521.js",
+      "static/chunks/webpack-cc0939af409f0a02.js",
       "static/chunks/framework-a7097d2b3993023c.js",
-      "static/chunks/main-3b9e8019062c2058.js",
-      "static/chunks/pages/script-01b7414585de70dc.js"
+      "static/chunks/main-63c55871ccff79ba.js",
+      "static/chunks/pages/script-f6211835b1f5b34e.js"
     ],
     "/withRouter": [
-      "static/chunks/webpack-fcb4093c738bb521.js",
+      "static/chunks/webpack-cc0939af409f0a02.js",
       "static/chunks/framework-a7097d2b3993023c.js",
-      "static/chunks/main-3b9e8019062c2058.js",
-      "static/chunks/pages/withRouter-d6490568640369bc.js"
+      "static/chunks/main-63c55871ccff79ba.js",
+      "static/chunks/pages/withRouter-9e9bfae4007c3983.js"
     ]
   },
   ampFirstPages: []
Diff for middleware-r..-manifest.js
@@ -1,6 +1,6 @@
 self.__REACT_LOADABLE_MANIFEST = {
   "dynamic.js -> ../components/hello": {
-    id: 1526,
-    files: ["static/chunks/526.a846da08473aaea5.js"]
+    id: 86,
+    files: ["static/chunks/86.c1edae6f558f1c29.js"]
   }
 };
Diff for middleware.js
@@ -1,7 +1,7 @@
 (self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
   [826],
   {
-    /***/ "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/build/webpack/loaders/next-middleware-loader.js?absolutePagePath=private-next-root-dir%2Fmiddleware.js&page=%2Fmiddleware&rootDir=%2Ftmp%2Fnext-stats%2Fstats-app&matchers=!": /***/ (
+    /***/ "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/build/webpack/loaders/next-middleware-loader.js?absolutePagePath=private-next-root-dir%2Fmiddleware.js&page=%2Fmiddleware&rootDir=%2Ftmp%2Fnext-stats%2Fstats-app&matchers=!": /***/ (
       __unused_webpack_module,
       __webpack_exports__,
       __webpack_require__
@@ -14,7 +14,7 @@
         /* harmony export */
       });
       /* harmony import */ var next_dist_server_web_adapter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
-        "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/adapter.js"
+        "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/adapter.js"
       );
 
       (0,
@@ -58,7 +58,7 @@
         /* harmony export */
       });
       /* harmony import */ var next_server__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
-        "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/server.js"
+        "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/server.js"
       );
       /* harmony import */ var next_server__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(
         next_server__WEBPACK_IMPORTED_MODULE_0__
@@ -71,7 +71,7 @@
       /***/
     },
 
-    /***/ "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/get-hostname.js": /***/ (
+    /***/ "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/get-hostname.js": /***/ (
       __unused_webpack_module,
       exports
     ) => {
@@ -94,7 +94,7 @@
       /***/
     },
 
-    /***/ "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js": /***/ (
+    /***/ "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js": /***/ (
       __unused_webpack_module,
       exports
     ) => {
@@ -135,7 +135,7 @@
       /***/
     },
 
-    /***/ "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js": /***/ (
+    /***/ "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js": /***/ (
       __unused_webpack_module,
       exports
     ) => {
@@ -170,7 +170,7 @@
       /***/
     },
 
-    /***/ "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/add-locale.js": /***/ (
+    /***/ "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/add-locale.js": /***/ (
       __unused_webpack_module,
       exports,
       __webpack_require__
@@ -182,10 +182,10 @@
       });
       exports.addLocale = addLocale;
       var _addPathPrefix = __webpack_require__(
-        "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js"
+        "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js"
       );
       var _pathHasPrefix = __webpack_require__(
-        "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js"
+        "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js"
       );
       function addLocale(path, locale, defaultLocale, ignorePrefix) {
         if (
@@ -206,7 +206,7 @@
       /***/
     },
 
-    /***/ "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js": /***/ (
+    /***/ "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js": /***/ (
       __unused_webpack_module,
       exports,
       __webpack_require__
@@ -218,7 +218,7 @@
       });
       exports.addPathPrefix = addPathPrefix;
       var _parsePath = __webpack_require__(
-        "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/parse-path.js"
+        "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/parse-path.js"
       );
       function addPathPrefix(path, prefix) {
         if (!path.startsWith("/") || !prefix) {
@@ -231,7 +231,7 @@
       /***/
     },
 
-    /***/ "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js": /***/ (
+    /***/ "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js": /***/ (
       __unused_webpack_module,
       exports,
       __webpack_require__
@@ -243,7 +243,7 @@
       });
       exports.addPathSuffix = addPathSuffix;
       var _parsePath = __webpack_require__(
-        "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/parse-path.js"
+        "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/parse-path.js"
       );
       function addPathSuffix(path, suffix) {
         if (!path.startsWith("/") || !suffix) {
@@ -256,7 +256,7 @@
       /***/
     },
 
-    /***/ "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js": /***/ (
+    /***/ "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js": /***/ (
       __unused_webpack_module,
       exports,
       __webpack_require__
@@ -268,16 +268,16 @@
       });
       exports.formatNextPathnameInfo = formatNextPathnameInfo;
       var _removeTrailingSlash = __webpack_require__(
-        "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js"
+        "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js"
       );
       var _addPathPrefix = __webpack_require__(
-        "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js"
+        "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js"
       );
       var _addPathSuffix = __webpack_require__(
-        "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js"
+        "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js"
       );
       var _addLocale = __webpack_require__(
-        "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/add-locale.js"
+        "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/add-locale.js"
       );
       function formatNextPathnameInfo(info) {
         let pathname = (0, _addLocale).addLocale(
@@ -306,7 +306,7 @@
       /***/
     },
 
-    /***/ "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js": /***/ (
+    /***/ "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js": /***/ (
       __unused_webpack_module,
       exports,
       __webpack_require__
@@ -318,13 +318,13 @@
       });
       exports.getNextPathnameInfo = getNextPathnameInfo;
       var _normalizeLocalePath = __webpack_require__(
-        "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js"
+        "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js"
       );
       var _removePathPrefix = __webpack_require__(
-        "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js"
+        "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js"
       );
       var _pathHasPrefix = __webpack_require__(
-        "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js"
+        "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js"
       );
       function getNextPathnameInfo(pathname, options) {
         var _nextConfig;
@@ -375,7 +375,7 @@
       /***/
     },
 
-    /***/ "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/parse-path.js": /***/ (
+    /***/ "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/parse-path.js": /***/ (
       __unused_webpack_module,
       exports
     ) => {
@@ -412,7 +412,7 @@
       /***/
     },
 
-    /***/ "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js": /***/ (
+    /***/ "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js": /***/ (
       __unused_webpack_module,
       exports,
       __webpack_require__
@@ -424,7 +424,7 @@
       });
       exports.pathHasPrefix = pathHasPrefix;
       var _parsePath = __webpack_require__(
-        "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/parse-path.js"
+        "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/parse-path.js"
       );
       function pathHasPrefix(path, prefix) {
         if (typeof path !== "string") {
@@ -437,7 +437,7 @@
       /***/
     },
 
-    /***/ "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/relativize-url.js": /***/ (
+    /***/ "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/relativize-url.js": /***/ (
       __unused_webpack_module,
       exports
     ) => {
@@ -459,7 +459,7 @@
       /***/
     },
 
-    /***/ "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js": /***/ (
+    /***/ "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js": /***/ (
       __unused_webpack_module,
       exports,
       __webpack_require__
@@ -471,7 +471,7 @@
       });
       exports.removePathPrefix = removePathPrefix;
       var _pathHasPrefix = __webpack_require__(
-        "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js"
+        "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js"
       );
       function removePathPrefix(path, prefix) {
         if ((0, _pathHasPrefix).pathHasPrefix(path, prefix)) {
@@ -486,7 +486,7 @@
       /***/
     },
 
-    /***/ "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js": /***/ (
+    /***/ "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js": /***/ (
       __unused_webpack_module,
       exports
     ) => {
@@ -503,7 +503,7 @@
       /***/
     },
 
-    /***/ "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/compiled/cookie/index.js": /***/ module => {
+    /***/ "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/compiled/cookie/index.js": /***/ module => {
       var __dirname = "/";
       (() => {
         "use strict";
@@ -631,7 +631,7 @@
       /***/
     },
 
-    /***/ "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/compiled/ua-parser-js/ua-parser.js": /***/ (
+    /***/ "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/compiled/ua-parser-js/ua-parser.js": /***/ (
       module,
       exports,
       __webpack_require__
@@ -1477,7 +1477,7 @@
       /***/
     },
 
-    /***/ "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/internal-utils.js": /***/ (
+    /***/ "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/internal-utils.js": /***/ (
       __unused_webpack_module,
       exports
     ) => {
@@ -1522,7 +1522,7 @@
       /***/
     },
 
-    /***/ "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/adapter.js": /***/ (
+    /***/ "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/adapter.js": /***/ (
       __unused_webpack_module,
       exports,
       __webpack_require__
@@ -1537,28 +1537,28 @@
       exports.OT = blockUnallowedResponse;
       exports.gL = enhanceGlobals;
       var _error = __webpack_require__(
-        "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/error.js"
+        "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/error.js"
       );
       var _utils = __webpack_require__(
-        "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/utils.js"
+        "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/utils.js"
       );
       var _fetchEvent = __webpack_require__(
-        "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/spec-extension/fetch-event.js"
+        "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/spec-extension/fetch-event.js"
       );
       var _request = __webpack_require__(
-        "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/spec-extension/request.js"
+        "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/spec-extension/request.js"
       );
       var _response = __webpack_require__(
-        "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/spec-extension/response.js"
+        "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/spec-extension/response.js"
       );
       var _relativizeUrl = __webpack_require__(
-        "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/relativize-url.js"
+        "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/relativize-url.js"
       );
       var _nextUrl = __webpack_require__(
-        "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/next-url.js"
+        "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/next-url.js"
       );
       var _internalUtils = __webpack_require__(
-        "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/internal-utils.js"
+        "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/internal-utils.js"
       );
       class NextRequestHint extends _request.NextRequest {
         constructor(params) {
@@ -1785,7 +1785,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
       /***/
     },
 
-    /***/ "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/error.js": /***/ (
+    /***/ "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/error.js": /***/ (
       __unused_webpack_module,
       exports
     ) => {
@@ -1829,7 +1829,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
       /***/
     },
 
-    /***/ "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/next-url.js": /***/ (
+    /***/ "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/next-url.js": /***/ (
       __unused_webpack_module,
       exports,
       __webpack_require__
@@ -1840,16 +1840,16 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
         value: true
       });
       var _detectDomainLocale = __webpack_require__(
-        "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js"
+        "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js"
       );
       var _formatNextPathnameInfo = __webpack_require__(
-        "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js"
+        "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js"
       );
       var _getHostname = __webpack_require__(
-        "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/get-hostname.js"
+        "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/get-hostname.js"
       );
       var _getNextPathnameInfo = __webpack_require__(
-        "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js"
+        "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js"
       );
       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) {
@@ -2075,7 +2075,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
       /***/
     },
 
-    /***/ "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/spec-extension/cookies.js": /***/ (
+    /***/ "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/spec-extension/cookies.js": /***/ (
       __unused_webpack_module,
       exports,
       __webpack_require__
@@ -2087,7 +2087,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
       });
       var _cookie = _interopRequireDefault(
         __webpack_require__(
-          "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/compiled/cookie/index.js"
+          "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/compiled/cookie/index.js"
         )
       );
       function _interopRequireDefault(obj) {
@@ -2224,7 +2224,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
       /***/
     },
 
-    /***/ "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/spec-extension/fetch-event.js": /***/ (
+    /***/ "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/spec-extension/fetch-event.js": /***/ (
       __unused_webpack_module,
       exports,
       __webpack_require__
@@ -2236,7 +2236,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
       });
       exports.waitUntilSymbol = void 0;
       var _error = __webpack_require__(
-        "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/error.js"
+        "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/error.js"
       );
       const responseSymbol = Symbol("response");
       const passThroughSymbol = Symbol("passThrough");
@@ -2290,7 +2290,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
       /***/
     },
 
-    /***/ "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/spec-extension/request.js": /***/ (
+    /***/ "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/spec-extension/request.js": /***/ (
       __unused_webpack_module,
       exports,
       __webpack_require__
@@ -2302,16 +2302,16 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
       });
       exports.INTERNALS = void 0;
       var _nextUrl = __webpack_require__(
-        "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/next-url.js"
+        "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/next-url.js"
       );
       var _utils = __webpack_require__(
-        "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/utils.js"
+        "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/utils.js"
       );
       var _error = __webpack_require__(
-        "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/error.js"
+        "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/error.js"
       );
       var _cookies = __webpack_require__(
-        "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/spec-extension/cookies.js"
+        "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/spec-extension/cookies.js"
       );
       const INTERNALS = Symbol("internal request");
       exports.INTERNALS = INTERNALS;
@@ -2393,7 +2393,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
       /***/
     },
 
-    /***/ "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/spec-extension/response.js": /***/ (
+    /***/ "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/spec-extension/response.js": /***/ (
       __unused_webpack_module,
       exports,
       __webpack_require__
@@ -2404,13 +2404,13 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
         value: true
       });
       var _nextUrl = __webpack_require__(
-        "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/next-url.js"
+        "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/next-url.js"
       );
       var _utils = __webpack_require__(
-        "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/utils.js"
+        "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/utils.js"
       );
       var _cookies = __webpack_require__(
-        "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/spec-extension/cookies.js"
+        "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/spec-extension/cookies.js"
       );
       const INTERNALS = Symbol("internal response");
       const REDIRECTS = new Set([301, 302, 303, 307, 308]);
@@ -2501,7 +2501,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
       /***/
     },
 
-    /***/ "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/spec-extension/user-agent.js": /***/ (
+    /***/ "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/spec-extension/user-agent.js": /***/ (
       __unused_webpack_module,
       exports,
       __webpack_require__
@@ -2517,7 +2517,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
       exports.WE = userAgent;
       var _uaParserJs = _interopRequireDefault(
         __webpack_require__(
-          "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/compiled/ua-parser-js/ua-parser.js"
+          "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/compiled/ua-parser-js/ua-parser.js"
         )
       );
       function _interopRequireDefault(obj) {
@@ -2547,7 +2547,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
       /***/
     },
 
-    /***/ "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/utils.js": /***/ (
+    /***/ "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/utils.js": /***/ (
       __unused_webpack_module,
       exports
     ) => {
@@ -2665,23 +2665,23 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
       /***/
     },
 
-    /***/ "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/server.js": /***/ (
+    /***/ "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/server.js": /***/ (
       module,
       exports,
       __webpack_require__
     ) => {
       const serverExports = {
         NextRequest: __webpack_require__(
-          "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/spec-extension/request.js"
+          "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/spec-extension/request.js"
         ).NextRequest,
         NextResponse: __webpack_require__(
-          "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/spec-extension/response.js"
+          "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/spec-extension/response.js"
         ).NextResponse,
         userAgentFromString: __webpack_require__(
-          "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/spec-extension/user-agent.js"
+          "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/spec-extension/user-agent.js"
         ) /* .userAgentFromString */.Nf,
         userAgent: __webpack_require__(
-          "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/spec-extension/user-agent.js"
+          "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/server/web/spec-extension/user-agent.js"
         ) /* .userAgent */.WE
       };
 
@@ -2709,7 +2709,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
     /******/ var __webpack_exec__ = moduleId =>
       __webpack_require__((__webpack_require__.s = moduleId));
     /******/ var __webpack_exports__ = __webpack_exec__(
-      "(middleware)/./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/build/webpack/loaders/next-middleware-loader.js?absolutePagePath=private-next-root-dir%2Fmiddleware.js&page=%2Fmiddleware&rootDir=%2Ftmp%2Fnext-stats%2Fstats-app&matchers=!"
+      "(middleware)/./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_7fyncfpa5gpyyymjgk4qob7sbm/node_modules/next/dist/build/webpack/loaders/next-middleware-loader.js?absolutePagePath=private-next-root-dir%2Fmiddleware.js&page=%2Fmiddleware&rootDir=%2Ftmp%2Fnext-stats%2Fstats-app&matchers=!"
     );
     /******/ (_ENTRIES =
       typeof _ENTRIES === "undefined"
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-3599128172c7065d.js"],
-  "/_error": ["static\u002Fchunks\u002Fpages\u002F_error-e00448fe65d8a74e.js"],
-  "/amp": ["static\u002Fchunks\u002Fpages\u002Famp-11f02462aee33a9e.js"],
+  "/": ["static\u002Fchunks\u002Fpages\u002Findex-db0b95bb3aebea20.js"],
+  "/_error": ["static\u002Fchunks\u002Fpages\u002F_error-bf7fb54f6d1f425b.js"],
+  "/amp": ["static\u002Fchunks\u002Fpages\u002Famp-66ad3df7d6b5b663.js"],
   "/css": [
     "static\u002Fcss\u002F94fdbc56eafa2039.css",
-    "static\u002Fchunks\u002Fpages\u002Fcss-a409faca2bd611cb.js"
+    "static\u002Fchunks\u002Fpages\u002Fcss-167731d21fbb0fa7.js"
   ],
   "/dynamic": [
-    "static\u002Fchunks\u002Fpages\u002Fdynamic-9c4d466ddb015702.js"
+    "static\u002Fchunks\u002Fpages\u002Fdynamic-2e8509f33f3ba1b6.js"
   ],
   "/edge-ssr": [
-    "static\u002Fchunks\u002Fpages\u002Fedge-ssr-75a68070c33bbc5e.js"
+    "static\u002Fchunks\u002Fpages\u002Fedge-ssr-6ec76e3da302866c.js"
   ],
-  "/head": ["static\u002Fchunks\u002Fpages\u002Fhead-d378ca124110ae57.js"],
-  "/hooks": ["static\u002Fchunks\u002Fpages\u002Fhooks-f98b2b0a174a9b21.js"],
-  "/image": ["static\u002Fchunks\u002Fpages\u002Fimage-41fcf1585541657f.js"],
-  "/link": ["static\u002Fchunks\u002Fpages\u002Flink-d0227f2ab574a4d5.js"],
+  "/head": ["static\u002Fchunks\u002Fpages\u002Fhead-795ab8496bc83f0f.js"],
+  "/hooks": ["static\u002Fchunks\u002Fpages\u002Fhooks-cda21f5db0b0a3ba.js"],
+  "/image": ["static\u002Fchunks\u002Fpages\u002Fimage-a37f4f477985d3bb.js"],
+  "/link": ["static\u002Fchunks\u002Fpages\u002Flink-d9a4fa0de44fb34c.js"],
   "/routerDirect": [
-    "static\u002Fchunks\u002Fpages\u002FrouterDirect-cad33725752f6ff2.js"
+    "static\u002Fchunks\u002Fpages\u002FrouterDirect-0d8bc30e1db5be8d.js"
   ],
-  "/script": ["static\u002Fchunks\u002Fpages\u002Fscript-01b7414585de70dc.js"],
+  "/script": ["static\u002Fchunks\u002Fpages\u002Fscript-f6211835b1f5b34e.js"],
   "/withRouter": [
-    "static\u002Fchunks\u002Fpages\u002FwithRouter-d6490568640369bc.js"
+    "static\u002Fchunks\u002Fpages\u002FwithRouter-9e9bfae4007c3983.js"
   ],
   sortedPages: [
     "\u002F",
Diff for _app-HASH.js
@@ -1,7 +1,7 @@
 (self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
   [888],
   {
-    /***/ 940: /***/ function(
+    /***/ 1906: /***/ 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__(9991);
+          return __webpack_require__(1667);
         }
       ]);
       if (false) {
@@ -24,7 +24,7 @@
       return __webpack_require__((__webpack_require__.s = moduleId));
     };
     /******/ __webpack_require__.O(0, [774, 179], function() {
-      return __webpack_exec__(940), __webpack_exec__(635);
+      return __webpack_exec__(1906), __webpack_exec__(7767);
     });
     /******/ 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],
   {
-    /***/ 9489: /***/ function(
+    /***/ 3915: /***/ 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__(164);
+          return __webpack_require__(3529);
         }
       ]);
       if (false) {
@@ -24,7 +24,7 @@
       return __webpack_require__((__webpack_require__.s = moduleId));
     };
     /******/ __webpack_require__.O(0, [888, 774, 179], function() {
-      return __webpack_exec__(9489);
+      return __webpack_exec__(3915);
     });
     /******/ 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],
   {
-    /***/ 1243: /***/ function(
+    /***/ 9968: /***/ function(
       module,
       __unused_webpack_exports,
       __webpack_require__
     ) {
-      module.exports = __webpack_require__(9849);
+      module.exports = false ? 0 : __webpack_require__(5904);
 
       /***/
     },
 
-    /***/ 2758: /***/ function(
+    /***/ 6382: /***/ 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__(1246);
+          return __webpack_require__(9417);
         }
       ]);
       if (false) {
@@ -28,7 +28,7 @@
       /***/
     },
 
-    /***/ 9849: /***/ function(module, exports, __webpack_require__) {
+    /***/ 5904: /***/ function(module, exports, __webpack_require__) {
       "use strict";
 
       Object.defineProperty(exports, "__esModule", {
@@ -38,8 +38,8 @@
       var _interop_require_default = __webpack_require__(7022) /* ["default"] */
         .Z;
       var _react = _interop_require_default(__webpack_require__(6508));
-      var _ampContext = __webpack_require__(9179);
-      var _ampMode = __webpack_require__(3740);
+      var _ampContext = __webpack_require__(2618);
+      var _ampMode = __webpack_require__(4941);
       function useAmp() {
         // Don't assign the context value to a variable to save bytes
         return (0, _ampMode).isInAmpMode(
@@ -61,7 +61,7 @@
       /***/
     },
 
-    /***/ 1246: /***/ function(
+    /***/ 9417: /***/ function(
       __unused_webpack_module,
       __webpack_exports__,
       __webpack_require__
@@ -78,7 +78,7 @@
         /* harmony export */
       });
       /* harmony import */ var next_amp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
-        1243
+        9968
       );
       /* harmony import */ var next_amp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(
         next_amp__WEBPACK_IMPORTED_MODULE_0__
@@ -102,7 +102,7 @@
       return __webpack_require__((__webpack_require__.s = moduleId));
     };
     /******/ __webpack_require__.O(0, [888, 774, 179], function() {
-      return __webpack_exec__(2758);
+      return __webpack_exec__(6382);
     });
     /******/ 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],
   {
-    /***/ 9851: /***/ function(
+    /***/ 9997: /***/ 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__(58);
+          return __webpack_require__(2108);
         }
       ]);
       if (false) {
@@ -18,7 +18,7 @@
       /***/
     },
 
-    /***/ 58: /***/ function(
+    /***/ 2108: /***/ function(
       __unused_webpack_module,
       __webpack_exports__,
       __webpack_require__
@@ -29,7 +29,7 @@
         9693
       );
       /* harmony import */ var _css_module_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
-        6870
+        6006
       );
       /* 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 @@
       /***/
     },
 
-    /***/ 6870: /***/ function(module) {
+    /***/ 6006: /***/ 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__(9851);
+      return __webpack_exec__(9997);
     });
     /******/ 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],
   {
-    /***/ 1330: /***/ function(
+    /***/ 4757: /***/ 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__(1053);
+          return __webpack_require__(8062);
         }
       ]);
       if (false) {
@@ -18,7 +18,7 @@
       /***/
     },
 
-    /***/ 3108: /***/ function(module, exports, __webpack_require__) {
+    /***/ 9499: /***/ function(module, exports, __webpack_require__) {
       "use strict";
 
       Object.defineProperty(exports, "__esModule", {
@@ -34,7 +34,7 @@
       var _interop_require_default = __webpack_require__(7022) /* ["default"] */
         .Z;
       var _react = _interop_require_default(__webpack_require__(6508));
-      var _loadable = _interop_require_default(__webpack_require__(2386));
+      var _loadable = _interop_require_default(__webpack_require__(8411));
       function dynamic(dynamicOptions, options) {
         var loadableFn = _loadable.default;
         var loadableOptions = (options == null
@@ -138,7 +138,7 @@
       /***/
     },
 
-    /***/ 3992: /***/ function(
+    /***/ 4100: /***/ function(
       __unused_webpack_module,
       exports,
       __webpack_require__
@@ -160,7 +160,7 @@
       /***/
     },
 
-    /***/ 2386: /***/ function(
+    /***/ 8411: /***/ function(
       __unused_webpack_module,
       exports,
       __webpack_require__
@@ -180,7 +180,7 @@
       var _interop_require_default = __webpack_require__(7022) /* ["default"] */
         .Z;
       var _react = _interop_require_default(__webpack_require__(6508));
-      var _loadableContext = __webpack_require__(3992);
+      var _loadableContext = __webpack_require__(4100);
       var useSyncExternalStore = (true ? __webpack_require__(6508) : 0)
         .useSyncExternalStore;
       var ALL_INITIALIZERS = [];
@@ -494,7 +494,7 @@
       /***/
     },
 
-    /***/ 1053: /***/ function(
+    /***/ 8062: /***/ function(
       __unused_webpack_module,
       __webpack_exports__,
       __webpack_require__
@@ -511,7 +511,7 @@
         9693
       );
       /* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
-        5797
+        5071
       );
       /* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(
         next_dynamic__WEBPACK_IMPORTED_MODULE_1__
@@ -520,13 +520,13 @@
       var DynamicHello = next_dynamic__WEBPACK_IMPORTED_MODULE_1___default()(
         function() {
           return __webpack_require__
-            .e(/* import() */ 526)
-            .then(__webpack_require__.bind(__webpack_require__, 1526));
+            .e(/* import() */ 86)
+            .then(__webpack_require__.bind(__webpack_require__, 86));
         },
         {
           loadableGenerated: {
             webpack: function() {
-              return [/*require.resolve*/ 1526];
+              return [/*require.resolve*/ 86];
             }
           }
         }
@@ -556,12 +556,12 @@
       /***/
     },
 
-    /***/ 5797: /***/ function(
+    /***/ 5071: /***/ function(
       module,
       __unused_webpack_exports,
       __webpack_require__
     ) {
-      module.exports = __webpack_require__(3108);
+      module.exports = false ? 0 : __webpack_require__(9499);
 
       /***/
     }
@@ -572,7 +572,7 @@
       return __webpack_require__((__webpack_require__.s = moduleId));
     };
     /******/ __webpack_require__.O(0, [774, 888, 179], function() {
-      return __webpack_exec__(1330);
+      return __webpack_exec__(4757);
     });
     /******/ 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],
   {
-    /***/ 4091: /***/ function(
+    /***/ 237: /***/ 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__(6236);
+          return __webpack_require__(817);
         }
       ]);
       if (false) {
@@ -18,7 +18,7 @@
       /***/
     },
 
-    /***/ 6236: /***/ function(
+    /***/ 817: /***/ function(
       __unused_webpack_module,
       __webpack_exports__,
       __webpack_require__
@@ -50,7 +50,7 @@
       return __webpack_require__((__webpack_require__.s = moduleId));
     };
     /******/ __webpack_require__.O(0, [888, 774, 179], function() {
-      return __webpack_exec__(4091);
+      return __webpack_exec__(237);
     });
     /******/ 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],
   {
-    /***/ 9011: /***/ function(
+    /***/ 8511: /***/ 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__(6914);
+          return __webpack_require__(997);
         }
       ]);
       if (false) {
@@ -18,7 +18,7 @@
       /***/
     },
 
-    /***/ 6914: /***/ function(
+    /***/ 997: /***/ function(
       __unused_webpack_module,
       __webpack_exports__,
       __webpack_require__
@@ -35,7 +35,7 @@
         9693
       );
       /* harmony import */ var next_head__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
-        7423
+        6235
       );
       /* harmony import */ var next_head__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(
         next_head__WEBPACK_IMPORTED_MODULE_1__
@@ -71,12 +71,12 @@
       /***/
     },
 
-    /***/ 7423: /***/ function(
+    /***/ 6235: /***/ function(
       module,
       __unused_webpack_exports,
       __webpack_require__
     ) {
-      module.exports = __webpack_require__(364);
+      module.exports = false ? 0 : __webpack_require__(4022);
 
       /***/
     }
@@ -87,7 +87,7 @@
       return __webpack_require__((__webpack_require__.s = moduleId));
     };
     /******/ __webpack_require__.O(0, [774, 888, 179], function() {
-      return __webpack_exec__(9011);
+      return __webpack_exec__(8511);
     });
     /******/ 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],
   {
-    /***/ 8122: /***/ function(
+    /***/ 9070: /***/ 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__(9792);
+          return __webpack_require__(934);
         }
       ]);
       if (false) {
@@ -18,7 +18,7 @@
       /***/
     },
 
-    /***/ 9792: /***/ function(
+    /***/ 934: /***/ function(
       __unused_webpack_module,
       __webpack_exports__,
       __webpack_require__
@@ -132,7 +132,7 @@
       return __webpack_require__((__webpack_require__.s = moduleId));
     };
     /******/ __webpack_require__.O(0, [774, 888, 179], function() {
-      return __webpack_exec__(8122);
+      return __webpack_exec__(9070);
     });
     /******/ var __webpack_exports__ = __webpack_require__.O();
     /******/ _N_E = __webpack_exports__;
Diff for image-HASH.js
@@ -26,7 +26,7 @@
       /***/
 
Post job cleanup.
[command]/usr/bin/git version
git version 2.37.3
Temporarily overriding HOME='/home/runner/work/_temp/0f179ebf-eb13-4dd2-8790-2b2de7d7069f' 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 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 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: b0c59e271e762ac3726236992f4ab9a48ef49f87

@feedthejim feedthejim merged commit 8ff22ca into vercel:canary Sep 28, 2022
@feedthejim feedthejim deleted the next-edge-ssr-esm branch September 29, 2022 08:57
BowlingX pushed a commit to BowlingX/next.js that referenced this pull request Oct 5, 2022
…) (vercel#40980)

Re-do of vercel#40251

Edge SSR'd routes cold boot performances are proportional to the
executed code size.

In order to improve it, we are trying to optimize for the bundle size of
a packed Edge SSR route.

This PR adds ESM compilation targets for all Next.js dist packages and
use them to bundle Edge SSR'd route.

This allows us to leverage the better tree shaking/DCE for ESM modules
in webpack in order to decrease the overall bundle size.

This PR also enables minifying Edge SSR routes. Since we don't control
which minifier might be used later (if any), it's best if we provide an
already optimised bundle.

<img width="903" alt="image"

src="https://user-images.githubusercontent.com/11064311/190005211-b7cb2c58-a56a-44b0-8ee4-fd3f603e41bd.png">

This is a 10ms cold boot win per my benchmarking script, which I'll put
in a subsequent PR.

Not done yet:
- ~~swap exported requires in `next/link` (and others) etc to point them
to the esm modules version~~

<!--
Thanks for opening a PR! Your contribution is much appreciated. In order
to make sure your PR is handled as smoothly as possible we request that
you follow the checklist sections below. Choose the right checklist for
the change that you're making: -->

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

- [x] Implements an existing feature request or RFC. Make sure the
feature request has been accepted for implementation before opening a
PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

- [ ] Make sure the linting passes by running `pnpm lint`
- [ ] The examples guidelines are followed from [our contributing
doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples)

Co-authored-by: JJ Kasper <jj@jjsweb.site>
Co-authored-by: Shu Ding <g@shud.in>

<!--
Thanks for opening a PR! Your contribution is much appreciated.
To make sure your PR is handled as smoothly as possible we request that
you follow the checklist sections below.
Choose the right checklist for the change that you're making:
-->

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have a helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the
feature request has been accepted for implementation before opening a
PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have a helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `pnpm lint`
- [ ] The "examples guidelines" are followed from [our contributing
doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)

Co-authored-by: JJ Kasper <jj@jjsweb.site>
Co-authored-by: Shu Ding <g@shud.in>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants