Skip to content

Commit

Permalink
[dynamicIO] refine error message and docs (#71781)
Browse files Browse the repository at this point in the history
refines the error message for non-prerenderable holes while prerendering
as well as the docs
  • Loading branch information
gnoff authored Oct 24, 2024
1 parent 9d1cf5e commit 17f4291
Show file tree
Hide file tree
Showing 6 changed files with 291 additions and 178 deletions.
170 changes: 0 additions & 170 deletions errors/next-prerender-data.md

This file was deleted.

Loading

1 comment on commit 17f4291

@ijjk
Copy link
Member

@ijjk ijjk commented on 17f4291 Oct 24, 2024

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 Build (Increase detected ⚠️)
General Overall increase ⚠️
vercel/next.js canary v15.0.1 vercel/next.js canary Change
buildDuration 14.9s 20.4s ⚠️ +5.5s
buildDurationCached 14.9s 13.8s N/A
nodeModulesSize 373 MB 374 MB ⚠️ +140 kB
nextStartRea..uration (ms) 431ms 441ms N/A
Client Bundles (main, webpack) Overall increase ⚠️
vercel/next.js canary v15.0.1 vercel/next.js canary Change
1943-HASH.js gzip 44.6 kB 45.1 kB ⚠️ +567 B
5395-HASH.js gzip 5.26 kB 5.27 kB N/A
8365.HASH.js gzip 169 B 168 B N/A
99009dd2-HASH.js gzip 52.6 kB 52.6 kB N/A
framework-HASH.js gzip 57.4 kB 57.4 kB N/A
main-app-HASH.js gzip 236 B 231 B N/A
main-HASH.js gzip 32.8 kB 33 kB ⚠️ +271 B
webpack-HASH.js gzip 1.71 kB 1.71 kB N/A
Overall change 77.4 kB 78.2 kB ⚠️ +838 B
Legacy Client Bundles (polyfills)
vercel/next.js canary v15.0.1 vercel/next.js canary Change
polyfills-HASH.js gzip 39.4 kB 39.4 kB
Overall change 39.4 kB 39.4 kB
Client Pages
vercel/next.js canary v15.0.1 vercel/next.js canary Change
_app-HASH.js gzip 193 B 194 B N/A
_error-HASH.js gzip 191 B 192 B N/A
amp-HASH.js gzip 510 B 510 B
css-HASH.js gzip 343 B 342 B N/A
dynamic-HASH.js gzip 1.84 kB 1.84 kB
edge-ssr-HASH.js gzip 266 B 265 B N/A
head-HASH.js gzip 362 B 366 B N/A
hooks-HASH.js gzip 392 B 390 B N/A
image-HASH.js gzip 4.41 kB 4.41 kB
index-HASH.js gzip 269 B 268 B N/A
link-HASH.js gzip 2.78 kB 2.78 kB N/A
routerDirect..HASH.js gzip 329 B 328 B N/A
script-HASH.js gzip 396 B 395 B N/A
withRouter-HASH.js gzip 324 B 324 B
1afbb74e6ecf..834.css gzip 106 B 106 B
Overall change 7.19 kB 7.19 kB
Client Build Manifests
vercel/next.js canary v15.0.1 vercel/next.js canary Change
_buildManifest.js gzip 752 B 748 B N/A
Overall change 0 B 0 B
Rendered Page Sizes
vercel/next.js canary v15.0.1 vercel/next.js canary Change
index.html gzip 523 B 523 B
link.html gzip 537 B 537 B
withRouter.html gzip 519 B 518 B N/A
Overall change 1.06 kB 1.06 kB
Edge SSR bundle Size Overall increase ⚠️
vercel/next.js canary v15.0.1 vercel/next.js canary Change
edge-ssr.js gzip 128 kB 128 kB N/A
page.js gzip 187 kB 188 kB ⚠️ +142 B
Overall change 187 kB 188 kB ⚠️ +142 B
Middleware size
vercel/next.js canary v15.0.1 vercel/next.js canary Change
middleware-b..fest.js gzip 673 B 671 B N/A
middleware-r..fest.js gzip 156 B 155 B N/A
middleware.js gzip 31 kB 31 kB N/A
edge-runtime..pack.js gzip 844 B 844 B
Overall change 844 B 844 B
Next Runtimes Overall increase ⚠️
vercel/next.js canary v15.0.1 vercel/next.js canary Change
973-experime...dev.js gzip 322 B 322 B
973.runtime.dev.js gzip 314 B 314 B
app-page-exp...dev.js gzip 317 kB 317 kB ⚠️ +643 B
app-page-exp..prod.js gzip 121 kB 121 kB ⚠️ +117 B
app-page-tur..prod.js gzip 134 kB 134 kB ⚠️ +126 B
app-page-tur..prod.js gzip 129 kB 129 kB ⚠️ +113 B
app-page.run...dev.js gzip 307 kB 308 kB ⚠️ +620 B
app-page.run..prod.js gzip 117 kB 117 kB ⚠️ +113 B
app-route-ex...dev.js gzip 35.9 kB 35.9 kB N/A
app-route-ex..prod.js gzip 24.4 kB 24.4 kB N/A
app-route-tu..prod.js gzip 24.4 kB 24.4 kB N/A
app-route-tu..prod.js gzip 24.2 kB 24.2 kB N/A
app-route.ru...dev.js gzip 37.5 kB 37.6 kB N/A
app-route.ru..prod.js gzip 24.2 kB 24.2 kB N/A
pages-api-tu..prod.js gzip 9.61 kB 9.61 kB
pages-api.ru...dev.js gzip 11.4 kB 11.4 kB
pages-api.ru..prod.js gzip 9.61 kB 9.61 kB
pages-turbo...prod.js gzip 20.9 kB 20.9 kB
pages.runtim...dev.js gzip 26.5 kB 26.5 kB
pages.runtim..prod.js gzip 20.9 kB 20.9 kB
server.runti..prod.js gzip 58.3 kB 58.4 kB N/A
Overall change 1.23 MB 1.23 MB ⚠️ +1.73 kB
build cache Overall increase ⚠️
vercel/next.js canary v15.0.1 vercel/next.js canary Change
0.pack gzip 1.85 MB 1.85 MB ⚠️ +3.16 kB
index.pack gzip 143 kB 144 kB ⚠️ +1.02 kB
Overall change 1.99 MB 2 MB ⚠️ +4.18 kB
Diff details
Diff for page.js

Diff too large to display

Diff for middleware.js

Diff too large to display

Diff for edge-ssr.js

Diff too large to display

Diff for image-HASH.js
@@ -1,7 +1,7 @@
 (self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
   [8358],
   {
-    /***/ 8793: /***/ (
+    /***/ 6618: /***/ (
       __unused_webpack_module,
       __unused_webpack_exports,
       __webpack_require__
@@ -9,7 +9,7 @@
       (window.__NEXT_P = window.__NEXT_P || []).push([
         "/image",
         function () {
-          return __webpack_require__(3945);
+          return __webpack_require__(5123);
         },
       ]);
       if (false) {
@@ -18,7 +18,7 @@
       /***/
     },
 
-    /***/ 7153: /***/ (module, exports, __webpack_require__) => {
+    /***/ 6948: /***/ (module, exports, __webpack_require__) => {
       "use strict";
       /* __next_internal_client_entry_do_not_use__  cjs */
       Object.defineProperty(exports, "__esModule", {
@@ -40,17 +40,17 @@
         __webpack_require__(6763)
       );
       const _head = /*#__PURE__*/ _interop_require_default._(
-        __webpack_require__(7029)
+        __webpack_require__(1068)
       );
-      const _getimgprops = __webpack_require__(331);
-      const _imageconfig = __webpack_require__(5491);
-      const _imageconfigcontextsharedruntime = __webpack_require__(4571);
-      const _warnonce = __webpack_require__(8238);
-      const _routercontextsharedruntime = __webpack_require__(8161);
+      const _getimgprops = __webpack_require__(9800);
+      const _imageconfig = __webpack_require__(6731);
+      const _imageconfigcontextsharedruntime = __webpack_require__(4087);
+      const _warnonce = __webpack_require__(849);
+      const _routercontextsharedruntime = __webpack_require__(6186);
       const _imageloader = /*#__PURE__*/ _interop_require_default._(
-        __webpack_require__(1974)
+        __webpack_require__(2318)
       );
-      const _usemergedref = __webpack_require__(6823);
+      const _usemergedref = __webpack_require__(5472);
       // This is replaced by webpack define plugin
       const configEnv = {
         deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
@@ -371,7 +371,7 @@
       /***/
     },
 
-    /***/ 6823: /***/ (module, exports, __webpack_require__) => {
+    /***/ 5472: /***/ (module, exports, __webpack_require__) => {
       "use strict";
 
       Object.defineProperty(exports, "__esModule", {
@@ -432,7 +432,7 @@
       /***/
     },
 
-    /***/ 331: /***/ (
+    /***/ 9800: /***/ (
       __unused_webpack_module,
       exports,
       __webpack_require__
@@ -448,9 +448,9 @@
           return getImgProps;
         },
       });
-      const _warnonce = __webpack_require__(8238);
-      const _imageblursvg = __webpack_require__(5942);
-      const _imageconfig = __webpack_require__(5491);
+      const _warnonce = __webpack_require__(849);
+      const _imageblursvg = __webpack_require__(2102);
+      const _imageconfig = __webpack_require__(6731);
       const VALID_LOADING_VALUES =
         /* unused pure expression or super */ null && [
           "lazy",
@@ -824,7 +824,7 @@
       /***/
     },
 
-    /***/ 5942: /***/ (__unused_webpack_module, exports) => {
+    /***/ 2102: /***/ (__unused_webpack_module, exports) => {
       "use strict";
       /**
        * A shared function, used on both client and server, to generate a SVG blur placeholder.
@@ -879,7 +879,7 @@
       /***/
     },
 
-    /***/ 2903: /***/ (
+    /***/ 6938: /***/ (
       __unused_webpack_module,
       exports,
       __webpack_require__
@@ -906,10 +906,10 @@
         },
       });
       const _interop_require_default = __webpack_require__(9608);
-      const _getimgprops = __webpack_require__(331);
-      const _imagecomponent = __webpack_require__(7153);
+      const _getimgprops = __webpack_require__(9800);
+      const _imagecomponent = __webpack_require__(6948);
       const _imageloader = /*#__PURE__*/ _interop_require_default._(
-        __webpack_require__(1974)
+        __webpack_require__(2318)
       );
       function getImageProps(imgProps) {
         const { props } = (0, _getimgprops.getImgProps)(imgProps, {
@@ -941,7 +941,7 @@
       /***/
     },
 
-    /***/ 1974: /***/ (__unused_webpack_module, exports) => {
+    /***/ 2318: /***/ (__unused_webpack_module, exports) => {
       "use strict";
 
       Object.defineProperty(exports, "__esModule", {
@@ -976,7 +976,7 @@
       /***/
     },
 
-    /***/ 3945: /***/ (
+    /***/ 5123: /***/ (
       __unused_webpack_module,
       __webpack_exports__,
       __webpack_require__
@@ -993,8 +993,8 @@
 
       // EXTERNAL MODULE: ./node_modules/.pnpm/react@19.0.0-rc-1631855f-20241023/node_modules/react/jsx-runtime.js
       var jsx_runtime = __webpack_require__(5440);
-      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+main-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-1631855f-20241023_re_blpa6oodui5ltg54ckje4dl55a/node_modules/next/image.js
-      var next_image = __webpack_require__(2969);
+      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+diff-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-1631855f-20241023_re_5l7owhvpanghub2g6cqyzpxc5e/node_modules/next/image.js
+      var next_image = __webpack_require__(3906);
       var image_default = /*#__PURE__*/ __webpack_require__.n(next_image); // CONCATENATED MODULE: ./pages/nextjs.png
       /* harmony default export */ const nextjs = {
         src: "/_next/static/media/nextjs.cae0b805.png",
@@ -1024,12 +1024,12 @@
       /***/
     },
 
-    /***/ 2969: /***/ (
+    /***/ 3906: /***/ (
       module,
       __unused_webpack_exports,
       __webpack_require__
     ) => {
-      module.exports = __webpack_require__(2903);
+      module.exports = __webpack_require__(6938);
 
       /***/
     },
@@ -1039,7 +1039,7 @@
     /******/ var __webpack_exec__ = (moduleId) =>
       __webpack_require__((__webpack_require__.s = moduleId));
     /******/ __webpack_require__.O(0, [2888, 9774, 179], () =>
-      __webpack_exec__(8793)
+      __webpack_exec__(6618)
     );
     /******/ var __webpack_exports__ = __webpack_require__.O();
     /******/ _N_E = __webpack_exports__;
Diff for 1943-HASH.js

Diff too large to display

Diff for main-HASH.js

Diff too large to display

Diff for app-page-exp..ntime.dev.js
failed to diff
Diff for app-page-exp..time.prod.js

Diff too large to display

Diff for app-page-tur..time.prod.js

Diff too large to display

Diff for app-page-tur..time.prod.js

Diff too large to display

Diff for app-page.runtime.dev.js
failed to diff
Diff for app-page.runtime.prod.js

Diff too large to display

Diff for app-route-ex..ntime.dev.js

Diff too large to display

Diff for app-route-ex..time.prod.js

Diff too large to display

Diff for app-route-tu..time.prod.js

Diff too large to display

Diff for app-route-tu..time.prod.js

Diff too large to display

Diff for app-route.runtime.dev.js

Diff too large to display

Diff for app-route.ru..time.prod.js

Diff too large to display

Diff for server.runtime.prod.js

Diff too large to display

Please sign in to comment.