Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor require hooks #48297

Closed

Conversation

shuding
Copy link
Member

@shuding shuding commented Apr 12, 2023

This PR aims to improve the current require hook by implementing two key changes. Firstly, it ensures that the initialization occurs at the top of the module level for correctness. Secondly, we now set the NEXT_PREBUNDLED_REACT environment variable at the process level to ensure that we don't mix the two types of rendering processes and we always resolve the correct React package.

These improvements are made possible by the changes introduced in PR #47857.

Closes NEXT-231.

@ijjk
Copy link
Member

ijjk commented Apr 12, 2023

Failing test suites

Commit: e510c08

pnpm testheadless test/e2e/app-dir/not-found/not-found.test.ts

  • app dir - not-found > root not-found page > should use the not-found page for non-matching routes
Expand output

● app dir - not-found › root not-found page › should use the not-found page for non-matching routes

expect(received).toContain(expected) // indexOf

Expected substring: "This Is The Not Found Page"
Received string:    "<!DOCTYPE html><html><head><style data-next-hide-fouc=\"true\">body{display:none}</style><noscript data-next-hide-fouc=\"true\"><style>body{display:block}</style></noscript><meta charSet=\"utf-8\"/><meta name=\"viewport\" content=\"width=device-width\"/><meta name=\"next-head-count\" content=\"2\"/><noscript data-n-css=\"\"></noscript><script defer=\"\" nomodule=\"\" src=\"/_next/static/chunks/polyfills.js?ts=1681503606215\"></script><script src=\"/_next/static/chunks/fallback/webpack.js?ts=1681503606215\" defer=\"\"></script><script src=\"/_next/static/chunks/fallback/main.js?ts=1681503606215\" defer=\"\"></script><script src=\"/_next/static/chunks/fallback/pages/_app.js?ts=1681503606215\" defer=\"\"></script><script src=\"/_next/static/chunks/fallback/pages/_error.js?ts=1681503606215\" defer=\"\"></script><noscript id=\"__next_css__DO_NOT_USE__\"></noscript></head><body><div id=\"__next\"></div><script src=\"/_next/static/chunks/fallback/react-refresh.js?ts=1681503606215\"></script><script id=\"__NEXT_DATA__\" type=\"application/json\">{\"props\":{\"pageProps\":{\"statusCode\":500}},\"page\":\"/_error\",\"query\":{},\"buildId\":\"development\",\"isFallback\":false,\"err\":{\"name\":\"TypeError\",\"source\":\"server\",\"message\":\"Cannot read properties of undefined (reading 'current')\",\"stack\":\"TypeError: Cannot read properties of undefined (reading 'current')\\n    at performWork (/tmp/next-install-35cc2cfbefa470f826b6cc385cf56af5ffd0412c9a3a8e011a518c9ee3f16b6a/node_modules/.pnpm/file+..+next-repo-b0541c60c4e3ad7d35fc85ebf8763e3d_3uk2vhqe3ocs53nc5kfaxb443y/node_modules/next/dist/compiled/react-dom/cjs/react-dom-server.browser.development.js:9370:45)\\n    at /tmp/next-install-35cc2cfbefa470f826b6cc385cf56af5ffd0412c9a3a8e011a518c9ee3f16b6a/node_modules/.pnpm/file+..+next-repo-b0541c60c4e3ad7d35fc85ebf8763e3d_3uk2vhqe3ocs53nc5kfaxb443y/node_modules/next/dist/compiled/react-dom/cjs/react-dom-server.browser.development.js:9761:12\\n    at scheduleWork (/tmp/next-install-35cc2cfbefa470f826b6cc385cf56af5ffd0412c9a3a8e011a518c9ee3f16b6a/node_modules/.pnpm/file+..+next-repo-b0541c60c4e3ad7d35fc85ebf8763e3d_3uk2vhqe3ocs53nc5kfaxb443y/node_modules/next/dist/compiled/react-dom/cjs/react-dom-server.browser.development.js:78:3)\\n    at startWork (/tmp/next-install-35cc2cfbefa470f826b6cc385cf56af5ffd0412c9a3a8e011a518c9ee3f16b6a/node_modules/.pnpm/file+..+next-repo-b0541c60c4e3ad7d35fc85ebf8763e3d_3uk2vhqe3ocs53nc5kfaxb443y/node_modules/next/dist/compiled/react-dom/cjs/react-dom-server.browser.development.js:9760:3)\\n    at /tmp/next-install-35cc2cfbefa470f826b6cc385cf56af5ffd0412c9a3a8e011a518c9ee3f16b6a/node_modules/.pnpm/file+..+next-repo-b0541c60c4e3ad7d35fc85ebf8763e3d_3uk2vhqe3ocs53nc5kfaxb443y/node_modules/next/dist/compiled/react-dom/cjs/react-dom-server.browser.development.js:9863:5\\n    at new Promise (\\u003canonymous\\u003e)\\n    at Object.renderToReadableStream (/tmp/next-install-35cc2cfbefa470f826b6cc385cf56af5ffd0412c9a3a8e011a518c9ee3f16b6a/node_modules/.pnpm/file+..+next-repo-b0541c60c4e3ad7d35fc85ebf8763e3d_3uk2vhqe3ocs53nc5kfaxb443y/node_modules/next/dist/compiled/react-dom/cjs/react-dom-server.browser.development.js:9812:10)\\n    at /tmp/next-install-35cc2cfbefa470f826b6cc385cf56af5ffd0412c9a3a8e011a518c9ee3f16b6a/node_modules/.pnpm/file+..+next-repo-b0541c60c4e3ad7d35fc85ebf8763e3d_3uk2vhqe3ocs53nc5kfaxb443y/node_modules/next/dist/server/node-web-streams-helper.js:141:117\\n    at NextTracerImpl.trace (/tmp/next-install-35cc2cfbefa470f826b6cc385cf56af5ffd0412c9a3a8e011a518c9ee3f16b6a/node_modules/.pnpm/file+..+next-repo-b0541c60c4e3ad7d35fc85ebf8763e3d_3uk2vhqe3ocs53nc5kfaxb443y/node_modules/next/dist/server/lib/trace/tracer.js:65:20)\\n    at Object.renderToInitialStream (/tmp/next-install-35cc2cfbefa470f826b6cc385cf56af5ffd0412c9a3a8e011a518c9ee3f16b6a/node_modules/.pnpm/file+..+next-repo-b0541c60c4e3ad7d35fc85ebf8763e3d_3uk2vhqe3ocs53nc5kfaxb443y/node_modules/next/dist/server/node-web-streams-helper.js:141:37)\\n    at /tmp/next-install-35cc2cfbefa470f826b6cc385cf56af5ffd0412c9a3a8e011a518c9ee3f16b6a/node_modules/.pnpm/file+..+next-repo-b0541c60c4e3ad7d35fc85ebf8763e3d_3uk2vhqe3ocs53nc5kfaxb443y/node_modules/next/dist/server/app-render/app-render.js:935:71\\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\"},\"gip\":true,\"scriptLoader\":[]}</script></body></html>"

  11 |       it('should use the not-found page for non-matching routes', async () => {
  12 |         const html = await next.render('/random-content')
> 13 |         expect(html).toContain('This Is The Not Found Page')
     |                      ^
  14 |       })
  15 |
  16 |       it('should allow to have a valid /not-found route', async () => {

  at Object.<anonymous> (e2e/app-dir/not-found/not-found.test.ts:13:22)

Read more about building and testing Next.js in contributing.md.

pnpm testheadless test/e2e/app-dir/i18n-hybrid/i18n-hybrid.test.js

  • app-dir with middleware > should filter correctly after middleware rewrite
Expand output

● app-dir with middleware › should filter correctly after middleware rewrite

TIMED OUT: /app-dir/

<head><meta charset="utf-8"><meta name="viewport" content="width=device-width"><meta name="next-head-count" content="2"><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills.js?ts=1681503538005"></script><script src="/_next/static/chunks/webpack.js?ts=1681503538005" defer=""></script><script src="/_next/static/chunks/main.js?ts=1681503538005" defer=""></script><script src="/_next/static/chunks/pages/_app.js?ts=1681503538005" defer=""></script><script src="/_next/static/chunks/pages/%5Bslug%5D.js?ts=1681503538005" defer=""></script><script src="/_next/static/development/_buildManifest.js?ts=1681503538005" defer=""></script><script src="/_next/static/development/_ssgManifest.js?ts=1681503538005" defer=""></script><noscript id="__next_css__DO_NOT_USE__"></noscript></head><body><div id="__next"><p>hello from pages/[slug]</p></div><script src="/_next/static/chunks/react-refresh.js?ts=1681503538005"></script><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/[slug]","query":{},"buildId":"development","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script><div id="__next-build-watcher" style="position: fixed; bottom: 10px; right: 20px; width: 0px; height: 0px; z-index: 99999;"></div><next-route-announcer><p aria-live="assertive" id="__next-route-announcer__" role="alert" style="border: 0px; clip: rect(0px, 0px, 0px, 0px); height: 1px; margin: -1px; overflow: hidden; padding: 0px; position: absolute; top: 0px; width: 1px; white-space: nowrap; overflow-wrap: normal;">/start</p></next-route-announcer></body>

undefined

  569 |
  570 |   if (hardError) {
> 571 |     throw new Error('TIMED OUT: ' + regex + '\n\n' + content + '\n\n' + lastErr)
      |           ^
  572 |   }
  573 |   return false
  574 | }

  at check (lib/next-test-utils.js:571:11)
  at Object.<anonymous> (e2e/app-dir/app-middleware/app-middleware.test.ts:20:7)

Read more about building and testing Next.js in contributing.md.

pnpm testheadless test/e2e/app-dir/app-middleware/app-middleware.test.ts

  • output: standalone with app dir > should work correctly with output standalone
Expand output

● output: standalone with app dir › should work correctly with output standalone

expect(received).toBe(expected) // Object.is equality

Expected: 200
Received: 500

  93 |           ]) {
  94 |             const res = await fetchViaHTTP(appPort, testPath)
> 95 |             expect(res.status).toBe(200)
     |                                ^
  96 |           }
  97 |         } finally {
  98 |           if (server) await killApp(server)

  at Object.<anonymous> (e2e/app-dir/app/standalone.test.ts:95:32)

Read more about building and testing Next.js in contributing.md.

pnpm testheadless test/e2e/app-dir/app-css/index.test.ts

  • app dir css > css support > special entries > should include root layout css for root not-found.js
Expand output

● app dir css › css support › special entries › should include root layout css for root not-found.js

expect(received).toBe(expected) // Object.is equality

Expected: "rgb(210, 105, 30)"
Received: null

  201 |               `window.getComputedStyle(document.querySelector('h1')).color`
  202 |             )
