Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[devtools] save user config inside.next/cache#81807

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
devjiwonchoi wants to merge12 commits intocanary
base:canary
Choose a base branch
Loading
fromjiwon/07-18-_devtools_persist_user_config_inside_.next_cache_

Conversation

devjiwonchoi
Copy link
Member

@devjiwonchoidevjiwonchoi commentedJul 18, 2025
edited
Loading

Why?

It's common for developers to clearlocalStorage during development. Since the current DevTools config is saved there, this can hurt the developer experience whenlocalStorage is cleared for any reason.

To avoid this, we decided to store the DevTools config in the app’s cache directory, which is{distDir}/cache/. The content inside this directory is expected to remain during Next.js’ workflow (i.e.,next build) unless it's manually removed.

How?

Added the/__nextjs_devtools_config endpoint to handle config writing. The client sends a POST request to this endpoint, passing the config data. After the config is successfully written, HMR is triggered to update the client state accordingly.

@ijjkijjk added created-by: Next.js teamPRs by the Next.js team. type: next labelsJul 18, 2025
@devjiwonchoiGraphite App
Copy link
MemberAuthor

This stack of pull requests is managed byGraphite. Learn more aboutstacking.

@devjiwonchoidevjiwonchoiforce-pushed thejiwon/07-18-_devtools_persist_user_config_inside_.next_cache_ branch frombef1ee0 to0307e3eCompareJuly 18, 2025 16:15
@ijjk
Copy link
Member

ijjk commentedJul 18, 2025
edited
Loading

Tests Passed

@ijjk
Copy link
Member

ijjk commentedJul 18, 2025
edited
Loading

Stats from current PR

Default Build (Increase detected⚠️)
General Overall increase⚠️
vercel/next.js canaryvercel/next.js jiwon/07-18-devtools_persist_user_config_inside.next_cache_Change
buildDuration25.3s14.9sN/A
buildDurationCached14.3s12.3sN/A
nodeModulesSize441 MB442 MB⚠️ +564 kB
nextStartRea..uration (ms)387ms389msN/A
Client Bundles (main, webpack) Overall increase⚠️
vercel/next.js canaryvercel/next.js jiwon/07-18-devtools_persist_user_config_inside.next_cache_Change
194b18f3-HASH.js gzip54.1 kB54.1 kBN/A
2192.HASH.js gzip169 B169 B
4719-HASH.js gzip5.3 kB5.27 kBN/A
6236-HASH.js gzip44 kB44.6 kB⚠️ +551 B
framework-HASH.js gzip57.4 kB57.4 kBN/A
main-app-HASH.js gzip253 B259 BN/A
main-HASH.js gzip35.9 kB36 kB⚠️ +123 B
webpack-HASH.js gzip1.71 kB1.71 kBN/A
Overall change80.1 kB80.8 kB⚠️ +674 B
Legacy Client Bundles (polyfills)
vercel/next.js canaryvercel/next.js jiwon/07-18-devtools_persist_user_config_inside.next_cache_Change
polyfills-HASH.js gzip39.4 kB39.4 kB
Overall change39.4 kB39.4 kB
Client Pages
vercel/next.js canaryvercel/next.js jiwon/07-18-devtools_persist_user_config_inside.next_cache_Change
_app-HASH.js gzip193 B193 B
_error-HASH.js gzip182 B182 B
amp-HASH.js gzip501 B500 BN/A
css-HASH.js gzip335 B333 BN/A
dynamic-HASH.js gzip1.83 kB1.83 kBN/A
edge-ssr-HASH.js gzip256 B255 BN/A
head-HASH.js gzip350 B351 BN/A
hooks-HASH.js gzip382 B382 B
image-HASH.js gzip4.68 kB4.66 kBN/A
index-HASH.js gzip259 B259 B
link-HASH.js gzip2.52 kB2.52 kBN/A
routerDirect..HASH.js gzip319 B316 BN/A
script-HASH.js gzip386 B386 B
withRouter-HASH.js gzip316 B315 BN/A
1afbb74e6ecf..834.css gzip106 B106 B
Overall change1.51 kB1.51 kB
Client Build Manifests
vercel/next.js canaryvercel/next.js jiwon/07-18-devtools_persist_user_config_inside.next_cache_Change
_buildManifest.js gzip752 B752 B
Overall change752 B752 B
Rendered Page Sizes
vercel/next.js canaryvercel/next.js jiwon/07-18-devtools_persist_user_config_inside.next_cache_Change
index.html gzip524 B523 BN/A
link.html gzip538 B539 BN/A
withRouter.html gzip520 B520 B
Overall change520 B520 B
Edge SSR bundle Size Overall increase⚠️
vercel/next.js canaryvercel/next.js jiwon/07-18-devtools_persist_user_config_inside.next_cache_Change
edge-ssr.js gzip120 kB121 kB⚠️ +463 B
page.js gzip242 kB237 kBN/A
Overall change120 kB121 kB⚠️ +463 B
Middleware size Overall increase⚠️
vercel/next.js canaryvercel/next.js jiwon/07-18-devtools_persist_user_config_inside.next_cache_Change
middleware-b..fest.js gzip676 B674 BN/A
middleware-r..fest.js gzip155 B157 BN/A
middleware.js gzip32.2 kB32.4 kB⚠️ +222 B
edge-runtime..pack.js gzip853 B853 B
Overall change33.1 kB33.3 kB⚠️ +222 B
Next Runtimes
vercel/next.js canaryvercel/next.js jiwon/07-18-devtools_persist_user_config_inside.next_cache_Change
app-page-exp...dev.js gzip278 kB278 kBN/A
app-page-exp..prod.js gzip154 kB154 kB
app-page-tur...dev.js gzip278 kB278 kBN/A
app-page-tur..prod.js gzip154 kB154 kB
app-page-tur...dev.js gzip263 kB263 kBN/A
app-page-tur..prod.js gzip148 kB148 kB
app-page.run...dev.js gzip263 kB263 kBN/A
app-page.run..prod.js gzip148 kB148 kB
app-route-ex...dev.js gzip68.9 kB68.9 kB
app-route-ex..prod.js gzip48.5 kB48.5 kB
app-route-tu...dev.js gzip68.9 kB68.9 kB
app-route-tu..prod.js gzip48.5 kB48.5 kB
app-route-tu...dev.js gzip68.3 kB68.3 kB
app-route-tu..prod.js gzip48.1 kB48.1 kB
app-route.ru...dev.js gzip68.3 kB68.3 kB
app-route.ru..prod.js gzip48.1 kB48.1 kB
dist_client_...dev.js gzip326 B326 B
dist_client_...dev.js gzip328 B328 B
dist_client_...dev.js gzip320 B320 B
dist_client_...dev.js gzip318 B318 B
pages-api-tu...dev.js gzip42.1 kB42.1 kB
pages-api-tu..prod.js gzip32.5 kB32.5 kB
pages-api.ru...dev.js gzip42.1 kB42.1 kB
pages-api.ru..prod.js gzip32.4 kB32.4 kB
pages-turbo....dev.js gzip52 kB52 kB
pages-turbo...prod.js gzip39.8 kB39.8 kB
pages.runtim...dev.js gzip52.2 kB52.2 kB
pages.runtim..prod.js gzip39.9 kB39.9 kB
server.runti..prod.js gzip64.3 kB64.3 kB
Overall change1.47 MB1.47 MB
build cache
vercel/next.js canaryvercel/next.js jiwon/07-18-devtools_persist_user_config_inside.next_cache_Change
0.pack gzip3.9 MB3.9 MBN/A
index.pack gzip90.2 kB89.3 kBN/A
Overall change0 B0 B
Diff details
Diff forpage.js

