Skip to content

Commit

Permalink
v10.0.8-canary.15
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer committed Mar 3, 2021
1 parent 61dae38 commit 2046648
Show file tree
Hide file tree
Showing 15 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
"registry": "https://registry.npmjs.org/"
}
},
"version": "10.0.8-canary.14"
"version": "10.0.8-canary.15"
}
2 changes: 1 addition & 1 deletion packages/create-next-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-next-app",
"version": "10.0.8-canary.14",
"version": "10.0.8-canary.15",
"keywords": [
"react",
"next",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/eslint-plugin-next",
"version": "10.0.8-canary.14",
"version": "10.0.8-canary.15",
"description": "ESLint plugin for NextJS.",
"main": "lib/index.js",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/next-bundle-analyzer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/bundle-analyzer",
"version": "10.0.8-canary.14",
"version": "10.0.8-canary.15",
"main": "index.js",
"license": "MIT",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/next-codemod/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/codemod",
"version": "10.0.8-canary.14",
"version": "10.0.8-canary.15",
"license": "MIT",
"dependencies": {
"chalk": "4.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/next-env/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/env",
"version": "10.0.8-canary.14",
"version": "10.0.8-canary.15",
"keywords": [
"react",
"next",
Expand Down
2 changes: 1 addition & 1 deletion packages/next-mdx/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/mdx",
"version": "10.0.8-canary.14",
"version": "10.0.8-canary.15",
"main": "index.js",
"license": "MIT",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/next-plugin-google-analytics/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/plugin-google-analytics",
"version": "10.0.8-canary.14",
"version": "10.0.8-canary.15",
"repository": {
"url": "vercel/next.js",
"directory": "packages/next-plugin-google-analytics"
Expand Down
2 changes: 1 addition & 1 deletion packages/next-plugin-sentry/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/plugin-sentry",
"version": "10.0.8-canary.14",
"version": "10.0.8-canary.15",
"repository": {
"url": "vercel/next.js",
"directory": "packages/next-plugin-sentry"
Expand Down
2 changes: 1 addition & 1 deletion packages/next-plugin-storybook/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/plugin-storybook",
"version": "10.0.8-canary.14",
"version": "10.0.8-canary.15",
"repository": {
"url": "vercel/next.js",
"directory": "packages/next-plugin-storybook"
Expand Down
2 changes: 1 addition & 1 deletion packages/next-polyfill-module/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/polyfill-module",
"version": "10.0.8-canary.14",
"version": "10.0.8-canary.15",
"description": "A standard library polyfill for ES Modules supporting browsers (Edge 16+, Firefox 60+, Chrome 61+, Safari 10.1+)",
"main": "dist/polyfill-module.js",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/next-polyfill-nomodule/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/polyfill-nomodule",
"version": "10.0.8-canary.14",
"version": "10.0.8-canary.15",
"description": "A polyfill for non-dead, nomodule browsers.",
"main": "dist/polyfill-nomodule.js",
"license": "MIT",
Expand Down
12 changes: 6 additions & 6 deletions packages/next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "next",
"version": "10.0.8-canary.14",
"version": "10.0.8-canary.15",
"description": "The React Framework",
"main": "./dist/server/next.js",
"license": "MIT",
Expand Down Expand Up @@ -62,10 +62,10 @@
"dependencies": {
"@babel/runtime": "7.12.5",
"@hapi/accept": "5.0.1",
"@next/env": "10.0.8-canary.14",
"@next/polyfill-module": "10.0.8-canary.14",
"@next/react-dev-overlay": "10.0.8-canary.14",
"@next/react-refresh-utils": "10.0.8-canary.14",
"@next/env": "10.0.8-canary.15",
"@next/polyfill-module": "10.0.8-canary.15",
"@next/react-dev-overlay": "10.0.8-canary.15",
"@next/react-refresh-utils": "10.0.8-canary.15",
"@opentelemetry/api": "0.14.0",
"ast-types": "0.13.2",
"browserslist": "4.16.1",
Expand Down Expand Up @@ -133,7 +133,7 @@
"@babel/preset-react": "7.12.10",
"@babel/preset-typescript": "7.12.7",
"@babel/types": "7.12.12",
"@next/polyfill-nomodule": "10.0.8-canary.14",
"@next/polyfill-nomodule": "10.0.8-canary.15",
"@taskr/clear": "1.1.0",
"@taskr/esnext": "1.1.0",
"@taskr/watch": "1.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-dev-overlay/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/react-dev-overlay",
"version": "10.0.8-canary.14",
"version": "10.0.8-canary.15",
"description": "A development-only overlay for developing React applications.",
"repository": {
"url": "vercel/next.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-refresh-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/react-refresh-utils",
"version": "10.0.8-canary.14",
"version": "10.0.8-canary.15",
"description": "An experimental package providing utilities for React Refresh.",
"repository": {
"url": "vercel/next.js",
Expand Down

1 comment on commit 2046648

@ijjk
Copy link
Member

@ijjk ijjk commented on 2046648 Mar 3, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stats from current release

Default Server Mode (Increase detected ⚠️)
General Overall decrease ✓
vercel/next.js canary v10.0.7 vercel/next.js refs/heads/canary Change
buildDuration 12s 12.9s ⚠️ +912ms
nodeModulesSize 69.9 MB 42.7 MB -27.2 MB
Page Load Tests Overall increase ✓
vercel/next.js canary v10.0.7 vercel/next.js refs/heads/canary Change
/ failed reqs 0 0
/ total time (seconds) 2.351 2.33 -0.02
/ avg req/sec 1063.5 1073.04 +9.54
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.639 1.599 -0.04
/error-in-render avg req/sec 1525.19 1563.32 +38.13
Client Bundles (main, webpack, commons) Overall increase ⚠️
vercel/next.js canary v10.0.7 vercel/next.js refs/heads/canary Change
677f882d2ed8..5cb0.js gzip 13.1 kB 13.4 kB ⚠️ +219 B
framework.HASH.js gzip 39 kB 39 kB
main-HASH.js gzip 6.63 kB 6.65 kB ⚠️ +22 B
webpack-HASH.js gzip 751 B 751 B
Overall change 59.5 kB 59.7 kB ⚠️ +241 B
Legacy Client Bundles (polyfills)
vercel/next.js canary v10.0.7 vercel/next.js refs/heads/canary Change
polyfills-HASH.js gzip 31.3 kB 31.3 kB
Overall change 31.3 kB 31.3 kB
Client Pages
vercel/next.js canary v10.0.7 vercel/next.js refs/heads/canary Change
_app-2a09aa2..4a98.js gzip 1.28 kB 1.28 kB
_error-8b758..aef6.js gzip 3.46 kB 3.46 kB
amp-e3e9bc99..932c.js gzip 536 B 536 B
hooks-5023ef..3670.js gzip 888 B 888 B
index-3a2b03..c677.js gzip 227 B 227 B
link-177412b..043e.js gzip 1.67 kB 1.67 kB
routerDirect..1a66.js gzip 303 B 303 B
withRouter-9..1b7d.js gzip 302 B 302 B
Overall change 8.66 kB 8.66 kB
Client Build Manifests
vercel/next.js canary v10.0.7 vercel/next.js refs/heads/canary Change
_buildManifest.js gzip 347 B 347 B
Overall change 347 B 347 B
Rendered Page Sizes Overall decrease ✓
vercel/next.js canary v10.0.7 vercel/next.js refs/heads/canary Change
index.html gzip 614 B 613 B -1 B
link.html gzip 621 B 620 B -1 B
withRouter.html gzip 608 B 609 B ⚠️ +1 B
Overall change 1.84 kB 1.84 kB -1 B

Diffs

Diff for 677f882d2ed8..fb73c6f26.js
@@ -1492,6 +1492,41 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
         };
       }
 
+      function resolveDynamicRoute(parsedHref, pages) {
+        var applyBasePath =
+          arguments.length > 2 && arguments[2] !== undefined
+            ? arguments[2]
+            : true;
+        var pathname = parsedHref.pathname;
+        var cleanPathname = (0,
+        _normalizeTrailingSlash.removePathTrailingSlash)(
+          (0, _denormalizePagePath.denormalizePagePath)(
+            applyBasePath ? delBasePath(pathname) : pathname
+          )
+        );
+
+        if (cleanPathname === "/404" || cleanPathname === "/_error") {
+          return parsedHref;
+        } // handle resolving href for dynamic routes
+
+        if (!pages.includes(cleanPathname)) {
+          // eslint-disable-next-line array-callback-return
+          pages.some(function(page) {
+            if (
+              (0, _isDynamic.isDynamicRoute)(page) &&
+              (0, _routeRegex.getRouteRegex)(page).re.test(cleanPathname)
+            ) {
+              parsedHref.pathname = applyBasePath ? addBasePath(page) : page;
+              return true;
+            }
+          });
+        }
+
+        parsedHref.pathname = (0,
+        _normalizeTrailingSlash.removePathTrailingSlash)(parsedHref.pathname);
+        return parsedHref;
+      }
+
       var manualScrollRestoration = false && false;
       var SSG_DATA_NOT_FOUND = Symbol("SSG_DATA_NOT_FOUND");
 
@@ -1568,7 +1603,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
             locale = _ref.locale,
             locales = _ref.locales,
             defaultLocale = _ref.defaultLocale,
-            domainLocales = _ref.domainLocales;
+            domainLocales = _ref.domainLocales,
+            isPreview = _ref.isPreview;
 
           _classCallCheck(this, Router);
 
@@ -1594,6 +1630,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
           this.defaultLocale = void 0;
           this.domainLocales = void 0;
           this.isReady = void 0;
+          this.isPreview = void 0;
           this.isLocaleDomain = void 0;
           this._idx = 0;
 
@@ -1721,6 +1758,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
             self.__NEXT_DATA__.gip ||
             (!autoExportDynamic && !self.location.search)
           );
+          this.isPreview = !!isPreview;
           this.isLocaleDomain = false;
 
           if (false) {
@@ -1824,8 +1862,6 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
                   options,
                   forcedScroll
                 ) {
-                  var _this2 = this;
-
                   var _options$scroll,
                     localeChange,
                     parsedAs,
@@ -1855,6 +1891,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
                     shouldInterpolate,
                     interpolatedAs,
                     missingParams,
+                    _self$__NEXT_DATA__$p,
+                    _self$__NEXT_DATA__$p2,
                     routeInfo,
                     _routeInfo,
                     error,
@@ -2061,7 +2099,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
                             return _context.abrupt("return", false);
 
                           case 50:
-                            parsed = this._resolveHref(parsed, pages);
+                            parsed = resolveDynamicRoute(parsed, pages);
 
                             if (parsed.pathname !== pathname) {
                               pathname = parsed.pathname;
@@ -2238,7 +2276,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
                               (__N_SSP = _routeInfo.__N_SSP); // handle redirect on client-transition
 
                             if (!((__N_SSG || __N_SSP) && props)) {
-                              _context.next = 108;
+                              _context.next = 109;
                               break;
                             }
 
@@ -2260,8 +2298,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
 
                             parsedHref = (0,
                             _parseRelativeUrl.parseRelativeUrl)(destination);
-
-                            this._resolveHref(parsedHref, pages, false);
+                            resolveDynamicRoute(parsedHref, pages, false);
 
                             if (!pages.includes(parsedHref.pathname)) {
                               _context.next = 93;
@@ -2288,27 +2325,29 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
                             );
 
                           case 95:
+                            this.isPreview = !!props.__N_PREVIEW; // handle SSG data 404
+
                             if (!(props.notFound === SSG_DATA_NOT_FOUND)) {
-                              _context.next = 108;
+                              _context.next = 109;
                               break;
                             }
 
-                            _context.prev = 96;
-                            _context.next = 99;
+                            _context.prev = 97;
+                            _context.next = 100;
                             return this.fetchComponent("/404");
 
-                          case 99:
+                          case 100:
                             notFoundRoute = "/404";
-                            _context.next = 105;
+                            _context.next = 106;
                             break;
 
-                          case 102:
-                            _context.prev = 102;
-                            _context.t1 = _context["catch"](96);
+                          case 103:
+                            _context.prev = 103;
+                            _context.t1 = _context["catch"](97);
                             notFoundRoute = "/_error";
 
-                          case 105:
-                            _context.next = 107;
+                          case 106:
+                            _context.next = 108;
                             return this.getRouteInfo(
                               notFoundRoute,
                               notFoundRoute,
@@ -2320,10 +2359,10 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
                               }
                             );
 
-                          case 107:
+                          case 108:
                             routeInfo = _context.sent;
 
-                          case 108:
+                          case 109:
                             Router.events.emit(
                               "beforeHistoryChange",
                               as,
@@ -2336,7 +2375,26 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
 
                             isValidShallowRoute =
                               options.shallow && this.route === route;
-                            _context.next = 114;
+
+                            if (
+                              options._h &&
+                              pathname === "/_error" &&
+                              ((_self$__NEXT_DATA__$p =
+                                self.__NEXT_DATA__.props) == null
+                                ? void 0
+                                : (_self$__NEXT_DATA__$p2 =
+                                    _self$__NEXT_DATA__$p.pageProps) == null
+                                ? void 0
+                                : _self$__NEXT_DATA__$p2.statusCode) === 500 &&
+                              props != null &&
+                              props.pageProps
+                            ) {
+                              // ensure statusCode is still correct for static 500 page
+                              // when updating query information
+                              props.pageProps.statusCode = 500;
+                            }
+
+                            _context.next = 116;
                             return this.set(
                               route,
                               pathname,
@@ -2355,9 +2413,9 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
                               else throw e;
                             });
 
-                          case 114:
+                          case 116:
                             if (!error) {
-                              _context.next = 117;
+                              _context.next = 119;
                               break;
                             }
 
@@ -2369,7 +2427,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
                             );
                             throw error;
 
-                          case 117:
+                          case 119:
                             if (false) {
                             }
 
@@ -2380,21 +2438,21 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
                             );
                             return _context.abrupt("return", true);
 
-                          case 122:
-                            _context.prev = 122;
+                          case 124:
+                            _context.prev = 124;
                             _context.t2 = _context["catch"](79);
 
                             if (!_context.t2.cancelled) {
-                              _context.next = 126;
+                              _context.next = 128;
                               break;
                             }
 
                             return _context.abrupt("return", false);
 
-                          case 126:
+                          case 128:
                             throw _context.t2;
 
-                          case 127:
+                          case 129:
                           case "end":
                             return _context.stop();
                         }
@@ -2404,8 +2462,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
                     this,
                     [
                       [36, 46],
-                      [79, 122],
-                      [96, 102]
+                      [79, 124],
+                      [97, 103]
                     ]
                   );
                 })
@@ -2615,7 +2673,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
                   resolvedAs,
                   routeProps
                 ) {
-                  var _this3 = this;
+                  var _this2 = this;
 
                   var existingRouteInfo,
                     cachedRouteInfo,
@@ -2735,10 +2793,10 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
                             _context3.next = 21;
                             return this._getData(function() {
                               return __N_SSG
-                                ? _this3._getStaticData(dataHref)
+                                ? _this2._getStaticData(dataHref)
                                 : __N_SSP
-                                ? _this3._getServerData(dataHref)
-                                : _this3.getInitialProps(
+                                ? _this2._getServerData(dataHref)
+                                : _this2.getInitialProps(
                                     Component, // we provide AppTree later so this needs to be `any`
                                     {
                                       pathname: pathname,
@@ -2875,47 +2933,6 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
             value: function urlIsNew(asPath) {
               return this.asPath !== asPath;
             }
-          },
-          {
-            key: "_resolveHref",
-            value: function _resolveHref(parsedHref, pages) {
-              var applyBasePath =
-                arguments.length > 2 && arguments[2] !== undefined
-                  ? arguments[2]
-                  : true;
-              var pathname = parsedHref.pathname;
-              var cleanPathname = (0,
-              _normalizeTrailingSlash.removePathTrailingSlash)(
-                (0, _denormalizePagePath.denormalizePagePath)(
-                  applyBasePath ? delBasePath(pathname) : pathname
-                )
-              );
-
-              if (cleanPathname === "/404" || cleanPathname === "/_error") {
-                return parsedHref;
-              } // handle resolving href for dynamic routes
-
-              if (!pages.includes(cleanPathname)) {
-                // eslint-disable-next-line array-callback-return
-                pages.some(function(page) {
-                  if (
-                    (0, _isDynamic.isDynamicRoute)(page) &&
-                    (0, _routeRegex.getRouteRegex)(page).re.test(cleanPathname)
-                  ) {
-                    parsedHref.pathname = applyBasePath
-                      ? addBasePath(page)
-                      : page;
-                    return true;
-                  }
-                });
-              }
-
-              parsedHref.pathname = (0,
-              _normalizeTrailingSlash.removePathTrailingSlash)(
-                parsedHref.pathname
-              );
-              return parsedHref;
-            }
             /**
              * Prefetch page code, you may wait for the data during page rendering.
              * This feature only works in production!
@@ -2928,7 +2945,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
             value: (function() {
               var _prefetch = _asyncToGenerator(
                 /*#__PURE__*/ _regeneratorRuntime.mark(function _callee4(url) {
-                  var _this4 = this;
+                  var _this3 = this;
 
                   var asPath,
                     options,
@@ -2939,6 +2956,10 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
                     localePathResult,
                     pages,
                     route,
+                    resolvedAs,
+                    rewrites,
+                    _yield2,
+                    rewritesResult,
                     _args4 = arguments;
 
                   return _regeneratorRuntime.wrap(
@@ -2967,37 +2988,82 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
 
                           case 7:
                             pages = _context4.sent;
-                            parsed = this._resolveHref(parsed, pages, false);
+                            parsed = resolveDynamicRoute(parsed, pages, false);
 
                             if (parsed.pathname !== pathname) {
                               pathname = parsed.pathname;
                               url = (0, _utils.formatWithValidation)(parsed);
-                            } // Prefetch is not supported in development mode because it would trigger on-demand-entries
-
-                            if (true) {
-                              _context4.next = 12;
-                              break;
                             }
 
-                            return _context4.abrupt("return");
-
-                          case 12:
                             route = (0,
                             _normalizeTrailingSlash.removePathTrailingSlash)(
                               pathname
                             );
+                            resolvedAs = asPath;
+
+                            if (true) {
+                              _context4.next = 19;
+                              break;
+                            }
+
                             _context4.next = 15;
+                            return (0, _routeLoader.getClientBuildManifest)();
+
+                          case 15:
+                            _yield2 = _context4.sent;
+                            rewrites = _yield2.__rewrites;
+                            rewritesResult = (0, _resolveRewrites["default"])(
+                              addBasePath(
+                                addLocale(delBasePath(asPath), this.locale)
+                              ),
+                              pages,
+                              rewrites,
+                              parsed.query,
+                              function(p) {
+                                return resolveDynamicRoute(
+                                  {
+                                    pathname: p
+                                  },
+                                  pages
+                                ).pathname;
+                              },
+                              this.locales
+                            );
+
+                            if (
+                              rewritesResult.matchedPage &&
+                              rewritesResult.resolvedHref
+                            ) {
+                              // if this directly matches a page we need to update the href to
+                              // allow the correct page chunk to be loaded
+                              route = rewritesResult.resolvedHref;
+                              pathname = rewritesResult.resolvedHref;
+                              parsed.pathname = pathname;
+                              url = (0, _utils.formatWithValidation)(parsed);
+                              resolvedAs = rewritesResult.asPath;
+                            }
+
+                          case 19:
+                            if (true) {
+                              _context4.next = 21;
+                              break;
+                            }
+
+                            return _context4.abrupt("return");
+
+                          case 21:
+                            _context4.next = 23;
                             return Promise.all([
                               this.pageLoader._isSsg(url).then(function(isSsg) {
                                 return isSsg
-                                  ? _this4._getStaticData(
-                                      _this4.pageLoader.getDataHref(
+                                  ? _this3._getStaticData(
+                                      _this3.pageLoader.getDataHref(
                                         url,
-                                        asPath,
+                                        resolvedAs,
                                         true,
                                         typeof options.locale !== "undefined"
                                           ? options.locale
-                                          : _this4.locale
+                                          : _this3.locale
                                       )
                                     )
                                   : false;
@@ -3007,7 +3073,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
                               ](route)
                             ]);
 
-                          case 15:
+                          case 23:
                           case "end":
                             return _context4.stop();
                         }
@@ -3094,7 +3160,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
           {
             key: "_getData",
             value: function _getData(fn) {
-              var _this5 = this;
+              var _this4 = this;
 
               var cancelled = false;
 
@@ -3104,8 +3170,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
 
               this.clc = cancel;
               return fn().then(function(data) {
-                if (cancel === _this5.clc) {
-                  _this5.clc = null;
+                if (cancel === _this4.clc) {
+                  _this4.clc = null;
                 }
 
                 if (cancelled) {
@@ -3121,17 +3187,17 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
           {
             key: "_getStaticData",
             value: function _getStaticData(dataHref) {
-              var _this6 = this;
+              var _this5 = this;
 
               var _URL = new URL(dataHref, window.location.href),
                 cacheKey = _URL.href;
 
-              if (true && this.sdc[cacheKey]) {
+              if (true && !this.isPreview && this.sdc[cacheKey]) {
                 return Promise.resolve(this.sdc[cacheKey]);
               }
 
               return fetchNextData(dataHref, this.isSsr).then(function(data) {
-                _this6.sdc[cacheKey] = data;
+                _this5.sdc[cacheKey] = data;
                 return data;
               });
             }
@@ -4438,6 +4504,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
         "locales",
         "defaultLocale",
         "isReady",
+        "isPreview",
         "isLocaleDomain"
       ];
       var routerEvents = [
Diff for main-HASH.js
@@ -355,7 +355,7 @@ _N_E = (window["webpackJsonp_N_E"] = window["webpackJsonp_N_E"] || []).push([
         document.getElementById("__NEXT_DATA__").textContent
       );
       window.__NEXT_DATA__ = data;
-      var version = "10.0.7";
+      var version = "10.0.8-canary.15";
       exports.version = version;
 
       var looseToArray = function looseToArray(input) {
@@ -373,7 +373,8 @@ _N_E = (window["webpackJsonp_N_E"] = window["webpackJsonp_N_E"] || []).push([
         isFallback = data.isFallback,
         locale = data.locale,
         locales = data.locales,
-        domainLocales = data.domainLocales;
+        domainLocales = data.domainLocales,
+        isPreview = data.isPreview;
       var defaultLocale = data.defaultLocale;
       var prefix = assetPrefix || ""; // With dynamic assetPrefix it's no longer possible to set assetPrefix at the build time
       // So, this is how we do it in the client side at runtime
@@ -405,6 +406,10 @@ _N_E = (window["webpackJsonp_N_E"] = window["webpackJsonp_N_E"] || []).push([
           normalizeLocalePath;
       }
 
+      if (false) {
+        var _require5, initScriptLoader;
+      }
+
       var pageLoader = new _pageLoader["default"](buildId, prefix);
 
       var register = function register(_ref) {
@@ -526,7 +531,7 @@ _N_E = (window["webpackJsonp_N_E"] = window["webpackJsonp_N_E"] || []).push([
               if (true) {
                 return this.props.children;
               } else {
-                var _require5, ReactDevOverlay;
+                var _require6, ReactDevOverlay;
               }
             }
           }
@@ -548,9 +553,9 @@ _N_E = (window["webpackJsonp_N_E"] = window["webpackJsonp_N_E"] || []).push([
               mod,
               initialErr,
               pageEntrypoint,
-              _require6,
-              isValidElementType,
               _require7,
+              isValidElementType,
+              _require8,
               getNodeError,
               renderCtx,
               _args = arguments;
@@ -660,14 +665,14 @@ _N_E = (window["webpackJsonp_N_E"] = window["webpackJsonp_N_E"] || []).push([
                         break;
                       }
 
-                      (_require6 = __webpack_require__(
+                      (_require7 = __webpack_require__(
                         !(function webpackMissingModule() {
                           var e = new Error("Cannot find module 'react-is'");
                           e.code = "MODULE_NOT_FOUND";
                           throw e;
                         })()
                       )),
-                        (isValidElementType = _require6.isValidElementType);
+                        (isValidElementType = _require7.isValidElementType);
 
                       if (isValidElementType(CachedComponent)) {
                         _context.next = 27;
@@ -731,7 +736,8 @@ _N_E = (window["webpackJsonp_N_E"] = window["webpackJsonp_N_E"] || []).push([
                           locale: locale,
                           locales: locales,
                           defaultLocale: defaultLocale,
-                          domainLocales: domainLocales
+                          domainLocales: domainLocales,
+                          isPreview: isPreview
                         }
                       ); // call init-client middleware
Diff for index.html
@@ -7,7 +7,7 @@
     <noscript data-n-css=""></noscript>
     <link
       rel="preload"
-      href="/_next/static/chunks/main-ea0e58195257b82723c1.js"
+      href="/_next/static/chunks/main-96bbdaefdc2be580a94a.js"
       as="script"
     />
     <link
@@ -22,7 +22,7 @@
     />
     <link
       rel="preload"
-      href="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.7cb49231e31fb73c6f26.js"
+      href="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.42120b530b65ec6837e3.js"
       as="script"
     />
     <link
@@ -53,7 +53,7 @@
       src="/_next/static/chunks/polyfills-020d2be99297a5eb71a0.js"
     ></script>
     <script
-      src="/_next/static/chunks/main-ea0e58195257b82723c1.js"
+      src="/_next/static/chunks/main-96bbdaefdc2be580a94a.js"
       async=""
     ></script>
     <script
@@ -65,7 +65,7 @@
       async=""
     ></script>
     <script
-      src="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.7cb49231e31fb73c6f26.js"
+      src="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.42120b530b65ec6837e3.js"
       async=""
     ></script>
     <script
Diff for link.html
@@ -7,7 +7,7 @@
     <noscript data-n-css=""></noscript>
     <link
       rel="preload"
-      href="/_next/static/chunks/main-ea0e58195257b82723c1.js"
+      href="/_next/static/chunks/main-96bbdaefdc2be580a94a.js"
       as="script"
     />
     <link
@@ -22,7 +22,7 @@
     />
     <link
       rel="preload"
-      href="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.7cb49231e31fb73c6f26.js"
+      href="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.42120b530b65ec6837e3.js"
       as="script"
     />
     <link
@@ -58,7 +58,7 @@
       src="/_next/static/chunks/polyfills-020d2be99297a5eb71a0.js"
     ></script>
     <script
-      src="/_next/static/chunks/main-ea0e58195257b82723c1.js"
+      src="/_next/static/chunks/main-96bbdaefdc2be580a94a.js"
       async=""
     ></script>
     <script
@@ -70,7 +70,7 @@
       async=""
     ></script>
     <script
-      src="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.7cb49231e31fb73c6f26.js"
+      src="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.42120b530b65ec6837e3.js"
       async=""
     ></script>
     <script
Diff for withRouter.html
@@ -7,7 +7,7 @@
     <noscript data-n-css=""></noscript>
     <link
       rel="preload"
-      href="/_next/static/chunks/main-ea0e58195257b82723c1.js"
+      href="/_next/static/chunks/main-96bbdaefdc2be580a94a.js"
       as="script"
     />
     <link
@@ -22,7 +22,7 @@
     />
     <link
       rel="preload"
-      href="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.7cb49231e31fb73c6f26.js"
+      href="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.42120b530b65ec6837e3.js"
       as="script"
     />
     <link
@@ -53,7 +53,7 @@
       src="/_next/static/chunks/polyfills-020d2be99297a5eb71a0.js"
     ></script>
     <script
-      src="/_next/static/chunks/main-ea0e58195257b82723c1.js"
+      src="/_next/static/chunks/main-96bbdaefdc2be580a94a.js"
       async=""
     ></script>
     <script
@@ -65,7 +65,7 @@
       async=""
     ></script>
     <script
-      src="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.7cb49231e31fb73c6f26.js"
+      src="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.42120b530b65ec6837e3.js"
       async=""
     ></script>
     <script

Serverless Mode (Increase detected ⚠️)
General Overall decrease ✓
vercel/next.js canary v10.0.7 vercel/next.js refs/heads/canary Change
buildDuration 14.3s 14.8s ⚠️ +435ms
nodeModulesSize 69.9 MB 42.7 MB -27.2 MB
Client Bundles (main, webpack, commons) Overall increase ⚠️
vercel/next.js canary v10.0.7 vercel/next.js refs/heads/canary Change
677f882d2ed8..5cb0.js gzip 13.1 kB N/A N/A
framework.HASH.js gzip 39 kB 39 kB
main-HASH.js gzip 6.63 kB 6.65 kB ⚠️ +22 B
webpack-HASH.js gzip 751 B 751 B
677f882d2ed8..e7a0.js gzip N/A 13.4 kB N/A
Overall change 59.5 kB 59.7 kB ⚠️ +241 B
Legacy Client Bundles (polyfills)
vercel/next.js canary v10.0.7 vercel/next.js refs/heads/canary Change
polyfills-HASH.js gzip 31.3 kB 31.3 kB
Overall change 31.3 kB 31.3 kB
Client Pages
vercel/next.js canary v10.0.7 vercel/next.js refs/heads/canary Change
_app-2a09aa2..4a98.js gzip 1.28 kB 1.28 kB
_error-8b758..aef6.js gzip 3.46 kB 3.46 kB
amp-e3e9bc99..932c.js gzip 536 B 536 B
hooks-5023ef..3670.js gzip 888 B 888 B
index-3a2b03..c677.js gzip 227 B 227 B
link-177412b..043e.js gzip 1.67 kB 1.67 kB
routerDirect..1a66.js gzip 303 B 303 B
withRouter-9..1b7d.js gzip 302 B 302 B
Overall change 8.66 kB 8.66 kB
Client Build Manifests
vercel/next.js canary v10.0.7 vercel/next.js refs/heads/canary Change
_buildManifest.js gzip 347 B 347 B
Overall change 347 B 347 B
Serverless bundles Overall increase ⚠️
vercel/next.js canary v10.0.7 vercel/next.js refs/heads/canary Change
_error.js 1.01 MB 1.02 MB ⚠️ +14 kB
404.html 2.67 kB 2.67 kB
amp.amp.html 10.4 kB 10.4 kB
amp.html 1.86 kB 1.86 kB
hooks.html 1.92 kB 1.92 kB
index.js 1.01 MB 1.02 MB ⚠️ +14 kB
link.js 1.06 MB 1.08 MB ⚠️ +12.1 kB
routerDirect.js 1.06 MB 1.07 MB ⚠️ +12.1 kB
withRouter.js 1.06 MB 1.07 MB ⚠️ +12.1 kB
500.html N/A 2.65 kB N/A
Overall change 5.2 MB 5.27 MB ⚠️ +67.1 kB

Webpack 5 Mode (Increase detected ⚠️)
General Overall decrease ✓
vercel/next.js canary v10.0.7 vercel/next.js refs/heads/canary Change
buildDuration 14.6s 14.8s ⚠️ +269ms
nodeModulesSize 69.9 MB 42.7 MB -27.2 MB
Page Load Tests Overall increase ✓
vercel/next.js canary v10.0.7 vercel/next.js refs/heads/canary Change
/ failed reqs 0 0
/ total time (seconds) 2.243 2.13 -0.11
/ avg req/sec 1114.58 1173.73 +59.15
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.556 1.583 ⚠️ +0.03
/error-in-render avg req/sec 1606.42 1579.14 ⚠️ -27.28
Client Bundles (main, webpack, commons) Overall increase ⚠️
vercel/next.js canary v10.0.7 vercel/next.js refs/heads/canary Change
597-d08f5fe5..d690.js gzip 13.1 kB 13.3 kB ⚠️ +216 B
framework.HASH.js gzip 39.3 kB 39.3 kB
main-HASH.js gzip 6.58 kB 6.6 kB ⚠️ +21 B
webpack-HASH.js gzip 954 B 954 B
Overall change 59.9 kB 60.1 kB ⚠️ +237 B
Legacy Client Bundles (polyfills) Overall decrease ✓
vercel/next.js canary v10.0.7 vercel/next.js refs/heads/canary Change
polyfills-HASH.js gzip 31.1 kB 31.1 kB -3 B
Overall change 31.1 kB 31.1 kB -3 B
Client Pages Overall decrease ✓
vercel/next.js canary v10.0.7 vercel/next.js refs/heads/canary Change
_app-6e0a903..b885.js gzip 1.26 kB 1.26 kB -2 B
_error-9e190..f9d6.js gzip 3.38 kB 3.38 kB -3 B
amp-7fd79cc4..99ee.js gzip 538 B 536 B -2 B
hooks-f7e199..11b9.js gzip 904 B 902 B -2 B
index-3dc22c..ffbb.js gzip 232 B 230 B -2 B
link-7cc9e62..ef27.js gzip 1.66 kB 1.65 kB -3 B
routerDirect..323a.js gzip 308 B 306 B -2 B
withRouter-a..2ef8.js gzip 304 B 302 B -2 B
Overall change 8.59 kB 8.57 kB -18 B
Client Build Manifests Overall increase ⚠️
vercel/next.js canary v10.0.7 vercel/next.js refs/heads/canary Change
_buildManifest.js gzip 322 B 326 B ⚠️ +4 B
Overall change 322 B 326 B ⚠️ +4 B
Rendered Page Sizes Overall increase ⚠️
vercel/next.js canary v10.0.7 vercel/next.js refs/heads/canary Change
index.html gzip 585 B 586 B ⚠️ +1 B
link.html gzip 593 B 593 B
withRouter.html gzip 580 B 582 B ⚠️ +2 B
Overall change 1.76 kB 1.76 kB ⚠️ +3 B

Diffs

Diff for 677f882d2ed8..7293b5cb0.js

Diff too large to display

Diff for main-HASH.js
@@ -212,8 +212,8 @@ _N_E = (window.webpackJsonp_N_E = window.webpackJsonp_N_E || []).push([
       var p = r("284h"),
         d = r("TqRt");
       (t.__esModule = !0),
-        (t.render = oe),
-        (t.renderError = ie),
+        (t.render = ae),
+        (t.renderError = ue),
         (t.default = t.emitter = t.router = t.version = void 0);
       var m = d(r("pVnL"));
       d(r("284h"));
@@ -234,7 +234,7 @@ _N_E = (window.webpackJsonp_N_E = window.webpackJsonp_N_E || []).push([
         k = r("nOHt"),
         A = JSON.parse(document.getElementById("__NEXT_DATA__").textContent);
       window.__NEXT_DATA__ = A;
-      t.version = "10.0.7";
+      t.version = "10.0.8-canary.15";
       var C = function(e) {
           return [].slice.call(e);
         },
@@ -250,36 +250,37 @@ _N_E = (window.webpackJsonp_N_E = window.webpackJsonp_N_E || []).push([
         q = A.locale,
         H = A.locales,
         X = A.domainLocales,
-        G = A.defaultLocale,
-        W = D || "";
-      (r.p = "".concat(W, "/_next/")),
+        G = A.isPreview,
+        W = A.defaultLocale,
+        J = D || "";
+      (r.p = "".concat(J, "/_next/")),
         E.setConfig({ serverRuntimeConfig: {}, publicRuntimeConfig: O || {} });
-      var J = (0, x.getURL)();
-      (0, S.hasBasePath)(J) && (J = (0, S.delBasePath)(J));
-      var U = new P.default(I, W),
-        Y = function(e) {
+      var U = (0, x.getURL)();
+      (0, S.hasBasePath)(U) && (U = (0, S.delBasePath)(U));
+      var Y = new P.default(I, J),
+        V = function(e) {
           var t = l(e, 2),
             r = t[0],
             n = t[1];
-          return U.routeLoader.onEntrypoint(r, n);
+          return Y.routeLoader.onEntrypoint(r, n);
         };
       window.__NEXT_P &&
         window.__NEXT_P.map(function(e) {
           return setTimeout(function() {
-            return Y(e);
+            return V(e);
           }, 0);
         }),
         (window.__NEXT_P = []),
-        (window.__NEXT_P.push = Y);
-      var V,
-        z,
+        (window.__NEXT_P.push = V);
+      var z,
         Q,
         Z,
-        K = (0, T.default)(),
-        $ = document.getElementById("__next");
-      t.router = z;
-      var ee,
-        te = (function(e) {
+        K,
+        $ = (0, T.default)(),
+        ee = document.getElementById("__next");
+      t.router = Q;
+      var te,
+        re = (function(e) {
           u(r, e);
           var t = f(r);
           function r() {
@@ -297,22 +298,22 @@ _N_E = (window.webpackJsonp_N_E = window.webpackJsonp_N_E || []).push([
                 key: "componentDidMount",
                 value: function() {
                   this.scrollToHash(),
-                    z.isSsr &&
+                    Q.isSsr &&
                       (B ||
                         (A.nextExport &&
-                          ((0, w.isDynamicRoute)(z.pathname) ||
+                          ((0, w.isDynamicRoute)(Q.pathname) ||
                             location.search)) ||
                         (M && M.__N_SSG && location.search)) &&
-                      z.replace(
-                        z.pathname +
+                      Q.replace(
+                        Q.pathname +
                           "?" +
                           String(
                             _.assign(
-                              _.urlQueryToSearchParams(z.query),
+                              _.urlQueryToSearchParams(Q.query),
                               new URLSearchParams(location.search)
                             )
                           ),
-                        J,
+                        U,
                         { _h: 1, shallow: !B }
                       );
                 }
@@ -346,9 +347,9 @@ _N_E = (window.webpackJsonp_N_E = window.webpackJsonp_N_E || []).push([
             r
           );
         })(h.default.Component),
-        re = (0, g.default)();
-      t.emitter = re;
-      var ne = (function() {
+        ne = (0, g.default)();
+      t.emitter = ne;
+      var oe = (function() {
         var e = o(
           n.mark(function e() {
             var r,
@@ -366,7 +367,7 @@ _N_E = (window.webpackJsonp_N_E = window.webpackJsonp_N_E || []).push([
                       return (
                         s.length > 0 && void 0 !== s[0] ? s[0] : {},
                         (e.next = 4),
-                        U.routeLoader.whenEntrypoint("/_app")
+                        Y.routeLoader.whenEntrypoint("/_app")
                       );
                     case 4:
                       if (!("error" in (r = e.sent))) {
@@ -377,10 +378,10 @@ _N_E = (window.webpackJsonp_N_E = window.webpackJsonp_N_E || []).push([
                     case 7:
                       (o = r.component),
                         (a = r.exports),
-                        (Q = o),
+                        (Z = o),
                         a &&
                           a.reportWebVitals &&
-                          (Z = function(e) {
+                          (K = function(e) {
                             var t,
                               r = e.id,
                               n = e.name,
@@ -412,7 +413,7 @@ _N_E = (window.webpackJsonp_N_E = window.webpackJsonp_N_E || []).push([
                         (e.next = 16);
                       break;
                     case 16:
-                      return (e.next = 18), U.routeLoader.whenEntrypoint(R);
+                      return (e.next = 18), Y.routeLoader.whenEntrypoint(R);
                     case 18:
                       e.t0 = e.sent;
                     case 19:
@@ -422,7 +423,7 @@ _N_E = (window.webpackJsonp_N_E = window.webpackJsonp_N_E || []).push([
                       }
                       throw u.error;
                     case 22:
-                      (ee = u.component), (e.next = 27);
+                      (te = u.component), (e.next = 27);
                       break;
                     case 27:
                       e.next = 32;
@@ -437,39 +438,40 @@ _N_E = (window.webpackJsonp_N_E = window.webpackJsonp_N_E || []).push([
                       return (e.next = 36), window.__NEXT_PRELOADREADY(j);
                     case 36:
                       return (
-                        (t.router = z = (0, k.createRouter)(R, F, J, {
+                        (t.router = Q = (0, k.createRouter)(R, F, U, {
                           initialProps: M,
-                          pageLoader: U,
-                          App: Q,
-                          Component: ee,
-                          wrapApp: de,
+                          pageLoader: Y,
+                          App: Z,
+                          Component: te,
+                          wrapApp: me,
                           err: i,
                           isFallback: Boolean(B),
                           subscription: function(e, t, r) {
-                            return oe(
+                            return ae(
                               Object.assign({}, e, { App: t, scroll: r })
                             );
                           },
                           locale: q,
                           locales: H,
-                          defaultLocale: G,
-                          domainLocales: X
+                          defaultLocale: W,
+                          domainLocales: X,
+                          isPreview: G
                         })),
-                        oe(
+                        ae(
                           (c = {
-                            App: Q,
+                            App: Z,
                             initial: !0,
-                            Component: ee,
+                            Component: te,
                             props: M,
                             err: i
                           })
                         ),
-                        e.abrupt("return", re)
+                        e.abrupt("return", ne)
                       );
                     case 44:
                       return e.abrupt("return", {
-                        emitter: re,
-                        render: oe,
+                        emitter: ne,
+                        render: ae,
                         renderCtx: c
                       });
                     case 45:
@@ -487,11 +489,11 @@ _N_E = (window.webpackJsonp_N_E = window.webpackJsonp_N_E || []).push([
           return e.apply(this, arguments);
         };
       })();
-      function oe(e) {
-        return ae.apply(this, arguments);
+      function ae(e) {
+        return ie.apply(this, arguments);
       }
-      function ae() {
-        return (ae = o(
+      function ie() {
+        return (ie = o(
           n.mark(function e(t) {
             return n.wrap(
               function(e) {
@@ -502,11 +504,11 @@ _N_E = (window.webpackJsonp_N_E = window.webpackJsonp_N_E || []).push([
                         e.next = 4;
                         break;
                       }
-                      return (e.next = 3), ie(t);
+                      return (e.next = 3), ue(t);
                     case 3:
                       return e.abrupt("return");
                     case 4:
-                      return (e.prev = 4), (e.next = 7), me(t);
+                      return (e.prev = 4), (e.next = 7), he(t);
                     case 7:
                       e.next = 16;
                       break;
@@ -520,7 +522,7 @@ _N_E = (window.webpackJsonp_N_E = window.webpackJsonp_N_E || []).push([
                       throw e.t0;
                     case 13:
                       return (
-                        (e.next = 16), ie((0, m.default)({}, t, { err: e.t0 }))
+                        (e.next = 16), ue((0, m.default)({}, t, { err: e.t0 }))
                       );
                     case 16:
                     case "end":
@@ -534,25 +536,25 @@ _N_E = (window.webpackJsonp_N_E = window.webpackJsonp_N_E || []).push([
           })
         )).apply(this, arguments);
       }
-      function ie(e) {
+      function ue(e) {
         var t = e.App,
           r = e.err;
         return (
           console.error(r),
-          U.loadPage("/_error").then(function(n) {
+          Y.loadPage("/_error").then(function(n) {
             var o = n.page,
               a = n.styleSheets,
-              i = de(t),
+              i = me(t),
               u = {
                 Component: o,
                 AppTree: i,
-                router: z,
-                ctx: { err: r, pathname: R, query: F, asPath: J, AppTree: i }
+                router: Q,
+                ctx: { err: r, pathname: R, query: F, asPath: U, AppTree: i }
               };
             return Promise.resolve(
               e.props ? e.props : (0, x.loadGetInitialProps)(t, u)
             ).then(function(t) {
-              return me(
+              return he(
                 (0, m.default)({}, e, {
                   err: r,
                   Component: o,
@@ -564,9 +566,9 @@ _N_E = (window.webpackJsonp_N_E = window.webpackJsonp_N_E || []).push([
           })
         );
       }
-      t.default = ne;
-      var ue = "function" === typeof v.default.hydrate;
-      function ce() {
+      t.default = oe;
+      var ce = "function" === typeof v.default.hydrate;
+      function se() {
         x.ST &&
           (performance.mark("afterHydrate"),
           performance.measure(
@@ -579,10 +581,10 @@ _N_E = (window.webpackJsonp_N_E = window.webpackJsonp_N_E || []).push([
             "beforeRender",
             "afterHydrate"
           ),
-          Z && performance.getEntriesByName("Next.js-hydration").forEach(Z),
-          le());
+          K && performance.getEntriesByName("Next.js-hydration").forEach(K),
+          fe());
       }
-      function se() {
+      function le() {
         if (x.ST) {
           performance.mark("afterRender");
           var e = performance.getEntriesByName("routeChange", "mark");
@@ -597,12 +599,12 @@ _N_E = (window.webpackJsonp_N_E = window.webpackJsonp_N_E || []).push([
               "beforeRender",
               "afterRender"
             ),
-            Z &&
-              (performance.getEntriesByName("Next.js-render").forEach(Z),
+            K &&
+              (performance.getEntriesByName("Next.js-render").forEach(K),
               performance
                 .getEntriesByName("Next.js-route-change-to-render")
-                .forEach(Z)),
-            le(),
+                .forEach(K)),
+            fe(),
             ["Next.js-route-change-to-render", "Next.js-render"].forEach(
               function(e) {
                 return performance.clearMeasures(e);
@@ -610,64 +612,64 @@ _N_E = (window.webpackJsonp_N_E = window.webpackJsonp_N_E || []).push([
             ));
         }
       }
-      function le() {
+      function fe() {
         ["beforeRender", "afterHydrate", "afterRender", "routeChange"].forEach(
           function(e) {
             return performance.clearMarks(e);
           }
         );
       }
-      function fe(e) {
+      function pe(e) {
         var t = e.children;
         return h.default.createElement(
-          te,
+          re,
           {
             fn: function(e) {
-              return ie({ App: Q, err: e }).catch(function(e) {
+              return ue({ App: Z, err: e }).catch(function(e) {
                 return console.error("Error rendering page: ", e);
               });
             }
           },
           h.default.createElement(
             b.RouterContext.Provider,
-            { value: (0, k.makePublicRouterInstance)(z) },
+            { value: (0, k.makePublicRouterInstance)(Q) },
             h.default.createElement(
               y.HeadManagerContext.Provider,
-              { value: K },
+              { value: $ },
               t
             )
           )
         );
       }
-      var pe,
-        de = function(e) {
+      var de,
+        me = function(e) {
           return function(t) {
-            var r = (0, m.default)({}, t, { Component: ee, err: L, router: z });
+            var r = (0, m.default)({}, t, { Component: te, err: L, router: Q });
             return h.default.createElement(
-              fe,
+              pe,
               null,
               h.default.createElement(e, r)
             );
           };
         };
-      function me(e) {
+      function he(e) {
         var t = e.App,
           r = e.Component,
           n = e.props,
           o = e.err,
           a = "initial" in e ? void 0 : e.styleSheets;
-        (r = r || pe.Component), (n = n || pe.props);
-        var i = (0, m.default)({}, n, { Component: r, err: o, router: z });
-        pe = i;
+        (r = r || de.Component), (n = n || de.props);
+        var i = (0, m.default)({}, n, { Component: r, err: o, router: Q });
+        de = i;
         var u,
           c = !1,
           s = new Promise(function(e, t) {
-            V && V(),
+            z && z(),
               (u = function() {
-                (V = null), e();
+                (z = null), e();
               }),
-              (V = function() {
-                (c = !0), (V = null);
+              (z = function() {
+                (c = !0), (z = null);
                 var e = new Error("Cancel rendering route");
                 (e.cancelled = !0), t(e);
               });
@@ -675,13 +677,13 @@ _N_E = (window.webpackJsonp_N_E = window.webpackJsonp_N_E || []).push([
         var l,
           f,
           p = h.default.createElement(
-            he,
+            ve,
             {
               callback: function() {
                 u();
               }
             },
-            h.default.createElement(ve, {
+            h.default.createElement(ye, {
               callback: function() {
                 if (a && !c) {
                   for (
@@ -721,7 +723,7 @@ _N_E = (window.webpackJsonp_N_E = window.webpackJsonp_N_E || []).push([
                 e.scroll && window.scrollTo(e.scroll.x, e.scroll.y);
               }
             }),
-            h.default.createElement(fe, null, h.default.createElement(t, i))
+            h.default.createElement(pe, null, h.default.createElement(t, i))
           );
         return (
           (function() {
@@ -748,15 +750,15 @@ _N_E = (window.webpackJsonp_N_E = window.webpackJsonp_N_E || []).push([
             });
           })(),
           (l = p),
-          (f = $),
+          (f = ee),
           x.ST && performance.mark("beforeRender"),
-          ue
-            ? (v.default.hydrate(l, f, ce), (ue = !1))
-            : v.default.render(l, f, se),
+          ce
+            ? (v.default.hydrate(l, f, se), (ce = !1))
+            : v.default.render(l, f, le),
           s
         );
       }
-      function he(e) {
+      function ve(e) {
         var t = e.callback,
           r = e.children;
         return (
@@ -767,12 +769,12 @@ _N_E = (window.webpackJsonp_N_E = window.webpackJsonp_N_E || []).push([
             [t]
           ),
           h.default.useEffect(function() {
-            (0, N.default)(Z);
+            (0, N.default)(K);
           }, []),
           r
         );
       }
-      function ve(e) {
+      function ye(e) {
         var t = e.callback;
         return (
           h.default.useLayoutEffect(
Diff for index.html
@@ -7,7 +7,7 @@
     <noscript data-n-css=""></noscript>
     <link
       rel="preload"
-      href="/_next/static/chunks/main-65ade7e66a115d49634a.js"
+      href="/_next/static/chunks/main-3bf52b0e196831575094.js"
       as="script"
     />
     <link
@@ -22,7 +22,7 @@
     />
     <link
       rel="preload"
-      href="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.4826dee40eb7293b5cb0.js"
+      href="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.45a1f5b1723eaa79e7a0.js"
       as="script"
     />
     <link
@@ -43,7 +43,7 @@
         "props": { "pageProps": {} },
         "page": "/",
         "query": {},
-        "buildId": "VFRTtNh3lqdDA9jZUcF1t",
+        "buildId": "2jsHwvRG_GIoZEsVN0YTY",
         "isFallback": false,
         "gip": true
       }
@@ -53,7 +53,7 @@
       src="/_next/static/chunks/polyfills-ff94e68042added27a93.js"
     ></script>
     <script
-      src="/_next/static/chunks/main-65ade7e66a115d49634a.js"
+      src="/_next/static/chunks/main-3bf52b0e196831575094.js"
       async=""
     ></script>
     <script
@@ -65,7 +65,7 @@
       async=""
     ></script>
     <script
-      src="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.4826dee40eb7293b5cb0.js"
+      src="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.45a1f5b1723eaa79e7a0.js"
       async=""
     ></script>
     <script
@@ -77,11 +77,11 @@
       async=""
     ></script>
     <script
-      src="/_next/static/VFRTtNh3lqdDA9jZUcF1t/_buildManifest.js"
+      src="/_next/static/2jsHwvRG_GIoZEsVN0YTY/_buildManifest.js"
       async=""
     ></script>
     <script
-      src="/_next/static/VFRTtNh3lqdDA9jZUcF1t/_ssgManifest.js"
+      src="/_next/static/2jsHwvRG_GIoZEsVN0YTY/_ssgManifest.js"
       async=""
     ></script>
   </body>
Diff for link.html
@@ -7,7 +7,7 @@
     <noscript data-n-css=""></noscript>
     <link
       rel="preload"
-      href="/_next/static/chunks/main-65ade7e66a115d49634a.js"
+      href="/_next/static/chunks/main-3bf52b0e196831575094.js"
       as="script"
     />
     <link
@@ -22,7 +22,7 @@
     />
     <link
       rel="preload"
-      href="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.4826dee40eb7293b5cb0.js"
+      href="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.45a1f5b1723eaa79e7a0.js"
       as="script"
     />
     <link
@@ -48,7 +48,7 @@
         "props": { "pageProps": {} },
         "page": "/link",
         "query": {},
-        "buildId": "VFRTtNh3lqdDA9jZUcF1t",
+        "buildId": "2jsHwvRG_GIoZEsVN0YTY",
         "isFallback": false,
         "gip": true
       }
@@ -58,7 +58,7 @@
       src="/_next/static/chunks/polyfills-ff94e68042added27a93.js"
     ></script>
     <script
-      src="/_next/static/chunks/main-65ade7e66a115d49634a.js"
+      src="/_next/static/chunks/main-3bf52b0e196831575094.js"
       async=""
     ></script>
     <script
@@ -70,7 +70,7 @@
       async=""
     ></script>
     <script
-      src="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.4826dee40eb7293b5cb0.js"
+      src="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.45a1f5b1723eaa79e7a0.js"
       async=""
     ></script>
     <script
@@ -82,11 +82,11 @@
       async=""
     ></script>
     <script
-      src="/_next/static/VFRTtNh3lqdDA9jZUcF1t/_buildManifest.js"
+      src="/_next/static/2jsHwvRG_GIoZEsVN0YTY/_buildManifest.js"
       async=""
     ></script>
     <script
-      src="/_next/static/VFRTtNh3lqdDA9jZUcF1t/_ssgManifest.js"
+      src="/_next/static/2jsHwvRG_GIoZEsVN0YTY/_ssgManifest.js"
       async=""
     ></script>
   </body>
Diff for withRouter.html
@@ -7,7 +7,7 @@
     <noscript data-n-css=""></noscript>
     <link
       rel="preload"
-      href="/_next/static/chunks/main-65ade7e66a115d49634a.js"
+      href="/_next/static/chunks/main-3bf52b0e196831575094.js"
       as="script"
     />
     <link
@@ -22,7 +22,7 @@
     />
     <link
       rel="preload"
-      href="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.4826dee40eb7293b5cb0.js"
+      href="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.45a1f5b1723eaa79e7a0.js"
       as="script"
     />
     <link
@@ -43,7 +43,7 @@
         "props": { "pageProps": {} },
         "page": "/withRouter",
         "query": {},
-        "buildId": "VFRTtNh3lqdDA9jZUcF1t",
+        "buildId": "2jsHwvRG_GIoZEsVN0YTY",
         "isFallback": false,
         "gip": true
       }
@@ -53,7 +53,7 @@
       src="/_next/static/chunks/polyfills-ff94e68042added27a93.js"
     ></script>
     <script
-      src="/_next/static/chunks/main-65ade7e66a115d49634a.js"
+      src="/_next/static/chunks/main-3bf52b0e196831575094.js"
       async=""
     ></script>
     <script
@@ -65,7 +65,7 @@
       async=""
     ></script>
     <script
-      src="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.4826dee40eb7293b5cb0.js"
+      src="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.45a1f5b1723eaa79e7a0.js"
       async=""
     ></script>
     <script
@@ -77,11 +77,11 @@
       async=""
     ></script>
     <script
-      src="/_next/static/VFRTtNh3lqdDA9jZUcF1t/_buildManifest.js"
+      src="/_next/static/2jsHwvRG_GIoZEsVN0YTY/_buildManifest.js"
       async=""
     ></script>
     <script
-      src="/_next/static/VFRTtNh3lqdDA9jZUcF1t/_ssgManifest.js"
+      src="/_next/static/2jsHwvRG_GIoZEsVN0YTY/_ssgManifest.js"
       async=""
     ></script>
   </body>

Please sign in to comment.