> 203 |           ).toBe('rgb(210, 105, 30)')
      |             ^
  204 |         })
  205 |
  206 |         it('should include css imported in error.js', async () => {

  at Object.<anonymous> (e2e/app-dir/app-css/index.test.ts:203:13)

Read more about building and testing Next.js in contributing.md.

pnpm testheadless test/e2e/app-dir/app-static/app-static.test.ts

  • app-dir static/dynamic handling > should revalidate all fetches during on-demand revalidate
Expand output

● app-dir static/dynamic handling › should revalidate all fetches during on-demand revalidate

expect(received).toBe(expected) // Object.is equality

Expected: true
Received: false

   96 |           '/api/revalidate?path=/variable-revalidate/revalidate-360'
   97 |         )
>  98 |         expect((await revalidateRes.json()).revalidated).toBe(true)
      |                                                          ^
   99 |
  100 |         await check(async () => {
  101 |           const newRes = await next.fetch('/variable-revalidate/revalidate-360')

  at Object.<anonymous> (e2e/app-dir/app-static/app-static.test.ts:98:58)

Read more about building and testing Next.js in contributing.md.

pnpm testheadless test/e2e/app-dir/metadata/metadata.test.ts

  • app dir - metadata > static routes > should support root dir robots.txt
  • app dir - metadata > static routes > should support root dir sitemap.xml
Expand output

● app dir - metadata › static routes › should support root dir robots.txt

expect(received).toBe(expected) // Object.is equality

Expected: 404
Received: 500

  736 |         expect(await res.text()).toContain('User-Agent: *\nDisallow:')
  737 |         const invalidRobotsResponse = await next.fetch('/title/robots.txt')
> 738 |         expect(invalidRobotsResponse.status).toBe(404)
      |                                              ^
  739 |       })
  740 |
  741 |       it('should support root dir sitemap.xml', async () => {

  at Object.<anonymous> (e2e/app-dir/metadata/metadata.test.ts:738:46)

● app dir - metadata › static routes › should support root dir sitemap.xml

expect(received).toBe(expected) // Object.is equality

Expected: 404
Received: 500

  748 |         )
  749 |         const invalidSitemapResponse = await next.fetch('/title/sitemap.xml')
> 750 |         expect(invalidSitemapResponse.status).toBe(404)
      |                                               ^
  751 |       })
  752 |
  753 |       it('should support static manifest.webmanifest', async () => {

  at Object.<anonymous> (e2e/app-dir/metadata/metadata.test.ts:750:47)

Read more about building and testing Next.js in contributing.md.

pnpm testheadless test/e2e/app-dir/app/index.test.ts

  • app dir > > should navigate to pages dynamic route from pages page if it overlaps with an app page
Expand output

● app dir › › should navigate to pages dynamic route from pages page if it overlaps with an app page

TIMED OUT: success

undefined

TimeoutError: page.waitForSelector: Timeout 5000ms exceeded.
=========================== logs ===========================
waiting for locator('#app-text')
============================================================

  569 |
  570 |   if (hardError) {
> 571 |     throw new Error('TIMED OUT: ' + regex + '\n\n' + content + '\n\n' + lastErr)
      |           ^
  572 |   }
  573 |   return false
  574 | }

  at check (lib/next-test-utils.js:571:11)
  at Object.<anonymous> (e2e/app-dir/app/index.test.ts:706:11)

Read more about building and testing Next.js in contributing.md.

pnpm testheadless test/development/basic/hmr.test.ts

  • basic HMR, basePath: "/docs" > Error Recovery > should recover after webpack parse error in an imported file
Expand output

● basic HMR, basePath: "/docs" › Error Recovery › should recover after webpack parse error in an imported file

expect(received).toMatchInlineSnapshot(snapshot)

Snapshot name: `basic HMR, basePath: "/docs" Error Recovery should recover after webpack parse error in an imported file 2`

- Snapshot  - 3
+ Received  + 0

@@ -4,8 +4,5 @@
  | This
  | is
  > }}}
  | invalid
  | js
-
- Import trace for requested module:
- ./components/parse-error.xyz

  756 |             `"Failed to compile"`
  757 |           )