Diff too large to display

Diff formiddleware.js

Diff too large to display

Diff foredge-ssr.js
failed to diff
Diff forcss-HASH.js
@@ -1,7 +1,7 @@ (self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([   [9813],   {-    /***/ 1586: /***/ (+    /***/ 2628: /***/ (       __unused_webpack_module,       __unused_webpack_exports,       __webpack_require__@@ -9,7 +9,7 @@       (window.__NEXT_P = window.__NEXT_P || []).push([         "/css",         function () {-          return __webpack_require__(4362);+          return __webpack_require__(8707);         },       ]);       if (false) {@@ -18,14 +18,7 @@       /***/     },-    /***/ 4350: /***/ (module) => {-      // extracted by mini-css-extract-plugin-      module.exports = { helloWorld: "css_helloWorld__aUdUq" };--      /***/-    },--    /***/ 4362: /***/ (+    /***/ 8707: /***/ (       __unused_webpack_module,       __webpack_exports__,       __webpack_require__@@ -39,7 +32,7 @@       /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ =         __webpack_require__(5640);       /* harmony import */ var _css_module_css__WEBPACK_IMPORTED_MODULE_1__ =-        __webpack_require__(4350);+        __webpack_require__(9080);       /* harmony import */ var _css_module_css__WEBPACK_IMPORTED_MODULE_1___default =         /*#__PURE__*/ __webpack_require__.n(           _css_module_css__WEBPACK_IMPORTED_MODULE_1__@@ -58,13 +51,20 @@        /***/     },++    /***/ 9080: /***/ (module) => {+      // extracted by mini-css-extract-plugin+      module.exports = { helloWorld: "css_helloWorld__aUdUq" };++      /***/+    },   },   /******/ (__webpack_require__) => {     // webpackRuntimeModules     /******/ var __webpack_exec__ = (moduleId) =>       __webpack_require__((__webpack_require__.s = moduleId));     /******/ __webpack_require__.O(0, [636, 6593, 8792], () =>-      __webpack_exec__(1586)+      __webpack_exec__(2628)     );     /******/ var __webpack_exports__ = __webpack_require__.O();     /******/ _N_E = __webpack_exports__;
Diff fordynamic-HASH.js
@@ -1,17 +1,117 @@ (self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([   [2291],   {-    /***/ 283: /***/ (+    /***/ 2001: /***/ (+      __unused_webpack_module,+      __webpack_exports__,+      __webpack_require__+    ) => {+      "use strict";+      __webpack_require__.r(__webpack_exports__);+      /* harmony export */ __webpack_require__.d(__webpack_exports__, {+        /* harmony export */ __N_SSP: () => /* binding */ __N_SSP,+        /* harmony export */ default: () => __WEBPACK_DEFAULT_EXPORT__,+        /* harmony export */+      });+      /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ =+        __webpack_require__(5640);+      /* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_1__ =+        __webpack_require__(9553);+      /* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_1___default =+        /*#__PURE__*/ __webpack_require__.n(+          next_dynamic__WEBPACK_IMPORTED_MODULE_1__+        );++      const DynamicHello = next_dynamic__WEBPACK_IMPORTED_MODULE_1___default()(+        () =>+          __webpack_require__+            .e(/* import() */ 8042)+            .then(__webpack_require__.bind(__webpack_require__, 8042))+            .then((mod) => mod.Hello),+        {+          loadableGenerated: {+            webpack: () => [/*require.resolve*/ 8042],+          },+        }+      );+      const Page = () =>+        /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(+          react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment,+          {+            children: [+              /*#__PURE__*/ (0,+              react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("p", {+                children: "testing next/dynamic size",+              }),+              /*#__PURE__*/ (0,+              react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(+                DynamicHello,+                {}+              ),+            ],+          }+        );+      var __N_SSP = true;+      /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = Page;++      /***/+    },++    /***/ 2976: /***/ (+      __unused_webpack_module,+      __unused_webpack_exports,+      __webpack_require__+    ) => {+      (window.__NEXT_P = window.__NEXT_P || []).push([+        "/dynamic",+        function () {+          return __webpack_require__(2001);+        },+      ]);+      if (false) {+      }++      /***/+    },++    /***/ 7807: /***/ (+      __unused_webpack_module,+      exports,+      __webpack_require__+    ) => {+      "use strict";+      /* __next_internal_client_entry_do_not_use__  cjs */+      Object.defineProperty(exports, "__esModule", {+        value: true,+      });+      Object.defineProperty(exports, "LoadableContext", {+        enumerable: true,+        get: function () {+          return LoadableContext;+        },+      });+      const _interop_require_default = __webpack_require__(1532);+      const _react = /*#__PURE__*/ _interop_require_default._(+        __webpack_require__(148)+      );+      const LoadableContext = _react.default.createContext(null);+      if (false) {+      } //# sourceMappingURL=loadable-context.shared-runtime.js.map++      /***/+    },++    /***/ 9553: /***/ (       module,       __unused_webpack_exports,       __webpack_require__     ) => {-      module.exports = __webpack_require__(6990);+      module.exports = __webpack_require__(9986);        /***/     },-    /***/ 505: /***/ (+    /***/ 9829: /***/ (       __unused_webpack_module,       exports,       __webpack_require__@@ -53,7 +153,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE       const _react = /*#__PURE__*/ _interop_require_default._(         __webpack_require__(148)       );-      const _loadablecontextsharedruntime = __webpack_require__(6179);+      const _loadablecontextsharedruntime = __webpack_require__(7807);       function resolve(obj) {         return obj && obj.default ? obj.default : obj;       }@@ -288,90 +388,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE       /***/     },-    /***/ 5703: /***/ (-      __unused_webpack_module,-      __webpack_exports__,-      __webpack_require__-    ) => {-      "use strict";-      __webpack_require__.r(__webpack_exports__);-      /* harmony export */ __webpack_require__.d(__webpack_exports__, {-        /* harmony export */ __N_SSP: () => /* binding */ __N_SSP,-        /* harmony export */ default: () => __WEBPACK_DEFAULT_EXPORT__,-        /* harmony export */-      });-      /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ =-        __webpack_require__(5640);-      /* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_1__ =-        __webpack_require__(283);-      /* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_1___default =-        /*#__PURE__*/ __webpack_require__.n(-          next_dynamic__WEBPACK_IMPORTED_MODULE_1__-        );--      const DynamicHello = next_dynamic__WEBPACK_IMPORTED_MODULE_1___default()(-        () =>-          __webpack_require__-            .e(/* import() */ 2192)-            .then(__webpack_require__.bind(__webpack_require__, 2192))-            .then((mod) => mod.Hello),-        {-          loadableGenerated: {-            webpack: () => [/*require.resolve*/ 2192],-          },-        }-      );-      const Page = () =>-        /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(-          react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment,-          {-            children: [-              /*#__PURE__*/ (0,-              react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("p", {-                children: "testing next/dynamic size",-              }),-              /*#__PURE__*/ (0,-              react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(-                DynamicHello,-                {}-              ),-            ],-          }-        );-      var __N_SSP = true;-      /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = Page;--      /***/-    },--    /***/ 6179: /***/ (-      __unused_webpack_module,-      exports,-      __webpack_require__-    ) => {-      "use strict";-      /* __next_internal_client_entry_do_not_use__  cjs */-      Object.defineProperty(exports, "__esModule", {-        value: true,-      });-      Object.defineProperty(exports, "LoadableContext", {-        enumerable: true,-        get: function () {-          return LoadableContext;-        },-      });-      const _interop_require_default = __webpack_require__(1532);-      const _react = /*#__PURE__*/ _interop_require_default._(-        __webpack_require__(148)-      );-      const LoadableContext = _react.default.createContext(null);-      if (false) {-      } //# sourceMappingURL=loadable-context.shared-runtime.js.map--      /***/-    },--    /***/ 6990: /***/ (module, exports, __webpack_require__) => {+    /***/ 9986: /***/ (module, exports, __webpack_require__) => {       "use strict";        Object.defineProperty(exports, "__esModule", {@@ -404,7 +421,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE         __webpack_require__(148)       );       const _loadablesharedruntime = /*#__PURE__*/ _interop_require_default._(-        __webpack_require__(505)+        __webpack_require__(9829)       );       const isServerSide = "object" === "undefined";       // Normalize loader to return the module as form { default: Component } for `React.lazy`.@@ -504,30 +521,13 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE        /***/     },--    /***/ 9254: /***/ (-      __unused_webpack_module,-      __unused_webpack_exports,-      __webpack_require__-    ) => {-      (window.__NEXT_P = window.__NEXT_P || []).push([-        "/dynamic",-        function () {-          return __webpack_require__(5703);-        },-      ]);-      if (false) {-      }--      /***/-    },   },   /******/ (__webpack_require__) => {     // webpackRuntimeModules     /******/ var __webpack_exec__ = (moduleId) =>       __webpack_require__((__webpack_require__.s = moduleId));     /******/ __webpack_require__.O(0, [636, 6593, 8792], () =>-      __webpack_exec__(9254)+      __webpack_exec__(2976)     );     /******/ var __webpack_exports__ = __webpack_require__.O();     /******/ _N_E = __webpack_exports__;
Diff forhooks-HASH.js
@@ -1,24 +1,7 @@ (self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([   [9804],   {-    /***/ 1664: /***/ (-      __unused_webpack_module,-      __unused_webpack_exports,-      __webpack_require__-    ) => {-      (window.__NEXT_P = window.__NEXT_P || []).push([-        "/hooks",-        function () {-          return __webpack_require__(6130);-        },-      ]);-      if (false) {-      }--      /***/-    },--    /***/ 6130: /***/ (+    /***/ 4756: /***/ (       __unused_webpack_module,       __webpack_exports__,       __webpack_require__@@ -76,13 +59,30 @@        /***/     },++    /***/ 5426: /***/ (+      __unused_webpack_module,+      __unused_webpack_exports,+      __webpack_require__+    ) => {+      (window.__NEXT_P = window.__NEXT_P || []).push([+        "/hooks",+        function () {+          return __webpack_require__(4756);+        },+      ]);+      if (false) {+      }++      /***/+    },   },   /******/ (__webpack_require__) => {     // webpackRuntimeModules     /******/ var __webpack_exec__ = (moduleId) =>       __webpack_require__((__webpack_require__.s = moduleId));     /******/ __webpack_require__.O(0, [636, 6593, 8792], () =>-      __webpack_exec__(1664)+      __webpack_exec__(5426)     );     /******/ var __webpack_exports__ = __webpack_require__.O();     /******/ _N_E = __webpack_exports__;
Diff forimage-HASH.js
@@ -1,7 +1,7 @@ (self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([   [2983],   {-    /***/ 2198: /***/ (+    /***/ 264: /***/ (       __unused_webpack_module,       __unused_webpack_exports,       __webpack_require__@@ -9,7 +9,7 @@       (window.__NEXT_P = window.__NEXT_P || []).push([         "/image",         function () {-          return __webpack_require__(3444);+          return __webpack_require__(3594);         },       ]);       if (false) {@@ -18,7 +18,190 @@       /***/     },-    /***/ 2514: /***/ (+    /***/ 1206: /***/ (__unused_webpack_module, exports) => {+      "use strict";++      Object.defineProperty(exports, "__esModule", {+        value: true,+      });+      Object.defineProperty(exports, "default", {+        enumerable: true,+        get: function () {+          return _default;+        },+      });+      const DEFAULT_Q = 75;+      function defaultLoader(param) {+        let { config, src, width, quality } = param;+        var _config_qualities;+        if (false) {+        }+        const q =+          quality ||+          ((_config_qualities = config.qualities) == null+            ? void 0+            : _config_qualities.reduce((prev, cur) =>+                Math.abs(cur - DEFAULT_Q) < Math.abs(prev - DEFAULT_Q)+                  ? cur+                  : prev+              )) ||+          DEFAULT_Q;+        return (+          config.path ++          "?url=" ++          encodeURIComponent(src) ++          "&w=" ++          width ++          "&q=" ++          q ++          (src.startsWith("/_next/static/media/") && false ? 0 : "")+        );+      }+      // We use this to determine if the import is the default loader+      // or a custom loader defined by the user in next.config.js+      defaultLoader.__next_img_default = true;+      const _default = defaultLoader; //# sourceMappingURL=image-loader.js.map++      /***/+    },++    /***/ 1765: /***/ (module, exports, __webpack_require__) => {+      "use strict";++      Object.defineProperty(exports, "__esModule", {+        value: true,+      });+      Object.defineProperty(exports, "useMergedRef", {+        enumerable: true,+        get: function () {+          return useMergedRef;+        },+      });+      const _react = __webpack_require__(148);+      function useMergedRef(refA, refB) {+        const cleanupA = (0, _react.useRef)(null);+        const cleanupB = (0, _react.useRef)(null);+        // NOTE: In theory, we could skip the wrapping if only one of the refs is non-null.+        // (this happens often if the user doesn't pass a ref to Link/Form/Image)+        // But this can cause us to leak a cleanup-ref into user code (e.g. via `<Link legacyBehavior>`),+        // and the user might pass that ref into ref-merging library that doesn't support cleanup refs+        // (because it hasn't been updated for React 19)+        // which can then cause things to blow up, because a cleanup-returning ref gets called with `null`.+        // So in practice, it's safer to be defensive and always wrap the ref, even on React 19.+        return (0, _react.useCallback)(+          (current) => {+            if (current === null) {+              const cleanupFnA = cleanupA.current;+              if (cleanupFnA) {+                cleanupA.current = null;+                cleanupFnA();+              }+              const cleanupFnB = cleanupB.current;+              if (cleanupFnB) {+                cleanupB.current = null;+                cleanupFnB();+              }+            } else {+              if (refA) {+                cleanupA.current = applyRef(refA, current);+              }+              if (refB) {+                cleanupB.current = applyRef(refB, current);+              }+            }+          },+          [refA, refB]+        );+      }+      function applyRef(refA, current) {+        if (typeof refA === "function") {+          const cleanup = refA(current);+          if (typeof cleanup === "function") {+            return cleanup;+          } else {+            return () => refA(null);+          }+        } else {+          refA.current = current;+          return () => {+            refA.current = null;+          };+        }+      }+      if (+        (typeof exports.default === "function" ||+          (typeof exports.default === "object" && exports.default !== null)) &&+        typeof exports.default.__esModule === "undefined"+      ) {+        Object.defineProperty(exports.default, "__esModule", {+          value: true,+        });+        Object.assign(exports.default, exports);+        module.exports = exports.default;+      } //# sourceMappingURL=use-merged-ref.js.map++      /***/+    },++    /***/ 3353: /***/ (+      module,+      __unused_webpack_exports,+      __webpack_require__+    ) => {+      module.exports = __webpack_require__(5526);++      /***/+    },++    /***/ 3594: /***/ (+      __unused_webpack_module,+      __webpack_exports__,+      __webpack_require__+    ) => {+      "use strict";+      // ESM COMPAT FLAG+      __webpack_require__.r(__webpack_exports__);++      // EXPORTS+      __webpack_require__.d(__webpack_exports__, {+        __N_SSP: () => /* binding */ __N_SSP,+        default: () => /* binding */ pages_image,+      });++      // EXTERNAL MODULE: ./node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.js+      var jsx_runtime = __webpack_require__(5640);+      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+diff-repo+packages+next+next-packed.tgz_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/image.js+      var next_image = __webpack_require__(3353);+      var image_default = /*#__PURE__*/ __webpack_require__.n(next_image); // ./pages/nextjs.png+      /* harmony default export */ const nextjs = {+        src: "/_next/static/media/nextjs.cae0b805.png",+        height: 1347,+        width: 1626,+        blurDataURL:+          "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAHCAMAAAACh/xsAAAAD1BMVEX////x8fH6+vrb29vo6Oh8o70bAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAH0lEQVR4nGNgwARMjIyMjCAGCzMzMwsTRISJCcRABwAEcAAkLCQfgAAAAABJRU5ErkJggg==",+        blurWidth: 8,+        blurHeight: 7,+      }; // ./pages/image.js+      function ImagePage(props) {+        return /*#__PURE__*/ (0, jsx_runtime.jsxs)(jsx_runtime.Fragment, {+          children: [+            /*#__PURE__*/ (0, jsx_runtime.jsx)("h1", {+              children: "next/image example",+            }),+            /*#__PURE__*/ (0, jsx_runtime.jsx)(image_default(), {+              src: nextjs,+              placeholder: "blur",+            }),+          ],+        });+      }+      var __N_SSP = true;+      /* harmony default export */ const pages_image = ImagePage;++      /***/+    },++    /***/ 3854: /***/ (       __unused_webpack_module,       exports,       __webpack_require__@@ -34,9 +217,9 @@           return getImgProps;         },       });-      const _warnonce = __webpack_require__(5127);-      const _imageblursvg = __webpack_require__(4287);-      const _imageconfig = __webpack_require__(2795);+      const _warnonce = __webpack_require__(3603);+      const _imageblursvg = __webpack_require__(7835);+      const _imageconfig = __webpack_require__(6799);       const VALID_LOADING_VALUES =         /* unused pure expression or super */ null && [           "lazy",@@ -463,55 +646,69 @@       /***/     },-    /***/ 3444: /***/ (+    /***/ 5526: /***/ (       __unused_webpack_module,-      __webpack_exports__,+      exports,       __webpack_require__     ) => {       "use strict";-      // ESM COMPAT FLAG-      __webpack_require__.r(__webpack_exports__);-      // EXPORTS-      __webpack_require__.d(__webpack_exports__, {-        __N_SSP: () => /* binding */ __N_SSP,-        default: () => /* binding */ pages_image,+      Object.defineProperty(exports, "__esModule", {+        value: true,       });--      // EXTERNAL MODULE: ./node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.js-      var jsx_runtime = __webpack_require__(5640);-      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+main-repo+packages+next+next-packed.tgz_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/image.js-      var next_image = __webpack_require__(6359);-      var image_default = /*#__PURE__*/ __webpack_require__.n(next_image); // ./pages/nextjs.png-      /* harmony default export */ const nextjs = {-        src: "/_next/static/media/nextjs.cae0b805.png",-        height: 1347,-        width: 1626,-        blurDataURL:-          "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAHCAMAAAACh/xsAAAAD1BMVEX////x8fH6+vrb29vo6Oh8o70bAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAH0lEQVR4nGNgwARMjIyMjCAGCzMzMwsTRISJCcRABwAEcAAkLCQfgAAAAABJRU5ErkJggg==",-        blurWidth: 8,-        blurHeight: 7,-      }; // ./pages/image.js-      function ImagePage(props) {-        return /*#__PURE__*/ (0, jsx_runtime.jsxs)(jsx_runtime.Fragment, {-          children: [-            /*#__PURE__*/ (0, jsx_runtime.jsx)("h1", {-              children: "next/image example",-            }),-            /*#__PURE__*/ (0, jsx_runtime.jsx)(image_default(), {-              src: nextjs,-              placeholder: "blur",-            }),-          ],+      0 && 0;+      function _export(target, all) {+        for (var name in all)+          Object.defineProperty(target, name, {+            enumerable: true,+            get: all[name],+          });+      }+      _export(exports, {+        default: function () {+          return _default;+        },+        getImageProps: function () {+          return getImageProps;+        },+      });+      const _interop_require_default = __webpack_require__(1532);+      const _getimgprops = __webpack_require__(3854);+      const _imagecomponent = __webpack_require__(8350);+      const _imageloader = /*#__PURE__*/ _interop_require_default._(+        __webpack_require__(1206)+      );+      function getImageProps(imgProps) {+        const { props } = (0, _getimgprops.getImgProps)(imgProps, {+          defaultLoader: _imageloader.default,+          // This is replaced by webpack define plugin+          imgConf: {+            deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],+            imageSizes: [16, 32, 48, 64, 96, 128, 256, 384],+            path: "/_next/image",+            loader: "default",+            dangerouslyAllowSVG: false,+            unoptimized: false,+          },         });+        // Normally we don't care about undefined props because we pass to JSX,+        // but this exported function could be used by the end user for anything+        // so we delete undefined props to clean it up a little.+        for (const [key, value] of Object.entries(props)) {+          if (value === undefined) {+            delete props[key];+          }+        }+        return {+          props,+        };       }-      var __N_SSP = true;-      /* harmony default export */ const pages_image = ImagePage;+      const _default = _imagecomponent.Image; //# sourceMappingURL=image-external.js.map        /***/     },-    /***/ 4287: /***/ (__unused_webpack_module, exports) => {+    /***/ 7835: /***/ (__unused_webpack_module, exports) => {       "use strict";       /**        * A shared function, used on both client and server, to generate a SVG blur placeholder.@@ -566,85 +763,7 @@       /***/     },-    /***/ 4985: /***/ (module, exports, __webpack_require__) => {-      "use strict";--      Object.defineProperty(exports, "__esModule", {-        value: true,-      });-      Object.defineProperty(exports, "useMergedRef", {-        enumerable: true,-        get: function () {-          return useMergedRef;-        },-      });-      const _react = __webpack_require__(148);-      function useMergedRef(refA, refB) {-        const cleanupA = (0, _react.useRef)(null);-        const cleanupB = (0, _react.useRef)(null);-        // NOTE: In theory, we could skip the wrapping if only one of the refs is non-null.-        // (this happens often if the user doesn't pass a ref to Link/Form/Image)-        // But this can cause us to leak a cleanup-ref into user code (e.g. via `<Link legacyBehavior>`),-        // and the user might pass that ref into ref-merging library that doesn't support cleanup refs-        // (because it hasn't been updated for React 19)-        // which can then cause things to blow up, because a cleanup-returning ref gets called with `null`.-        // So in practice, it's safer to be defensive and always wrap the ref, even on React 19.-        return (0, _react.useCallback)(-          (current) => {-            if (current === null) {-              const cleanupFnA = cleanupA.current;-              if (cleanupFnA) {-                cleanupA.current = null;-                cleanupFnA();-              }-              const cleanupFnB = cleanupB.current;-              if (cleanupFnB) {-                cleanupB.current = null;-                cleanupFnB();-              }-            } else {-              if (refA) {-                cleanupA.current = applyRef(refA, current);-              }-              if (refB) {-                cleanupB.current = applyRef(refB, current);-              }-            }-          },-          [refA, refB]-        );-      }-      function applyRef(refA, current) {-        if (typeof refA === "function") {-          const cleanup = refA(current);-          if (typeof cleanup === "function") {-            return cleanup;-          } else {-            return () => refA(null);-          }-        } else {-          refA.current = current;-          return () => {-            refA.current = null;-          };-        }-      }-      if (-        (typeof exports.default === "function" ||-          (typeof exports.default === "object" && exports.default !== null)) &&-        typeof exports.default.__esModule === "undefined"-      ) {-        Object.defineProperty(exports.default, "__esModule", {-          value: true,-        });-        Object.assign(exports.default, exports);-        module.exports = exports.default;-      } //# sourceMappingURL=use-merged-ref.js.map--      /***/-    },--    /***/ 5898: /***/ (module, exports, __webpack_require__) => {+    /***/ 8350: /***/ (module, exports, __webpack_require__) => {       "use strict";       /* __next_internal_client_entry_do_not_use__  cjs */       Object.defineProperty(exports, "__esModule", {@@ -666,17 +785,17 @@         __webpack_require__(7897)       );       const _head = /*#__PURE__*/ _interop_require_default._(-        __webpack_require__(5207)+        __webpack_require__(8843)       );-      const _getimgprops = __webpack_require__(2514);-      const _imageconfig = __webpack_require__(2795);-      const _imageconfigcontextsharedruntime = __webpack_require__(2349);-      const _warnonce = __webpack_require__(5127);-      const _routercontextsharedruntime = __webpack_require__(3556);+      const _getimgprops = __webpack_require__(3854);+      const _imageconfig = __webpack_require__(6799);+      const _imageconfigcontextsharedruntime = __webpack_require__(3905);+      const _warnonce = __webpack_require__(3603);+      const _routercontextsharedruntime = __webpack_require__(6712);       const _imageloader = /*#__PURE__*/ _interop_require_default._(-        __webpack_require__(5970)+        __webpack_require__(1206)       );-      const _usemergedref = __webpack_require__(4985);+      const _usemergedref = __webpack_require__(1765);       // This is replaced by webpack define plugin       const configEnv = {         deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],@@ -1001,132 +1120,13 @@        /***/     },--    /***/ 5970: /***/ (__unused_webpack_module, exports) => {-      "use strict";--      Object.defineProperty(exports, "__esModule", {-        value: true,-      });-      Object.defineProperty(exports, "default", {-        enumerable: true,-        get: function () {-          return _default;-        },-      });-      const DEFAULT_Q = 75;-      function defaultLoader(param) {-        let { config, src, width, quality } = param;-        var _config_qualities;-        if (false) {-        }-        const q =-          quality ||-          ((_config_qualities = config.qualities) == null-            ? void 0-            : _config_qualities.reduce((prev, cur) =>-                Math.abs(cur - DEFAULT_Q) < Math.abs(prev - DEFAULT_Q)-                  ? cur-                  : prev-              )) ||-          DEFAULT_Q;-        return (-          config.path +-          "?url=" +-          encodeURIComponent(src) +-          "&w=" +-          width +-          "&q=" +-          q +-          (src.startsWith("/_next/static/media/") && false ? 0 : "")-        );-      }-      // We use this to determine if the import is the default loader-      // or a custom loader defined by the user in next.config.js-      defaultLoader.__next_img_default = true;-      const _default = defaultLoader; //# sourceMappingURL=image-loader.js.map--      /***/-    },--    /***/ 6359: /***/ (-      module,-      __unused_webpack_exports,-      __webpack_require__-    ) => {-      module.exports = __webpack_require__(8986);--      /***/-    },--    /***/ 8986: /***/ (-      __unused_webpack_module,-      exports,-      __webpack_require__-    ) => {-      "use strict";--      Object.defineProperty(exports, "__esModule", {-        value: true,-      });-      0 && 0;-      function _export(target, all) {-        for (var name in all)-          Object.defineProperty(target, name, {-            enumerable: true,-            get: all[name],-          });-      }-      _export(exports, {-        default: function () {-          return _default;-        },-        getImageProps: function () {-          return getImageProps;-        },-      });-      const _interop_require_default = __webpack_require__(1532);-      const _getimgprops = __webpack_require__(2514);-      const _imagecomponent = __webpack_require__(5898);-      const _imageloader = /*#__PURE__*/ _interop_require_default._(-        __webpack_require__(5970)-      );-      function getImageProps(imgProps) {-        const { props } = (0, _getimgprops.getImgProps)(imgProps, {-          defaultLoader: _imageloader.default,-          // This is replaced by webpack define plugin-          imgConf: {-            deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],-            imageSizes: [16, 32, 48, 64, 96, 128, 256, 384],-            path: "/_next/image",-            loader: "default",-            dangerouslyAllowSVG: false,-            unoptimized: false,-          },-        });-        // Normally we don't care about undefined props because we pass to JSX,-        // but this exported function could be used by the end user for anything-        // so we delete undefined props to clean it up a little.-        for (const [key, value] of Object.entries(props)) {-          if (value === undefined) {-            delete props[key];-          }-        }-        return {-          props,-        };-      }-      const _default = _imagecomponent.Image; //# sourceMappingURL=image-external.js.map--      /***/-    },   },   /******/ (__webpack_require__) => {     // webpackRuntimeModules     /******/ var __webpack_exec__ = (moduleId) =>       __webpack_require__((__webpack_require__.s = moduleId));     /******/ __webpack_require__.O(0, [636, 6593, 8792], () =>-      __webpack_exec__(2198)+      __webpack_exec__(264)     );     /******/ var __webpack_exports__ = __webpack_require__.O();     /******/ _N_E = __webpack_exports__;
Diff forindex-HASH.js
@@ -1,7 +1,24 @@ (self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([   [3332],   {-    /***/ 9418: /***/ (+    /***/ 8230: /***/ (+      __unused_webpack_module,+      __unused_webpack_exports,+      __webpack_require__+    ) => {+      (window.__NEXT_P = window.__NEXT_P || []).push([+        "/",+        function () {+          return __webpack_require__(8696);+        },+      ]);+      if (false) {+      }++      /***/+    },++    /***/ 8696: /***/ (       __unused_webpack_module,       __webpack_exports__,       __webpack_require__@@ -19,30 +36,13 @@        /***/     },--    /***/ 9532: /***/ (-      __unused_webpack_module,-      __unused_webpack_exports,-      __webpack_require__-    ) => {-      (window.__NEXT_P = window.__NEXT_P || []).push([-        "/",-        function () {-          return __webpack_require__(9418);-        },-      ]);-      if (false) {-      }--      /***/-    },   },   /******/ (__webpack_require__) => {     // webpackRuntimeModules     /******/ var __webpack_exec__ = (moduleId) =>       __webpack_require__((__webpack_require__.s = moduleId));     /******/ __webpack_require__.O(0, [636, 6593, 8792], () =>-      __webpack_exec__(9532)+      __webpack_exec__(8230)     );     /******/ var __webpack_exports__ = __webpack_require__.O();     /******/ _N_E = __webpack_exports__;
Diff forlink-HASH.js
@@ -1,125 +1,7 @@ (self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([   [4672],   {-    /***/ 1854: /***/ (-      __unused_webpack_module,-      __webpack_exports__,-      __webpack_require__-    ) => {-      "use strict";-      __webpack_require__.r(__webpack_exports__);-      /* harmony export */ __webpack_require__.d(__webpack_exports__, {-        /* harmony export */ __N_SSP: () => /* binding */ __N_SSP,-        /* harmony export */ default: () => __WEBPACK_DEFAULT_EXPORT__,-        /* harmony export */-      });-      /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ =-        __webpack_require__(5640);-      /* harmony import */ var next_link__WEBPACK_IMPORTED_MODULE_1__ =-        __webpack_require__(8770);-      /* harmony import */ var next_link__WEBPACK_IMPORTED_MODULE_1___default =-        /*#__PURE__*/ __webpack_require__.n(-          next_link__WEBPACK_IMPORTED_MODULE_1__-        );--      function aLink(props) {-        return /*#__PURE__*/ (0,-        react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {-          children: [-            /*#__PURE__*/ (0,-            react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("h3", {-              children: "A Link page!",-            }),-            /*#__PURE__*/ (0,-            react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(-              next_link__WEBPACK_IMPORTED_MODULE_1___default(),-              {-                href: "/",-                children: "Go to /",-              }-            ),-          ],-        });-      }-      var __N_SSP = true;-      /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = aLink;--      /***/-    },--    /***/ 3199: /***/ (__unused_webpack_module, exports) => {-      "use strict";--      Object.defineProperty(exports, "__esModule", {-        value: true,-      });-      Object.defineProperty(exports, "errorOnce", {-        enumerable: true,-        get: function () {-          return errorOnce;-        },-      });-      let errorOnce = (_) => {};-      if (false) {-      } //# sourceMappingURL=error-once.js.map--      /***/-    },--    /***/ 3568: /***/ (-      __unused_webpack_module,-      __unused_webpack_exports,-      __webpack_require__-    ) => {-      (window.__NEXT_P = window.__NEXT_P || []).push([-        "/link",-        function () {-          return __webpack_require__(1854);-        },-      ]);-      if (false) {-      }--      /***/-    },--    /***/ 3857: /***/ (module, exports, __webpack_require__) => {-      "use strict";--      Object.defineProperty(exports, "__esModule", {-        value: true,-      });-      Object.defineProperty(exports, "getDomainLocale", {-        enumerable: true,-        get: function () {-          return getDomainLocale;-        },-      });-      const _normalizetrailingslash = __webpack_require__(4869);-      const basePath =-        /* unused pure expression or super */ null && (false || "");-      function getDomainLocale(path, locale, locales, domainLocales) {-        if (false) {-        } else {-          return false;-        }-      }-      if (-        (typeof exports.default === "function" ||-          (typeof exports.default === "object" && exports.default !== null)) &&-        typeof exports.default.__esModule === "undefined"-      ) {-        Object.defineProperty(exports.default, "__esModule", {-          value: true,-        });-        Object.assign(exports.default, exports);-        module.exports = exports.default;-      } //# sourceMappingURL=get-domain-locale.js.map--      /***/-    },--    /***/ 3947: /***/ (module, exports, __webpack_require__) => {+    /***/ 591: /***/ (module, exports, __webpack_require__) => {       "use strict";       /* __next_internal_client_entry_do_not_use__  cjs */       Object.defineProperty(exports, "__esModule", {@@ -146,17 +28,17 @@       const _react = /*#__PURE__*/ _interop_require_wildcard._(         __webpack_require__(148)       );-      const _resolvehref = __webpack_require__(3161);-      const _islocalurl = __webpack_require__(2309);-      const _formaturl = __webpack_require__(3768);-      const _utils = __webpack_require__(5554);-      const _addlocale = __webpack_require__(7591);-      const _routercontextsharedruntime = __webpack_require__(3556);-      const _useintersection = __webpack_require__(5624);-      const _getdomainlocale = __webpack_require__(3857);-      const _addbasepath = __webpack_require__(4356);-      const _usemergedref = __webpack_require__(4985);-      const _erroronce = __webpack_require__(3199);+      const _resolvehref = __webpack_require__(5837);+      const _islocalurl = __webpack_require__(5953);+      const _formaturl = __webpack_require__(6212);+      const _utils = __webpack_require__(6950);+      const _addlocale = __webpack_require__(6467);+      const _routercontextsharedruntime = __webpack_require__(6712);+      const _useintersection = __webpack_require__(9692);+      const _getdomainlocale = __webpack_require__(6850);+      const _addbasepath = __webpack_require__(4928);+      const _usemergedref = __webpack_require__(1765);+      const _erroronce = __webpack_require__(8659);       const prefetched = new Set();       function prefetch(router, href, as, options) {         if (false) {@@ -545,7 +427,17 @@       /***/     },-    /***/ 4985: /***/ (module, exports, __webpack_require__) => {+    /***/ 1148: /***/ (+      module,+      __unused_webpack_exports,+      __webpack_require__+    ) => {+      module.exports = __webpack_require__(591);++      /***/+    },++    /***/ 1765: /***/ (module, exports, __webpack_require__) => {       "use strict";        Object.defineProperty(exports, "__esModule", {@@ -623,7 +515,125 @@       /***/     },-    /***/ 5624: /***/ (module, exports, __webpack_require__) => {+    /***/ 5436: /***/ (+      __unused_webpack_module,+      __webpack_exports__,+      __webpack_require__+    ) => {+      "use strict";+      __webpack_require__.r(__webpack_exports__);+      /* harmony export */ __webpack_require__.d(__webpack_exports__, {+        /* harmony export */ __N_SSP: () => /* binding */ __N_SSP,+        /* harmony export */ default: () => __WEBPACK_DEFAULT_EXPORT__,+        /* harmony export */+      });+      /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ =+        __webpack_require__(5640);+      /* harmony import */ var next_link__WEBPACK_IMPORTED_MODULE_1__ =+        __webpack_require__(1148);+      /* harmony import */ var next_link__WEBPACK_IMPORTED_MODULE_1___default =+        /*#__PURE__*/ __webpack_require__.n(+          next_link__WEBPACK_IMPORTED_MODULE_1__+        );++      function aLink(props) {+        return /*#__PURE__*/ (0,+        react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {+          children: [+            /*#__PURE__*/ (0,+            react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("h3", {+              children: "A Link page!",+            }),+            /*#__PURE__*/ (0,+            react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(+              next_link__WEBPACK_IMPORTED_MODULE_1___default(),+              {+                href: "/",+                children: "Go to /",+              }+            ),+          ],+        });+      }+      var __N_SSP = true;+      /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = aLink;++      /***/+    },++    /***/ 6850: /***/ (module, exports, __webpack_require__) => {+      "use strict";++      Object.defineProperty(exports, "__esModule", {+        value: true,+      });+      Object.defineProperty(exports, "getDomainLocale", {+        enumerable: true,+        get: function () {+          return getDomainLocale;+        },+      });+      const _normalizetrailingslash = __webpack_require__(6457);+      const basePath =+        /* unused pure expression or super */ null && (false || "");+      function getDomainLocale(path, locale, locales, domainLocales) {+        if (false) {+        } else {+          return false;+        }+      }+      if (+        (typeof exports.default === "function" ||+          (typeof exports.default === "object" && exports.default !== null)) &&+        typeof exports.default.__esModule === "undefined"+      ) {+        Object.defineProperty(exports.default, "__esModule", {+          value: true,+        });+        Object.assign(exports.default, exports);+        module.exports = exports.default;+      } //# sourceMappingURL=get-domain-locale.js.map++      /***/+    },++    /***/ 8659: /***/ (__unused_webpack_module, exports) => {+      "use strict";++      Object.defineProperty(exports, "__esModule", {+        value: true,+      });+      Object.defineProperty(exports, "errorOnce", {+        enumerable: true,+        get: function () {+          return errorOnce;+        },+      });+      let errorOnce = (_) => {};+      if (false) {+      } //# sourceMappingURL=error-once.js.map++      /***/+    },++    /***/ 9666: /***/ (+      __unused_webpack_module,+      __unused_webpack_exports,+      __webpack_require__+    ) => {+      (window.__NEXT_P = window.__NEXT_P || []).push([+        "/link",+        function () {+          return __webpack_require__(5436);+        },+      ]);+      if (false) {+      }++      /***/+    },++    /***/ 9692: /***/ (module, exports, __webpack_require__) => {       "use strict";        Object.defineProperty(exports, "__esModule", {@@ -636,7 +646,7 @@         },       });       const _react = __webpack_require__(148);-      const _requestidlecallback = __webpack_require__(3543);+      const _requestidlecallback = __webpack_require__(315);       const hasIntersectionObserver =         typeof IntersectionObserver === "function";       const observers = new Map();@@ -748,23 +758,13 @@        /***/     },--    /***/ 8770: /***/ (-      module,-      __unused_webpack_exports,-      __webpack_require__-    ) => {-      module.exports = __webpack_require__(3947);--      /***/-    },   },   /******/ (__webpack_require__) => {     // webpackRuntimeModules     /******/ var __webpack_exec__ = (moduleId) =>       __webpack_require__((__webpack_require__.s = moduleId));     /******/ __webpack_require__.O(0, [636, 6593, 8792], () =>-      __webpack_exec__(3568)+      __webpack_exec__(9666)     );     /******/ var __webpack_exports__ = __webpack_require__.O();     /******/ _N_E = __webpack_exports__;
Diff forrouterDirect-HASH.js
@@ -1,7 +1,7 @@ (self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([   [188],   {-    /***/ 3618: /***/ (+    /***/ 76: /***/ (       __unused_webpack_module,       __webpack_exports__,       __webpack_require__@@ -16,7 +16,7 @@       /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ =         __webpack_require__(5640);       /* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_1__ =-        __webpack_require__(4631);+        __webpack_require__(9413);       /* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_1___default =         /*#__PURE__*/ __webpack_require__.n(           next_router__WEBPACK_IMPORTED_MODULE_1__@@ -36,17 +36,7 @@       /***/     },-    /***/ 4631: /***/ (-      module,-      __unused_webpack_exports,-      __webpack_require__-    ) => {-      module.exports = __webpack_require__(7086);--      /***/-    },--    /***/ 7824: /***/ (+    /***/ 1810: /***/ (       __unused_webpack_module,       __unused_webpack_exports,       __webpack_require__@@ -54,7 +44,7 @@       (window.__NEXT_P = window.__NEXT_P || []).push([         "/routerDirect",         function () {-          return __webpack_require__(3618);+          return __webpack_require__(76);         },       ]);       if (false) {@@ -62,13 +52,23 @@        /***/     },++    /***/ 9413: /***/ (+      module,+      __unused_webpack_exports,+      __webpack_require__+    ) => {+      module.exports = __webpack_require__(5282);++      /***/+    },   },   /******/ (__webpack_require__) => {     // webpackRuntimeModules     /******/ var __webpack_exec__ = (moduleId) =>       __webpack_require__((__webpack_require__.s = moduleId));     /******/ __webpack_require__.O(0, [636, 6593, 8792], () =>-      __webpack_exec__(7824)+      __webpack_exec__(1810)     );     /******/ var __webpack_exports__ = __webpack_require__.O();     /******/ _N_E = __webpack_exports__;
Diff forscript-HASH.js
@@ -1,24 +1,17 @@ (self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([   [1209],   {-    /***/ 1984: /***/ (-      __unused_webpack_module,+    /***/ 2227: /***/ (+      module,       __unused_webpack_exports,       __webpack_require__     ) => {-      (window.__NEXT_P = window.__NEXT_P || []).push([-        "/script",-        function () {-          return __webpack_require__(5769);-        },-      ]);-      if (false) {-      }+      module.exports = __webpack_require__(5984);        /***/     },-    /***/ 5769: /***/ (+    /***/ 3043: /***/ (       __unused_webpack_module,       __webpack_exports__,       __webpack_require__@@ -33,7 +26,7 @@       /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ =         __webpack_require__(5640);       /* harmony import */ var next_script__WEBPACK_IMPORTED_MODULE_1__ =-        __webpack_require__(8293);+        __webpack_require__(2227);       /* harmony import */ var next_script__WEBPACK_IMPORTED_MODULE_1___default =         /*#__PURE__*/ __webpack_require__.n(           next_script__WEBPACK_IMPORTED_MODULE_1__@@ -66,12 +59,19 @@       /***/     },-    /***/ 8293: /***/ (-      module,+    /***/ 3642: /***/ (+      __unused_webpack_module,       __unused_webpack_exports,       __webpack_require__     ) => {-      module.exports = __webpack_require__(900);+      (window.__NEXT_P = window.__NEXT_P || []).push([+        "/script",+        function () {+          return __webpack_require__(3043);+        },+      ]);+      if (false) {+      }        /***/     },@@ -81,7 +81,7 @@     /******/ var __webpack_exec__ = (moduleId) =>       __webpack_require__((__webpack_require__.s = moduleId));     /******/ __webpack_require__.O(0, [636, 6593, 8792], () =>-      __webpack_exec__(1984)+      __webpack_exec__(3642)     );     /******/ var __webpack_exports__ = __webpack_require__.O();     /******/ _N_E = __webpack_exports__;
Diff forwithRouter-HASH.js
@@ -1,34 +1,7 @@ (self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([   [3263],   {-    /***/ 4631: /***/ (-      module,-      __unused_webpack_exports,-      __webpack_require__-    ) => {-      module.exports = __webpack_require__(7086);--      /***/-    },--    /***/ 9216: /***/ (-      __unused_webpack_module,-      __unused_webpack_exports,-      __webpack_require__-    ) => {-      (window.__NEXT_P = window.__NEXT_P || []).push([-        "/withRouter",-        function () {-          return __webpack_require__(9803);-        },-      ]);-      if (false) {-      }--      /***/-    },--    /***/ 9803: /***/ (+    /***/ 1089: /***/ (       __unused_webpack_module,       __webpack_exports__,       __webpack_require__@@ -43,7 +16,7 @@       /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ =         __webpack_require__(5640);       /* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_1__ =-        __webpack_require__(4631);+        __webpack_require__(9413);       /* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_1___default =         /*#__PURE__*/ __webpack_require__.n(           next_router__WEBPACK_IMPORTED_MODULE_1__@@ -61,13 +34,40 @@        /***/     },++    /***/ 3962: /***/ (+      __unused_webpack_module,+      __unused_webpack_exports,+      __webpack_require__+    ) => {+      (window.__NEXT_P = window.__NEXT_P || []).push([+        "/withRouter",+        function () {+          return __webpack_require__(1089);+        },+      ]);+      if (false) {+      }++      /***/+    },++    /***/ 9413: /***/ (+      module,+      __unused_webpack_exports,+      __webpack_require__+    ) => {+      module.exports = __webpack_require__(5282);++      /***/+    },   },   /******/ (__webpack_require__) => {     // webpackRuntimeModules     /******/ var __webpack_exec__ = (moduleId) =>       __webpack_require__((__webpack_require__.s = moduleId));     /******/ __webpack_require__.O(0, [636, 6593, 8792], () =>-      __webpack_exec__(9216)+      __webpack_exec__(3962)     );     /******/ var __webpack_exports__ = __webpack_require__.O();     /******/ _N_E = __webpack_exports__;
Diff for4719-HASH.js

Diff too large to display

Diff for6236-HASH.js

Diff too large to display

Diff formain-HASH.js

Diff too large to display

Diff forapp-page-exp..ntime.dev.js

Diff too large to display

Diff forapp-page-tur..ntime.dev.js

Diff too large to display

Diff forapp-page-tur..ntime.dev.js

Diff too large to display

Diff forapp-page.runtime.dev.js

Diff too large to display

Commit:6b6d7f4

@devjiwonchoidevjiwonchoiforce-pushed thejiwon/07-18-_devtools_persist_user_config_inside_.next_cache_ branch from017161a to2f3b8f4CompareJuly 18, 2025 19:56
@devjiwonchoidevjiwonchoi changed the title[devtools] persist user config inside.next/cache[devtools] save user config inside.next/cacheJul 18, 2025
@devjiwonchoidevjiwonchoiforce-pushed thejiwon/07-18-_devtools_persist_user_config_inside_.next_cache_ branch fromfe68c79 to54d903eCompareJuly 18, 2025 22:05
@devjiwonchoidevjiwonchoiforce-pushed thejiwon/07-18-_devtools_persist_user_config_inside_.next_cache_ branch from0a546dd to1cba917CompareJuly 18, 2025 23:14
test/e2e/multi-zone/multi-zone.test.ts failed because the dir wasn't there
@devjiwonchoidevjiwonchoiforce-pushed thejiwon/07-18-_devtools_persist_user_config_inside_.next_cache_ branch from1cba917 to6b6d7f4CompareJuly 18, 2025 23:31
@devjiwonchoidevjiwonchoi marked this pull request as ready for reviewJuly 18, 2025 23:50
}

const body = Buffer.concat(chunks).toString('utf8')
const validation = devToolsConfigSchema.safeParse(JSON.parse(body))
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider wrappingJSON.parse(body) in a try-catch block to handle malformed JSON gracefully. If parsing fails, the server should return a 400 Bad Request response rather than throwing an unhandled exception:

try{constvalidation=devToolsConfigSchema.safeParse(JSON.parse(body))}catch(error){returnmiddlewareResponse.badRequest(res)}

This ensures robust error handling for invalid JSON input from clients.

Suggested change
constvalidation=devToolsConfigSchema.safeParse(JSON.parse(body))
try{
constvalidation=devToolsConfigSchema.safeParse(JSON.parse(body))
}catch(error){
returnmiddlewareResponse.badRequest(res)
}

Spotted byDiamond

Is this helpful? React 👍 or 👎 to let us know.

devToolsPanelPosition ?? state.devToolsPanelPosition,
scale: scale ?? state.scale,
devToolsPanelSize: devToolsPanelSize ?? state.devToolsPanelSize,
hideShortcut: hideShortcut ?? state.hideShortcut,
Copy link
Contributor

Choose a reason for hiding this comment

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

The?? operator will keep the existing state value whenhideShortcut isnull, but since the type allowsnull as a valid value, this prevents users from explicitly settinghideShortcut tonull. Consider using this pattern instead to properly handlenull values:

hideShortcut:hideShortcut!==undefined ?hideShortcut :state.hideShortcut

This ensures that whenhideShortcut is explicitly set tonull in the action, it will properly override the state value.

Suggested change
hideShortcut:hideShortcut??state.hideShortcut,
hideShortcut:hideShortcut!==undefined ?hideShortcut :state.hideShortcut,

Spotted byDiamond

Is this helpful? React 👍 or 👎 to let us know.

Comment on lines +22 to +27
}).catch((error)=>{
console.log('[Next.js DevTools] Failed to save config:',{
data:body,
error,
})
})
Copy link
Contributor

Choose a reason for hiding this comment

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

The error handling in this fetch operation clears thequeuedPatch before confirming the request succeeded. If the request fails, the configuration changes are permanently lost since they've already been removed from the queue. Consider either:

  1. Moving thequeuedPatch = {} reset inside a.then() block to only clear after successful requests
  2. Implementing a retry mechanism that preserves failed patches
  3. Creating a copy of the patch before clearing and re-adding it to the queue on failure

This ensures user configuration changes aren't silently dropped when network issues occur.

Suggested change
}).catch((error)=>{
console.log('[Next.js DevTools] Failed to save config:',{
data:body,
error,
})
})
}).then(()=>{
queuedPatch={}
}).catch((error)=>{
console.log('[Next.js DevTools] Failed to save config:',{
data:body,
error,
})
})

Spotted byDiamond

Is this helpful? React 👍 or 👎 to let us know.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@graphite-appgraphite-app[bot]graphite-app[bot] left review comments

@huozhihuozhiAwaiting requested review from huozhi

@eps1loneps1lonAwaiting requested review from eps1lon

@RobPruzanRobPruzanAwaiting requested review from RobPruzan

At least 1 approving review is required to merge this pull request.

Assignees
No one assigned
Labels
created-by: Next.js teamPRs by the Next.js team.type: next
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@devjiwonchoi@ijjk

[8]ページ先頭

©2009-2025 Movatter.jp