> 758 |           expect(await getRedboxSource(browser)).toMatchInlineSnapshot(`
      |                                                  ^
  759 |           "./components/parse-error.xyz
  760 |           Module parse failed: Unexpected token (3:0)
  761 |           You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders

  at Object.<anonymous> (development/basic/hmr.test.ts:758:50)

Read more about building and testing Next.js in contributing.md.

@ijjk
Copy link
Member

ijjk commented Apr 12, 2023

Stats from current PR

Default Build (Increase detected ⚠️)
General Overall increase ⚠️
vercel/next.js canary vercel/next.js shuding/next-231-add-tests-to-ensure-the-user-installed Change
buildDuration 49.6s 45.9s -3.7s
buildDurationCached 11.5s 10.3s -1.2s
nodeModulesSize 129 MB 129 MB ⚠️ +4.71 kB
nextStartRea..uration (ms) 406ms 410ms ⚠️ +4ms
Client Bundles (main, webpack) Overall decrease ✓
vercel/next.js canary vercel/next.js shuding/next-231-add-tests-to-ensure-the-user-installed Change
182-HASH.js gzip 22.2 kB 22.2 kB -24 B
869.HASH.js gzip 181 B 186 B ⚠️ +5 B
974ec2d0-HASH.js gzip 50.5 kB 50.5 kB
main-app-HASH.js gzip 216 B 216 B
main-HASH.js gzip 84 kB 30 kB -54.1 kB
webpack-HASH.js gzip 1.7 kB 1.7 kB -4 B
framework-HASH.js gzip N/A 45.2 kB N/A
Overall change 159 kB 150 kB -8.85 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary vercel/next.js shuding/next-231-add-tests-to-ensure-the-user-installed Change
polyfills-HASH.js gzip 31 kB 31 kB
Overall change 31 kB 31 kB
Client Pages Overall decrease ✓
vercel/next.js canary vercel/next.js shuding/next-231-add-tests-to-ensure-the-user-installed Change
_app-HASH.js gzip 192 B 195 B ⚠️ +3 B
_error-HASH.js gzip 180 B 182 B ⚠️ +2 B
amp-HASH.js gzip 483 B 484 B ⚠️ +1 B
css-HASH.js gzip 801 B 328 B -473 B
dynamic-HASH.js gzip 2.27 kB 1.82 kB -451 B
edge-ssr-HASH.js gzip 259 B 262 B ⚠️ +3 B
head-HASH.js gzip 828 B 354 B -474 B
hooks-HASH.js gzip 849 B 367 B -482 B
image-HASH.js gzip 4.44 kB 3.99 kB -449 B
index-HASH.js gzip 252 B 256 B ⚠️ +4 B
link-HASH.js gzip 2.76 kB 2.31 kB -442 B
routerDirect..HASH.js gzip 781 B 311 B -470 B
script-HASH.js gzip 858 B 391 B -467 B
withRouter-HASH.js gzip 782 B 307 B -475 B
85e02e95b279..7e3.css gzip 107 B 107 B
Overall change 15.8 kB 11.7 kB -4.17 kB
Client Build Manifests Overall decrease ✓
vercel/next.js canary vercel/next.js shuding/next-231-add-tests-to-ensure-the-user-installed Change
_buildManifest.js gzip 483 B 482 B -1 B
Overall change 483 B 482 B -1 B
Rendered Page Sizes Overall decrease ✓
vercel/next.js canary vercel/next.js shuding/next-231-add-tests-to-ensure-the-user-installed Change
index.html gzip 548 B 512 B -36 B
link.html gzip 557 B 527 B -30 B
withRouter.html gzip 544 B 507 B -37 B
Overall change 1.65 kB 1.55 kB -103 B
Edge SSR bundle Size Overall decrease ✓
vercel/next.js canary vercel/next.js shuding/next-231-add-tests-to-ensure-the-user-installed Change
edge-ssr.js gzip 133 kB 76.7 kB -56.7 kB
page.js gzip 136 kB 136 kB -1 B
Overall change 270 kB 213 kB -56.7 kB
Middleware size Overall increase ⚠️
vercel/next.js canary vercel/next.js shuding/next-231-add-tests-to-ensure-the-user-installed Change
middleware-b..fest.js gzip 604 B 626 B ⚠️ +22 B
middleware-r..fest.js gzip 145 B 146 B ⚠️ +1 B
middleware.js gzip 20.6 kB 20.6 kB ⚠️ +6 B
edge-runtime..pack.js gzip 1.83 kB 1.83 kB
Overall change 23.2 kB 23.2 kB ⚠️ +29 B

Diffs

Diff for page.js

Diff too large to display

Diff for middleware-b..-manifest.js
@@ -7,82 +7,96 @@ self.__BUILD_MANIFEST = {
     "static/BUILD_ID/_ssgManifest.js",
   ],
   rootMainFiles: [
-    "static/chunks/webpack-d9965445ebce461e.js",
-    "static/chunks/974ec2d0-4d9916c177a2fff2.js",
-    "static/chunks/182-2cd25691446f2015.js",
-    "static/chunks/main-app-b18fe28343bad5c2.js",
+    "static/chunks/webpack-ce219a492e907d91.js",
+    "static/chunks/39549b6b-0c4e4dd81dcddd9a.js",
+    "static/chunks/120-d56c267aed7a8ac8.js",
+    "static/chunks/main-app-b134f0bfb46e5996.js",
   ],
   pages: {
     "/": [
-      "static/chunks/webpack-d9965445ebce461e.js",
-      "static/chunks/main-6234f5ec8b960add.js",
-      "static/chunks/pages/index-96b4df8f97c0f01a.js",
+      "static/chunks/webpack-ce219a492e907d91.js",
+      "static/chunks/framework-114cbddc60b679b8.js",
+      "static/chunks/main-c2259007260bacc3.js",
+      "static/chunks/pages/index-0aafd9ae198e641d.js",
     ],
     "/_app": [
-      "static/chunks/webpack-d9965445ebce461e.js",
-      "static/chunks/main-6234f5ec8b960add.js",
-      "static/chunks/pages/_app-39c49a32fdfb4902.js",
+      "static/chunks/webpack-ce219a492e907d91.js",
+      "static/chunks/framework-114cbddc60b679b8.js",
+      "static/chunks/main-c2259007260bacc3.js",
+      "static/chunks/pages/_app-f035fa227717de01.js",
     ],
     "/_error": [
-      "static/chunks/webpack-d9965445ebce461e.js",
-      "static/chunks/main-6234f5ec8b960add.js",
-      "static/chunks/pages/_error-d79135b4d7090152.js",
+      "static/chunks/webpack-ce219a492e907d91.js",
+      "static/chunks/framework-114cbddc60b679b8.js",
+      "static/chunks/main-c2259007260bacc3.js",
+      "static/chunks/pages/_error-7147fadf460d658d.js",
     ],
     "/amp": [
-      "static/chunks/webpack-d9965445ebce461e.js",
-      "static/chunks/main-6234f5ec8b960add.js",
-      "static/chunks/pages/amp-3e73e98c5f333ae8.js",
+      "static/chunks/webpack-ce219a492e907d91.js",
+      "static/chunks/framework-114cbddc60b679b8.js",
+      "static/chunks/main-c2259007260bacc3.js",
+      "static/chunks/pages/amp-342f0ad75d02973e.js",
     ],
     "/css": [
-      "static/chunks/webpack-d9965445ebce461e.js",
-      "static/chunks/main-6234f5ec8b960add.js",
+      "static/chunks/webpack-ce219a492e907d91.js",
+      "static/chunks/framework-114cbddc60b679b8.js",
+      "static/chunks/main-c2259007260bacc3.js",
       "static/css/94fdbc56eafa2039.css",
-      "static/chunks/pages/css-5e256e56d8e26951.js",
+      "static/chunks/pages/css-def6640896bfc8ae.js",
     ],
     "/dynamic": [
-      "static/chunks/webpack-d9965445ebce461e.js",
-      "static/chunks/main-6234f5ec8b960add.js",
-      "static/chunks/pages/dynamic-c81f7204b8a7f946.js",
+      "static/chunks/webpack-ce219a492e907d91.js",
+      "static/chunks/framework-114cbddc60b679b8.js",
+      "static/chunks/main-c2259007260bacc3.js",
+      "static/chunks/pages/dynamic-7bf32ffb44a037d0.js",
     ],
     "/edge-ssr": [
-      "static/chunks/webpack-d9965445ebce461e.js",
-      "static/chunks/main-6234f5ec8b960add.js",
-      "static/chunks/pages/edge-ssr-36372aa7b0810cd4.js",
+      "static/chunks/webpack-ce219a492e907d91.js",
+      "static/chunks/framework-114cbddc60b679b8.js",
+      "static/chunks/main-c2259007260bacc3.js",
+      "static/chunks/pages/edge-ssr-ad93e82e81b1c9ff.js",
     ],
     "/head": [
-      "static/chunks/webpack-d9965445ebce461e.js",
-      "static/chunks/main-6234f5ec8b960add.js",
-      "static/chunks/pages/head-bba3641f74516a0d.js",
+      "static/chunks/webpack-ce219a492e907d91.js",
+      "static/chunks/framework-114cbddc60b679b8.js",
+      "static/chunks/main-c2259007260bacc3.js",
+      "static/chunks/pages/head-5379f346c867bad3.js",
     ],
     "/hooks": [
-      "static/chunks/webpack-d9965445ebce461e.js",
-      "static/chunks/main-6234f5ec8b960add.js",
-      "static/chunks/pages/hooks-5bc49a85e3a1ebb1.js",
+      "static/chunks/webpack-ce219a492e907d91.js",
+      "static/chunks/framework-114cbddc60b679b8.js",
+      "static/chunks/main-c2259007260bacc3.js",
+      "static/chunks/pages/hooks-532e6223bcd08cbd.js",
     ],
     "/image": [
-      "static/chunks/webpack-d9965445ebce461e.js",
-      "static/chunks/main-6234f5ec8b960add.js",
-      "static/chunks/pages/image-e4e98b3ddd87094f.js",
+      "static/chunks/webpack-ce219a492e907d91.js",
+      "static/chunks/framework-114cbddc60b679b8.js",
+      "static/chunks/main-c2259007260bacc3.js",
+      "static/chunks/pages/image-d242a517ac73bb89.js",
     ],
     "/link": [
-      "static/chunks/webpack-d9965445ebce461e.js",
-      "static/chunks/main-6234f5ec8b960add.js",
-      "static/chunks/pages/link-ee4f7deeb8112e61.js",
+      "static/chunks/webpack-ce219a492e907d91.js",
+      "static/chunks/framework-114cbddc60b679b8.js",
+      "static/chunks/main-c2259007260bacc3.js",
+      "static/chunks/pages/link-c4d65ef76e0b1120.js",
     ],
     "/routerDirect": [
-      "static/chunks/webpack-d9965445ebce461e.js",
-      "static/chunks/main-6234f5ec8b960add.js",
-      "static/chunks/pages/routerDirect-5d7d47d901e3719c.js",
+      "static/chunks/webpack-ce219a492e907d91.js",
+      "static/chunks/framework-114cbddc60b679b8.js",
+      "static/chunks/main-c2259007260bacc3.js",
+      "static/chunks/pages/routerDirect-3569e048e77166f9.js",
     ],
     "/script": [
-      "static/chunks/webpack-d9965445ebce461e.js",
-      "static/chunks/main-6234f5ec8b960add.js",
-      "static/chunks/pages/script-7181948a834b7ae4.js",
+      "static/chunks/webpack-ce219a492e907d91.js",
+      "static/chunks/framework-114cbddc60b679b8.js",
+      "static/chunks/main-c2259007260bacc3.js",
+      "static/chunks/pages/script-c4fcc5818ac81f62.js",
     ],
     "/withRouter": [
-      "static/chunks/webpack-d9965445ebce461e.js",
-      "static/chunks/main-6234f5ec8b960add.js",
-      "static/chunks/pages/withRouter-ebac16c2d9b51247.js",
+      "static/chunks/webpack-ce219a492e907d91.js",
+      "static/chunks/framework-114cbddc60b679b8.js",
+      "static/chunks/main-c2259007260bacc3.js",
+      "static/chunks/pages/withRouter-f8336139d5d46155.js",
     ],
   },
   ampFirstPages: [],
Diff for middleware-r..-manifest.js
@@ -1,6 +1,6 @@
 self.__REACT_LOADABLE_MANIFEST = {
   "dynamic.js -> ../components/hello": {
-    id: 4869,
-    files: ["static/chunks/869.cb3f1602da3175db.js"],
+    id: 5684,
+    files: ["static/chunks/959.4001132f5a5b37e4.js"],
   },
 };
Diff for middleware.js
@@ -2,7 +2,7 @@
 (self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
   [826],
   {
-    /***/ 8835: /***/ (
+    /***/ 8714: /***/ (
       __unused_webpack_module,
       __webpack_exports__,
       __webpack_require__
@@ -15,7 +15,7 @@
       __webpack_require__.d(__webpack_exports__, {
         default: () =>
           /* binding */ next_middleware_loaderabsolutePagePath_private_next_root_dir_2Fmiddleware_js_page_2Fmiddleware_rootDir_2Ftmp_2Fnext_statssErl7J_2Fstats_app_matchers_,
-      }); // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/error.js
+      }); // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/error.js
 
       class PageSignatureError extends Error {
         constructor({ page }) {
@@ -42,7 +42,7 @@
   Read more: https://nextjs.org/docs/messages/middleware-parse-user-agent
   `);
         }
-      } // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/utils.js
+      } // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/utils.js
 
       //# sourceMappingURL=error.js.map
       function fromNodeHeaders(object) {
@@ -164,7 +164,7 @@
             }
           );
         }
-      } // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/spec-extension/fetch-event.js
+      } // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/spec-extension/fetch-event.js
 
       //# sourceMappingURL=utils.js.map
       const responseSymbol = Symbol("response");
@@ -210,7 +210,7 @@
             page: this.sourcePage,
           });
         }
-      } // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/i18n/detect-domain-locale.js
+      } // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/i18n/detect-domain-locale.js
 
       //# sourceMappingURL=fetch-event.js.map
       function detectDomainLocale(domainItems, hostname, detectedLocale) {
@@ -235,7 +235,7 @@
             return item;
           }
         }
-      } //# sourceMappingURL=detect-domain-locale.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/remove-trailing-slash.js
+      } //# sourceMappingURL=detect-domain-locale.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/remove-trailing-slash.js
 
       /**
        * Removes the trailing slash for a given route or page path. Preserves the
@@ -245,7 +245,7 @@
        *   - `/` -> `/`
        */ function removeTrailingSlash(route) {
         return route.replace(/\/$/, "") || "/";
-      } //# sourceMappingURL=remove-trailing-slash.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/parse-path.js
+      } //# sourceMappingURL=remove-trailing-slash.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/parse-path.js
 
       /**
        * Given a path this function will find the pathname, query and hash and return
@@ -273,7 +273,7 @@
           query: "",
           hash: "",
         };
-      } //# sourceMappingURL=parse-path.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/add-path-prefix.js
+      } //# sourceMappingURL=parse-path.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/add-path-prefix.js
 
       /**
        * Adds the provided prefix to the given path. It first ensures that the path
@@ -284,7 +284,7 @@
         }
         const { pathname, query, hash } = parsePath(path);
         return `${prefix}${pathname}${query}${hash}`;
-      } //# sourceMappingURL=add-path-prefix.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/add-path-suffix.js
+      } //# sourceMappingURL=add-path-prefix.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/add-path-suffix.js
 
       /**
        * Similarly to `addPathPrefix`, this function adds a suffix at the end on the
@@ -296,7 +296,7 @@
         }
         const { pathname, query, hash } = parsePath(path);
         return `${pathname}${suffix}${query}${hash}`;
-      } //# sourceMappingURL=add-path-suffix.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/path-has-prefix.js
+      } //# sourceMappingURL=add-path-suffix.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/path-has-prefix.js
 
       /**
        * Checks if a given path starts with a given prefix. It ensures it matches
@@ -310,7 +310,7 @@
         }
         const { pathname } = parsePath(path);
         return pathname === prefix || pathname.startsWith(prefix + "/");
-      } //# sourceMappingURL=path-has-prefix.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/add-locale.js
+      } //# sourceMappingURL=path-has-prefix.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/add-locale.js
 
       /**
        * For a given path and a locale, if the locale is given, it will prefix the
@@ -329,7 +329,7 @@
         }
         // Add the locale prefix to the path.
         return addPathPrefix(path, `/${locale}`);
-      } //# sourceMappingURL=add-locale.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/format-next-pathname-info.js
+      } //# sourceMappingURL=add-locale.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/format-next-pathname-info.js
 
       function formatNextPathnameInfo(info) {
         let pathname = addLocale(
@@ -353,7 +353,7 @@
             ? addPathSuffix(pathname, "/")
             : pathname
           : removeTrailingSlash(pathname);
-      } //# sourceMappingURL=format-next-pathname-info.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/get-hostname.js
+      } //# sourceMappingURL=format-next-pathname-info.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/get-hostname.js
 
       /**
        * Takes an object with a hostname property (like a parsed URL) and some
@@ -373,7 +373,7 @@
           hostname = parsed.hostname;
         } else return;
         return hostname.toLowerCase();
-      } //# sourceMappingURL=get-hostname.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/i18n/normalize-locale-path.js
+      } //# sourceMappingURL=get-hostname.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/i18n/normalize-locale-path.js
 
       /**
        * For a pathname that may include a locale from a list of locales, it
@@ -403,7 +403,7 @@
           pathname,
           detectedLocale,
         };
-      } //# sourceMappingURL=normalize-locale-path.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/remove-path-prefix.js
+      } //# sourceMappingURL=normalize-locale-path.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/remove-path-prefix.js
 
       /**
        * Given a path and a prefix it will remove the prefix when it exists in the
@@ -437,7 +437,7 @@
         // If the path without the prefix doesn't start with a `/` we need to add it
         // back to the path to make sure it's a valid path.
         return `/${withoutPrefix}`;
-      } //# sourceMappingURL=remove-path-prefix.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/get-next-pathname-info.js
+      } //# sourceMappingURL=remove-path-prefix.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/get-next-pathname-info.js
 
       function getNextPathnameInfo(pathname, options) {
         var _nextConfig;
@@ -484,7 +484,7 @@
               : info.pathname;
         }
         return info;
-      } //# sourceMappingURL=get-next-pathname-info.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/next-url.js
+      } //# sourceMappingURL=get-next-pathname-info.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/next-url.js
 
       const REGEX_LOCALHOST_HOSTNAME =
         /(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|::1|localhost)/;
@@ -701,8 +701,8 @@
       }
 
       //# sourceMappingURL=next-url.js.map
-      // EXTERNAL MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js
-      var cookies = __webpack_require__(29); // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/spec-extension/cookies.js // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/spec-extension/request.js
+      // EXTERNAL MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js
+      var cookies = __webpack_require__(8432); // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/spec-extension/cookies.js // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/spec-extension/request.js
       //# sourceMappingURL=cookies.js.map
       const INTERNALS = Symbol("internal request");
       class NextRequest extends Request {
@@ -777,7 +777,7 @@
         get url() {
           return this[INTERNALS].url;
         }
-      } // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/spec-extension/response.js
+      } // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/spec-extension/response.js
 
       //# sourceMappingURL=request.js.map
       const response_INTERNALS = Symbol("internal response");
@@ -877,7 +877,7 @@
             headers,
           });
         }
-      } // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/relativize-url.js
+      } // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/relativize-url.js
 
       //# sourceMappingURL=response.js.map
       /**
@@ -891,7 +891,7 @@
         return `${relative.protocol}//${relative.host}` === origin
           ? relative.toString().replace(origin, "")
           : relative.toString();
-      } //# sourceMappingURL=relativize-url.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/internal-utils.js
+      } //# sourceMappingURL=relativize-url.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/internal-utils.js
 
       const INTERNAL_QUERY_NAMES = [
         "__nextFallback",
@@ -916,7 +916,7 @@
           }
         }
         return searchParams;
-      } // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/app-paths.js
+      } // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/app-paths.js
 
       //# sourceMappingURL=internal-utils.js.map
       /**
@@ -968,7 +968,7 @@
        * Since this function is used on full urls it checks `?` for searchParams handling.
        */ function normalizeRscPath(pathname, enabled) {
         return enabled ? pathname.replace(/\.rsc($|\?)/, "$1") : pathname;
-      } //# sourceMappingURL=app-paths.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/client/components/app-router-headers.js
+      } //# sourceMappingURL=app-paths.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/client/components/app-router-headers.js
 
       const RSC = "RSC";
       const ACTION = "Next-Action";
@@ -982,7 +982,7 @@
         [RSC],
         [NEXT_ROUTER_STATE_TREE],
         [NEXT_ROUTER_PREFETCH],
-      ]; //# sourceMappingURL=app-router-headers.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/lib/constants.js
+      ]; //# sourceMappingURL=app-router-headers.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/lib/constants.js
 
       const NEXT_QUERY_PARAM_PREFIX = "nxtP";
       // in seconds
@@ -1072,7 +1072,7 @@
         middleware: "middleware",
         edgeAsset: "edge-asset",
         appClient: "app-client",
-      }; // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/adapter.js
+      }; // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/adapter.js
 
       //# sourceMappingURL=constants.js.map
       class NextRequestHint extends NextRequest {
@@ -1330,12 +1330,12 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
             throw err;
           }
         }
-      } // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/build/webpack/loaders/next-middleware-loader.js?absolutePagePath=private-next-root-dir%2Fmiddleware.js&page=%2Fmiddleware&rootDir=%2Ftmp%2Fnext-statssErl7J%2Fstats-app&matchers=!
+      } // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/build/webpack/loaders/next-middleware-loader.js?absolutePagePath=private-next-root-dir%2Fmiddleware.js&page=%2Fmiddleware&rootDir=%2Ftmp%2Fnext-statssErl7J%2Fstats-app&matchers=!
 
       //# sourceMappingURL=adapter.js.map
       enhanceGlobals();
 
-      var mod = __webpack_require__(7917);
+      var mod = __webpack_require__(619);
       var handler = mod.middleware || mod.default;
 
       if (typeof handler !== "function") {
@@ -1357,7 +1357,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
       /***/
     },
 
-    /***/ 7917: /***/ (
+    /***/ 619: /***/ (
       __unused_webpack_module,
       __webpack_exports__,
       __webpack_require__
@@ -1369,7 +1369,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
         /* harmony export */
       });
       /* harmony import */ var next_dist_server_web_exports_next_response__WEBPACK_IMPORTED_MODULE_0__ =
-        __webpack_require__(7721);
+        __webpack_require__(4716);
 
       async function middleware() {
         return next_dist_server_web_exports_next_response__WEBPACK_IMPORTED_MODULE_0__ /* ["default"].next */.Z.next();
@@ -1378,7 +1378,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
       /***/
     },
 
-    /***/ 1710: /***/ (__unused_webpack_module, exports) => {
+    /***/ 3426: /***/ (__unused_webpack_module, exports) => {
       "use strict";
 
       Object.defineProperty(exports, "__esModule", {
@@ -1403,7 +1403,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
       /***/
     },
 
-    /***/ 8771: /***/ (__unused_webpack_module, exports) => {
+    /***/ 5253: /***/ (__unused_webpack_module, exports) => {
       "use strict";
 
       Object.defineProperty(exports, "__esModule", {
@@ -1437,7 +1437,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
       /***/
     },
 
-    /***/ 6567: /***/ (__unused_webpack_module, exports) => {
+    /***/ 1425: /***/ (__unused_webpack_module, exports) => {
       "use strict";
 
       Object.defineProperty(exports, "__esModule", {
@@ -1469,7 +1469,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
       /***/
     },
 
-    /***/ 7139: /***/ (
+    /***/ 5259: /***/ (
       __unused_webpack_module,
       exports,
       __webpack_require__
@@ -1480,8 +1480,8 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
         value: true,
       });
       exports.addLocale = addLocale;
-      var _addPathPrefix = __webpack_require__(1330);
-      var _pathHasPrefix = __webpack_require__(4434);
+      var _addPathPrefix = __webpack_require__(4208);
+      var _pathHasPrefix = __webpack_require__(9301);
       function addLocale(path, locale, defaultLocale, ignorePrefix) {
         // If no locale was given or the locale is the default locale, we don't need
         // to prefix the path.
@@ -1503,7 +1503,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
       /***/
     },
 
-    /***/ 1330: /***/ (
+    /***/ 4208: /***/ (
       __unused_webpack_module,
       exports,
       __webpack_require__
@@ -1514,7 +1514,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
         value: true,
       });
       exports.addPathPrefix = addPathPrefix;
-      var _parsePath = __webpack_require__(211);
+      var _parsePath = __webpack_require__(2929);
       function addPathPrefix(path, prefix) {
         if (!path.startsWith("/") || !prefix) {
           return path;
@@ -1526,7 +1526,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
       /***/
     },
 
-    /***/ 8756: /***/ (
+    /***/ 9670: /***/ (
       __unused_webpack_module,
       exports,
       __webpack_require__
@@ -1537,7 +1537,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
         value: true,
       });
       exports.addPathSuffix = addPathSuffix;
-      var _parsePath = __webpack_require__(211);
+      var _parsePath = __webpack_require__(2929);
       function addPathSuffix(path, suffix) {
         if (!path.startsWith("/") || !suffix) {
           return path;
@@ -1549,7 +1549,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
       /***/
     },
 
-    /***/ 1442: /***/ (
+    /***/ 8265: /***/ (
       __unused_webpack_module,
       exports,
       __webpack_require__
@@ -1560,10 +1560,10 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
         value: true,
       });
       exports.formatNextPathnameInfo = formatNextPathnameInfo;
-      var _removeTrailingSlash = __webpack_require__(4877);
-      var _addPathPrefix = __webpack_require__(1330);
-      var _addPathSuffix = __webpack_require__(8756);
-      var _addLocale = __webpack_require__(7139);
+      var _removeTrailingSlash = __webpack_require__(7876);
+      var _addPathPrefix = __webpack_require__(4208);
+      var _addPathSuffix = __webpack_require__(9670);
+      var _addLocale = __webpack_require__(5259);
       function formatNextPathnameInfo(info) {
         let pathname = (0, _addLocale).addLocale(
           info.pathname,
@@ -1594,7 +1594,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
       /***/
     },
 
-    /***/ 4132: /***/ (
+    /***/ 4751: /***/ (
       __unused_webpack_module,
       exports,
       __webpack_require__
@@ -1605,9 +1605,9 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
         value: true,
       });
       exports.getNextPathnameInfo = getNextPathnameInfo;
-      var _normalizeLocalePath = __webpack_require__(6567);
-      var _removePathPrefix = __webpack_require__(6881);
-      var _pathHasPrefix = __webpack_require__(4434);
+      var _normalizeLocalePath = __webpack_require__(1425);
+      var _removePathPrefix = __webpack_require__(2576);
+      var _pathHasPrefix = __webpack_require__(9301);
       function getNextPathnameInfo(pathname, options) {
         var _nextConfig;
         const { basePath, i18n, trailingSlash } =
@@ -1667,7 +1667,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
       /***/
     },
 
-    /***/ 211: /***/ (__unused_webpack_module, exports) => {
+    /***/ 2929: /***/ (__unused_webpack_module, exports) => {
       "use strict";
 
       Object.defineProperty(exports, "__esModule", {
@@ -1701,7 +1701,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
       /***/
     },
 
-    /***/ 4434: /***/ (
+    /***/ 9301: /***/ (
       __unused_webpack_module,
       exports,
       __webpack_require__
@@ -1712,7 +1712,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
         value: true,
       });
       exports.pathHasPrefix = pathHasPrefix;
-      var _parsePath = __webpack_require__(211);
+      var _parsePath = __webpack_require__(2929);
       function pathHasPrefix(path, prefix) {
         if (typeof path !== "string") {
           return false;
@@ -1724,7 +1724,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
       /***/
     },
 
-    /***/ 6881: /***/ (
+    /***/ 2576: /***/ (
       __unused_webpack_module,
       exports,
       __webpack_require__
@@ -1735,7 +1735,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
         value: true,
       });
       exports.removePathPrefix = removePathPrefix;
-      var _pathHasPrefix = __webpack_require__(4434);
+      var _pathHasPrefix = __webpack_require__(9301);
       function removePathPrefix(path, prefix) {
         // If the path doesn't start with the prefix we can return it as is. This
         // protects us from situations where the prefix is a substring of the path
@@ -1766,7 +1766,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
       /***/
     },
 
-    /***/ 4877: /***/ (__unused_webpack_module, exports) => {
+    /***/ 7876: /***/ (__unused_webpack_module, exports) => {
       "use strict";
 
       Object.defineProperty(exports, "__esModule", {
@@ -1780,7 +1780,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
       /***/
     },
 
-    /***/ 29: /***/ (module) => {
+    /***/ 8432: /***/ (module) => {
       "use strict";
 
       var __defProp = Object.defineProperty;
@@ -2110,7 +2110,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
       /***/
     },
 
-    /***/ 7721: /***/ (
+    /***/ 4716: /***/ (
       __unused_webpack_module,
       exports,
       __webpack_require__
@@ -2127,14 +2127,14 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
           return _response.NextResponse;
         },
       });
-      var _response = __webpack_require__(5277);
+      var _response = __webpack_require__(5165);
 
       //# sourceMappingURL=next-response.js.map
 
       /***/
     },
 
-    /***/ 3062: /***/ (
+    /***/ 4901: /***/ (
       __unused_webpack_module,
       exports,
       __webpack_require__
@@ -2144,10 +2144,10 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
       Object.defineProperty(exports, "__esModule", {
         value: true,
       });
-      var _detectDomainLocale = __webpack_require__(8771);
-      var _formatNextPathnameInfo = __webpack_require__(1442);
-      var _getHostname = __webpack_require__(1710);
-      var _getNextPathnameInfo = __webpack_require__(4132);
+      var _detectDomainLocale = __webpack_require__(5253);
+      var _formatNextPathnameInfo = __webpack_require__(8265);
+      var _getHostname = __webpack_require__(3426);
+      var _getNextPathnameInfo = __webpack_require__(4751);
       const REGEX_LOCALHOST_HOSTNAME =
         /(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|::1|localhost)/;
       function parseURL(url, base) {
@@ -2371,7 +2371,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
       /***/
     },
 
-    /***/ 3868: /***/ (
+    /***/ 4570: /***/ (
       __unused_webpack_module,
       exports,
       __webpack_require__
@@ -2381,7 +2381,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
       Object.defineProperty(exports, "__esModule", {
         value: true,
       });
-      var _cookies = _interopRequireWildcard(__webpack_require__(29));
+      var _cookies = _interopRequireWildcard(__webpack_require__(8432));
       Object.keys(_cookies).forEach(function (key) {
         if (key === "default" || key === "__esModule") return;
         if (key in exports && exports[key] === _cookies[key]) return;
@@ -2443,7 +2443,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
       /***/
     },
 
-    /***/ 5277: /***/ (
+    /***/ 5165: /***/ (
       __unused_webpack_module,
       exports,
       __webpack_require__
@@ -2453,9 +2453,9 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
       Object.defineProperty(exports, "__esModule", {
         value: true,
       });
-      var _nextUrl = __webpack_require__(3062);
-      var _utils = __webpack_require__(88);
-      var _cookies = __webpack_require__(3868);
+      var _nextUrl = __webpack_require__(4901);
+      var _utils = __webpack_require__(30);
+      var _cookies = __webpack_require__(4570);
       const INTERNALS = Symbol("internal response");
       const REDIRECTS = new Set([301, 302, 303, 307, 308]);
       function handleMiddlewareField(init, headers) {
@@ -2564,7 +2564,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
       /***/
     },
 
-    /***/ 88: /***/ (__unused_webpack_module, exports) => {
+    /***/ 30: /***/ (__unused_webpack_module, exports) => {
       "use strict";
 
       Object.defineProperty(exports, "__esModule", {
@@ -2693,7 +2693,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
     // webpackRuntimeModules
     /******/ var __webpack_exec__ = (moduleId) =>
       __webpack_require__((__webpack_require__.s = moduleId));
-    /******/ var __webpack_exports__ = __webpack_exec__(8835);
+    /******/ var __webpack_exports__ = __webpack_exec__(8714);
     /******/ (_ENTRIES =
       typeof _ENTRIES === "undefined" ? {} : _ENTRIES).middleware_middleware =
       __webpack_exports__;
Diff for edge-ssr.js

Diff too large to display

Diff for _buildManifest.js
@@ -1,28 +1,28 @@
 self.__BUILD_MANIFEST = {
   __rewrites: { beforeFiles: [], afterFiles: [], fallback: [] },
-  "/": ["static\u002Fchunks\u002Fpages\u002Findex-96b4df8f97c0f01a.js"],
-  "/_error": ["static\u002Fchunks\u002Fpages\u002F_error-d79135b4d7090152.js"],
-  "/amp": ["static\u002Fchunks\u002Fpages\u002Famp-3e73e98c5f333ae8.js"],
+  "/": ["static\u002Fchunks\u002Fpages\u002Findex-0aafd9ae198e641d.js"],
+  "/_error": ["static\u002Fchunks\u002Fpages\u002F_error-7147fadf460d658d.js"],
+  "/amp": ["static\u002Fchunks\u002Fpages\u002Famp-342f0ad75d02973e.js"],
   "/css": [
     "static\u002Fcss\u002F94fdbc56eafa2039.css",
-    "static\u002Fchunks\u002Fpages\u002Fcss-5e256e56d8e26951.js",
+    "static\u002Fchunks\u002Fpages\u002Fcss-def6640896bfc8ae.js",
   ],
   "/dynamic": [
-    "static\u002Fchunks\u002Fpages\u002Fdynamic-c81f7204b8a7f946.js",
+    "static\u002Fchunks\u002Fpages\u002Fdynamic-7bf32ffb44a037d0.js",
   ],
   "/edge-ssr": [
-    "static\u002Fchunks\u002Fpages\u002Fedge-ssr-36372aa7b0810cd4.js",
+    "static\u002Fchunks\u002Fpages\u002Fedge-ssr-ad93e82e81b1c9ff.js",
   ],
-  "/head": ["static\u002Fchunks\u002Fpages\u002Fhead-bba3641f74516a0d.js"],
-  "/hooks": ["static\u002Fchunks\u002Fpages\u002Fhooks-5bc49a85e3a1ebb1.js"],
-  "/image": ["static\u002Fchunks\u002Fpages\u002Fimage-e4e98b3ddd87094f.js"],
-  "/link": ["static\u002Fchunks\u002Fpages\u002Flink-ee4f7deeb8112e61.js"],
+  "/head": ["static\u002Fchunks\u002Fpages\u002Fhead-5379f346c867bad3.js"],
+  "/hooks": ["static\u002Fchunks\u002Fpages\u002Fhooks-532e6223bcd08cbd.js"],
+  "/image": ["static\u002Fchunks\u002Fpages\u002Fimage-d242a517ac73bb89.js"],
+  "/link": ["static\u002Fchunks\u002Fpages\u002Flink-c4d65ef76e0b1120.js"],
   "/routerDirect": [
-    "static\u002Fchunks\u002Fpages\u002FrouterDirect-5d7d47d901e3719c.js",
+    "static\u002Fchunks\u002Fpages\u002FrouterDirect-3569e048e77166f9.js",
   ],
-  "/script": ["static\u002Fchunks\u002Fpages\u002Fscript-7181948a834b7ae4.js"],
+  "/script": ["static\u002Fchunks\u002Fpages\u002Fscript-c4fcc5818ac81f62.js"],
   "/withRouter": [
-    "static\u002Fchunks\u002Fpages\u002FwithRouter-ebac16c2d9b51247.js",
+    "static\u002Fchunks\u002Fpages\u002FwithRouter-f8336139d5d46155.js",
   ],
   sortedPages: [
     "\u002F",
Diff for _app-HASH.js
@@ -1,7 +1,7 @@
 (self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
   [888],
   {
-    /***/ 3115: /***/ function (
+    /***/ 1113: /***/ function (
       __unused_webpack_module,
       __unused_webpack_exports,
       __webpack_require__
@@ -9,7 +9,7 @@
       (window.__NEXT_P = window.__NEXT_P || []).push([
         "/_app",
         function () {
-          return __webpack_require__(9618);
+          return __webpack_require__(6822);
         },
       ]);
       if (false) {
@@ -23,8 +23,8 @@
     /******/ var __webpack_exec__ = function (moduleId) {
       return __webpack_require__((__webpack_require__.s = moduleId));
     };
-    /******/ __webpack_require__.O(0, [179], function () {
-      return __webpack_exec__(3115), __webpack_exec__(5038);
+    /******/ __webpack_require__.O(0, [774, 179], function () {
+      return __webpack_exec__(1113), __webpack_exec__(1556);
     });
     /******/ var __webpack_exports__ = __webpack_require__.O();
     /******/ _N_E = __webpack_exports__;
Diff for _error-HASH.js
@@ -1,7 +1,7 @@
 (self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
   [820],
   {
-    /***/ 5374: /***/ function (
+    /***/ 3363: /***/ function (
       __unused_webpack_module,
       __unused_webpack_exports,
       __webpack_require__
@@ -9,7 +9,7 @@
       (window.__NEXT_P = window.__NEXT_P || []).push([
         "/_error",
         function () {
-          return __webpack_require__(1261);
+          return __webpack_require__(3972);
         },
       ]);
       if (false) {
@@ -23,8 +23,8 @@
     /******/ var __webpack_exec__ = function (moduleId) {
       return __webpack_require__((__webpack_require__.s = moduleId));
     };
-    /******/ __webpack_require__.O(0, [888, 179], function () {
-      return __webpack_exec__(5374);
+    /******/ __webpack_require__.O(0, [888, 774, 179], function () {
+      return __webpack_exec__(3363);
     });
     /******/ var __webpack_exports__ = __webpack_require__.O();
     /******/ _N_E = __webpack_exports__;
Diff for amp-HASH.js
@@ -1,17 +1,17 @@
 (self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
   [216],
   {
-    /***/ 8510: /***/ function (
+    /***/ 8753: /***/ function (
       module,
       __unused_webpack_exports,
       __webpack_require__
     ) {
-      module.exports = __webpack_require__(6863);
+      module.exports = __webpack_require__(1088);
 
       /***/
     },
 
-    /***/ 7010: /***/ function (
+    /***/ 5348: /***/ function (
       __unused_webpack_module,
       __unused_webpack_exports,
       __webpack_require__
@@ -19,7 +19,7 @@
       (window.__NEXT_P = window.__NEXT_P || []).push([
         "/amp",
         function () {
-          return __webpack_require__(8381);
+          return __webpack_require__(1458);
         },
       ]);
       if (false) {
@@ -28,7 +28,7 @@
       /***/
     },
 
-    /***/ 6863: /***/ function (module, exports, __webpack_require__) {
+    /***/ 1088: /***/ function (module, exports, __webpack_require__) {
       "use strict";
 
       Object.defineProperty(exports, "__esModule", {
@@ -37,9 +37,9 @@
       exports.useAmp = useAmp;
       var _interop_require_default =
         __webpack_require__(1322) /* ["default"] */.Z;
-      var _react = _interop_require_default(__webpack_require__(2947));
-      var _ampContext = __webpack_require__(7218);
-      var _ampMode = __webpack_require__(9569);
+      var _react = _interop_require_default(__webpack_require__(959));
+      var _ampContext = __webpack_require__(583);
+      var _ampMode = __webpack_require__(8881);
       function useAmp() {
         // Don't assign the context value to a variable to save bytes
         return (0, _ampMode).isInAmpMode(
@@ -61,7 +61,7 @@
       /***/
     },
 
-    /***/ 8381: /***/ function (
+    /***/ 1458: /***/ function (
       __unused_webpack_module,
       __webpack_exports__,
       __webpack_require__
@@ -78,7 +78,7 @@
         /* harmony export */
       });
       /* harmony import */ var next_amp__WEBPACK_IMPORTED_MODULE_0__ =
-        __webpack_require__(8510);
+        __webpack_require__(8753);
       /* harmony import */ var next_amp__WEBPACK_IMPORTED_MODULE_0___default =
         /*#__PURE__*/ __webpack_require__.n(
           next_amp__WEBPACK_IMPORTED_MODULE_0__
@@ -101,8 +101,8 @@
     /******/ var __webpack_exec__ = function (moduleId) {
       return __webpack_require__((__webpack_require__.s = moduleId));
     };
-    /******/ __webpack_require__.O(0, [888, 179], function () {
-      return __webpack_exec__(7010);
+    /******/ __webpack_require__.O(0, [888, 774, 179], function () {
+      return __webpack_exec__(5348);
     });
     /******/ var __webpack_exports__ = __webpack_require__.O();
     /******/ _N_E = __webpack_exports__;
Diff for css-HASH.js
@@ -1,7 +1,7 @@
 (self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
   [706],
   {
-    /***/ 860: /***/ function (
+    /***/ 6437: /***/ function (
       __unused_webpack_module,
       __unused_webpack_exports,
       __webpack_require__
@@ -9,7 +9,7 @@
       (window.__NEXT_P = window.__NEXT_P || []).push([
         "/css",
         function () {
-          return __webpack_require__(3215);
+          return __webpack_require__(5701);
         },
       ]);
       if (false) {
@@ -18,7 +18,7 @@
       /***/
     },
 
-    /***/ 3215: /***/ function (
+    /***/ 5701: /***/ function (
       __unused_webpack_module,
       __webpack_exports__,
       __webpack_require__
@@ -26,9 +26,9 @@
       "use strict";
       __webpack_require__.r(__webpack_exports__);
       /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ =
-        __webpack_require__(3268);
+        __webpack_require__(1527);
       /* harmony import */ var _css_module_css__WEBPACK_IMPORTED_MODULE_1__ =
-        __webpack_require__(4294);
+        __webpack_require__(5725);
       /* harmony import */ var _css_module_css__WEBPACK_IMPORTED_MODULE_1___default =
         /*#__PURE__*/ __webpack_require__.n(
           _css_module_css__WEBPACK_IMPORTED_MODULE_1__
@@ -48,85 +48,20 @@
       /***/
     },
 
-    /***/ 4294: /***/ function (module) {
+    /***/ 5725: /***/ function (module) {
       // extracted by mini-css-extract-plugin
       module.exports = { helloWorld: "css_helloWorld__qqNwY" };
 
       /***/
     },
-
-    /***/ 6205: /***/ function (
-      __unused_webpack_module,
-      exports,
-      __webpack_require__
-    ) {
-      "use strict";
-      /**
-       * @license React
-       * react-jsx-runtime.production.min.js
-       *
-       * Copyright (c) Meta Platforms, Inc. and affiliates.
-       *
-       * This source code is licensed under the MIT license found in the
-       * LICENSE file in the root directory of this source tree.
-       */
-      var f = __webpack_require__(2947),
-        k = Symbol.for("react.element"),
-        l = Symbol.for("react.fragment"),
-        m = Object.prototype.hasOwnProperty,
-        n =
-          f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
-            .ReactCurrentOwner,
-        p = { key: !0, ref: !0, __self: !0, __source: !0 };
-      function q(c, a, g) {
-        var b,
-          d = {},
-          e = null,
-          h = null;
-        void 0 !== g && (e = "" + g);
-        void 0 !== a.key && (e = "" + a.key);
-        void 0 !== a.ref && (h = a.ref);
-        for (b in a) m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
-        if (c && c.defaultProps)
-          for (b in ((a = c.defaultProps), a)) void 0 === d[b] && (d[b] = a[b]);
-        return {
-          $$typeof: k,
-          type: c,
-          key: e,
-          ref: h,
-          props: d,
-          _owner: n.current,
-        };
-      }
-      exports.Fragment = l;
-      exports.jsx = q;
-      exports.jsxs = q;
-
-      /***/
-    },
-
-    /***/ 3268: /***/ function (
-      module,
-      __unused_webpack_exports,
-      __webpack_require__
-    ) {
-      "use strict";
-
-      if (true) {
-        module.exports = __webpack_require__(6205);
-      } else {
-      }
-
-      /***/
-    },
   },
   /******/ function (__webpack_require__) {
     // webpackRuntimeModules
     /******/ var __webpack_exec__ = function (moduleId) {
       return __webpack_require__((__webpack_require__.s = moduleId));
     };
-    /******/ __webpack_require__.O(0, [888, 179], function () {
-      return __webpack_exec__(860);
+    /******/ __webpack_require__.O(0, [774, 888, 179], function () {
+      return __webpack_exec__(6437);
     });
     /******/ var __webpack_exports__ = __webpack_require__.O();
     /******/ _N_E = __webpack_exports__;
Diff for dynamic-HASH.js
@@ -1,7 +1,7 @@
 (self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
   [739],
   {
-    /***/ 3995: /***/ function (
+    /***/ 7753: /***/ function (
       __unused_webpack_module,
       __unused_webpack_exports,
       __webpack_require__
@@ -9,7 +9,7 @@
       (window.__NEXT_P = window.__NEXT_P || []).push([
         "/dynamic",
         function () {
-          return __webpack_require__(8267);
+          return __webpack_require__(825);
         },
       ]);
       if (false) {
@@ -18,7 +18,7 @@
       /***/
     },
 
-    /***/ 6854: /***/ function (module, exports, __webpack_require__) {
+    /***/ 1678: /***/ function (module, exports, __webpack_require__) {
       "use strict";
 
       Object.defineProperty(exports, "__esModule", {
@@ -29,8 +29,8 @@
       var _extends = __webpack_require__(5321) /* ["default"] */.Z;
       var _interop_require_default =
         __webpack_require__(1322) /* ["default"] */.Z;
-      var _react = _interop_require_default(__webpack_require__(2947));
-      var _loadable = _interop_require_default(__webpack_require__(8673));
+      var _react = _interop_require_default(__webpack_require__(959));
+      var _loadable = _interop_require_default(__webpack_require__(899));
       function dynamic(dynamicOptions, options) {
         let loadableFn = _loadable.default;
         let loadableOptions = {
@@ -127,7 +127,7 @@
       /***/
     },
 
-    /***/ 3611: /***/ function (
+    /***/ 6601: /***/ function (
       __unused_webpack_module,
       exports,
       __webpack_require__
@@ -140,7 +140,7 @@
       exports.LoadableContext = void 0;
       var _interop_require_default =
         __webpack_require__(1322) /* ["default"] */.Z;
-      var _react = _interop_require_default(__webpack_require__(2947));
+      var _react = _interop_require_default(__webpack_require__(959));
       const LoadableContext = _react.default.createContext(null);
       exports.LoadableContext = LoadableContext;
       if (false) {
@@ -149,7 +149,7 @@
       /***/
     },
 
-    /***/ 8673: /***/ function (
+    /***/ 899: /***/ function (
       __unused_webpack_module,
       exports,
       __webpack_require__
@@ -163,8 +163,8 @@
       var _extends = __webpack_require__(5321) /* ["default"] */.Z;
       var _interop_require_default =
         __webpack_require__(1322) /* ["default"] */.Z;
-      var _react = _interop_require_default(__webpack_require__(2947));
-      var _loadableContext = __webpack_require__(3611);
+      var _react = _interop_require_default(__webpack_require__(959));
+      var _loadableContext = __webpack_require__(6601);
       function resolve(obj) {
         return obj && obj.default ? obj.default : obj;
       }
@@ -404,7 +404,7 @@
       /***/
     },
 
-    /***/ 8267: /***/ function (
+    /***/ 825: /***/ function (
       __unused_webpack_module,
       __webpack_exports__,
       __webpack_require__
@@ -418,9 +418,9 @@
         /* harmony export */
       });
       /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ =
-        __webpack_require__(3268);
+        __webpack_require__(1527);
       /* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_1__ =
-        __webpack_require__(6113);
+        __webpack_require__(2677);
       /* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_1___default =
         /*#__PURE__*/ __webpack_require__.n(
           next_dynamic__WEBPACK_IMPORTED_MODULE_1__
@@ -429,11 +429,11 @@
       const DynamicHello = next_dynamic__WEBPACK_IMPORTED_MODULE_1___default()(
         () =>
           __webpack_require__
-            .e(/* import() */ 869)
-            .then(__webpack_require__.bind(__webpack_require__, 4869)),
+            .e(/* import() */ 959)
+            .then(__webpack_require__.bind(__webpack_require__, 5684)),
         {
           loadableGenerated: {
-            webpack: () => [/*require.resolve*/ 4869],
+            webpack: () => [/*require.resolve*/ 5684],
           },
         }
       );
@@ -460,77 +460,12 @@
       /***/
     },
 
-    /***/ 6205: /***/ function (
-      __unused_webpack_module,
-      exports,
-      __webpack_require__
-    ) {
-      "use strict";
-      /**
-       * @license React
-       * react-jsx-runtime.production.min.js
-       *
-       * Copyright (c) Meta Platforms, Inc. and affiliates.
-       *
-       * This source code is licensed under the MIT license found in the
-       * LICENSE file in the root directory of this source tree.
-       */
-      var f = __webpack_require__(2947),
-        k = Symbol.for("react.element"),
-        l = Symbol.for("react.fragment"),
-        m = Object.prototype.hasOwnProperty,
-        n =
-          f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
-            .ReactCurrentOwner,
-        p = { key: !0, ref: !0, __self: !0, __source: !0 };
-      function q(c, a, g) {
-        var b,
-          d = {},
-          e = null,
-          h = null;
-        void 0 !== g && (e = "" + g);
-        void 0 !== a.key && (e = "" + a.key);
-        void 0 !== a.ref && (h = a.ref);
-        for (b in a) m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
-        if (c && c.defaultProps)
-          for (b in ((a = c.defaultProps), a)) void 0 === d[b] && (d[b] = a[b]);
-        return {
-          $$typeof: k,
-          type: c,
-          key: e,
-          ref: h,
-          props: d,
-          _owner: n.current,
-        };
-      }
-      exports.Fragment = l;
-      exports.jsx = q;
-      exports.jsxs = q;
-
-      /***/
-    },
-
-    /***/ 3268: /***/ function (
-      module,
-      __unused_webpack_exports,
-      __webpack_require__
-    ) {
-      "use strict";
-
-      if (true) {
-        module.exports = __webpack_require__(6205);
-      } else {
-      }
-
-      /***/
-    },
-
-    /***/ 6113: /***/ function (
+    /***/ 2677: /***/ function (
       module,
       __unused_webpack_exports,
       __webpack_require__
     ) {
-      module.exports = __webpack_require__(6854);
+      module.exports = __webpack_require__(1678);
 
       /***/
     },
@@ -540,8 +475,8 @@
     /******/ var __webpack_exec__ = function (moduleId) {
       return __webpack_require__((__webpack_require__.s = moduleId));
     };
-    /******/ __webpack_require__.O(0, [888, 179], function () {
-      return __webpack_exec__(3995);
+    /******/ __webpack_require__.O(0, [774, 888, 179], function () {
+      return __webpack_exec__(7753);
     });
     /******/ var __webpack_exports__ = __webpack_require__.O();
     /******/ _N_E = __webpack_exports__;
Diff for edge-ssr-HASH.js
@@ -1,7 +1,7 @@
 (self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
   [800],
   {
-    /***/ 6219: /***/ function (
+    /***/ 6027: /***/ function (
       __unused_webpack_module,
       __unused_webpack_exports,
       __webpack_require__
@@ -9,7 +9,7 @@
       (window.__NEXT_P = window.__NEXT_P || []).push([
         "/edge-ssr",
         function () {
-          return __webpack_require__(7322);
+          return __webpack_require__(9526);
         },
       ]);
       if (false) {
@@ -18,7 +18,7 @@
       /***/
     },
 
-    /***/ 7322: /***/ function (
+    /***/ 9526: /***/ function (
       __unused_webpack_module,
       __webpack_exports__,
       __webpack_require__
@@ -49,8 +49,8 @@
     /******/ var __webpack_exec__ = function (moduleId) {
       return __webpack_require__((__webpack_require__.s = moduleId));
     };
-    /******/ __webpack_require__.O(0, [888, 179], function () {
-      return __webpack_exec__(6219);
+    /******/ __webpack_require__.O(0, [888, 774, 179], function () {
+      return __webpack_exec__(6027);
     });
     /******/ var __webpack_exports__ = __webpack_require__.O();
     /******/ _N_E = __webpack_exports__;
Diff for head-HASH.js
@@ -1,7 +1,7 @@
 (self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
   [645],
   {
-    /***/ 2899: /***/ function (
+    /***/ 6955: /***/ function (
       __unused_webpack_module,
       __unused_webpack_exports,
       __webpack_require__
@@ -9,7 +9,7 @@
       (window.__NEXT_P = window.__NEXT_P || []).push([
         "/head",
         function () {
-          return __webpack_require__(4463);
+          return __webpack_require__(157);
         },
       ]);
       if (false) {
@@ -18,7 +18,7 @@
       /***/
     },
 
-    /***/ 4463: /***/ function (
+    /***/ 157: /***/ function (
       __unused_webpack_module,
       __webpack_exports__,
       __webpack_require__
@@ -32,9 +32,9 @@
         /* harmony export */
       });
       /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ =
-        __webpack_require__(3268);
+        __webpack_require__(1527);
       /* harmony import */ var next_head__WEBPACK_IMPORTED_MODULE_1__ =
-        __webpack_require__(8412);
+        __webpack_require__(9046);
       /* harmony import */ var next_head__WEBPACK_IMPORTED_MODULE_1___default =
         /*#__PURE__*/ __webpack_require__.n(
           next_head__WEBPACK_IMPORTED_MODULE_1__
@@ -68,77 +68,12 @@
       /***/
     },
 
-    /***/ 6205: /***/ function (
-      __unused_webpack_module,
-      exports,
-      __webpack_require__
-    ) {
-      "use strict";
-      /**
-       * @license React
-       * react-jsx-runtime.production.min.js
-       *
-       * Copyright (c) Meta Platforms, Inc. and affiliates.
-       *
-       * This source code is licensed under the MIT license found in the
-       * LICENSE file in the root directory of this source tree.
-       */
-      var f = __webpack_require__(2947),
-        k = Symbol.for("react.element"),
-        l = Symbol.for("react.fragment"),
-        m = Object.prototype.hasOwnProperty,
-        n =
-          f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
-            .ReactCurrentOwner,
-        p = { key: !0, ref: !0, __self: !0, __source: !0 };
-      function q(c, a, g) {
-        var b,
-          d = {},
-          e = null,
-          h = null;
-        void 0 !== g && (e = "" + g);
-        void 0 !== a.key && (e = "" + a.key);
-        void 0 !== a.ref && (h = a.ref);
-        for (b in a) m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
-        if (c && c.defaultProps)
-          for (b in ((a = c.defaultProps), a)) void 0 === d[b] && (d[b] = a[b]);
-        return {
-          $$typeof: k,
-          type: c,
-          key: e,
-          ref: h,
-          props: d,
-          _owner: n.current,
-        };
-      }
-      exports.Fragment = l;
-      exports.jsx = q;
-      exports.jsxs = q;
-
-      /***/
-    },
-
-    /***/ 3268: /***/ function (
-      module,
-      __unused_webpack_exports,
-      __webpack_require__
-    ) {
-      "use strict";
-
-      if (true) {
-        module.exports = __webpack_require__(6205);
-      } else {
-      }
-
-      /***/
-    },
-
-    /***/ 8412: /***/ function (
+    /***/ 9046: /***/ function (
       module,
       __unused_webpack_exports,
       __webpack_require__
     ) {
-      module.exports = __webpack_require__(6593);
+      module.exports = __webpack_require__(6732);
 
       /***/
     },
@@ -148,8 +83,8 @@
     /******/ var __webpack_exec__ = function (moduleId) {
       return __webpack_require__((__webpack_require__.s = moduleId));
     };
-    /******/ __webpack_require__.O(0, [888, 179], function () {
-      return __webpack_exec__(2899);
+    /******/ __webpack_require__.O(0, [774, 888, 179], function () {
+      return __webpack_exec__(6955);
     });
     /******/ var __webpack_exports__ = __webpack_require__.O();
     /******/ _N_E = __webpack_exports__;
Diff for hooks-HASH.js
@@ -1,7 +1,7 @@
 (self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
   [757],
   {
-    /***/ 2304: /***/ function (
+    /***/ 7819: /***/ function (
       __unused_webpack_module,
       __unused_webpack_exports,
       __webpack_require__
@@ -9,7 +9,7 @@
       (window.__NEXT_P = window.__NEXT_P || []).push([
         "/hooks",
         function () {
-          return __webpack_require__(59);
+          return __webpack_require__(58);
         },
       ]);
       if (false) {
@@ -18,7 +18,7 @@
       /***/
     },
 
-    /***/ 59: /***/ function (
+    /***/ 58: /***/ function (
       __unused_webpack_module,
       __webpack_exports__,
       __webpack_require__
@@ -26,9 +26,9 @@
       "use strict";
       __webpack_require__.r(__webpack_exports__);
       /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ =
-        __webpack_require__(3268);
+        __webpack_require__(1527);
       /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ =
-        __webpack_require__(2947);
+        __webpack_require__(959);
 
       /* harmony default export */ __webpack_exports__["default"] = () => {
         const [clicks1, setClicks1
Post job cleanup.
[command]/usr/bin/git version
git version 2.40.0
Temporarily overriding HOME='/home/runner/work/_temp/aa7f19e7-13d4-4259-80bf-338300063e35' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/next.js/next.js
[command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
[command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
http.https://github.com/.extraheader
[command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Cleaning up orphan processes
Commit: e510c089f99a20b81b0995ba9ef7e0841d079590

@shuding shuding marked this pull request as ready for review April 12, 2023 22:40
@shuding shuding requested review from timneutkens, a team, huozhi and feedthejim as code owners April 12, 2023 22:40
@shuding shuding requested a review from ijjk April 12, 2023 22:40
@shuding shuding mentioned this pull request Apr 17, 2023
@shuding shuding closed this Apr 21, 2023
@shuding shuding deleted the shuding/next-231-add-tests-to-ensure-the-user-installed branch April 21, 2023 17:40
shuding added a commit that referenced this pull request Apr 21, 2023
Same purpose as #48297, but without the React channel branching logic to
make it easier to land. Since we have #48478 reverted, we only need to
consider `pages` and `app` inside the require hook.

> This PR aims to improve the current require hook by implementing two
key changes. Firstly, it ensures that the initialization occurs at the
top of the module level for correctness. Secondly, we now set the
NEXT_PREBUNDLED_REACT environment variable at the process level to
ensure that we don't mix the two types of rendering processes and we
always resolve the correct React package.
>
> These improvements are made possible by the changes introduced in PR
#47857.
> 
> Closes [NEXT-231](https://linear.app/vercel/issue/NEXT-231).

This will likely fix #45258 too.

---------

Co-authored-by: JJ Kasper <[email protected]>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants