@semiont/frontend 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/standalone/apps/frontend/.next/BUILD_ID +1 -1
- package/standalone/apps/frontend/.next/app-path-routes-manifest.json +8 -8
- package/standalone/apps/frontend/.next/build-manifest.json +6 -6
- package/standalone/apps/frontend/.next/prerender-manifest.json +3 -3
- package/standalone/apps/frontend/.next/react-loadable-manifest.json +2 -2
- package/standalone/apps/frontend/.next/required-server-files.json +18 -6
- package/standalone/apps/frontend/.next/routes-manifest.json +1 -0
- package/standalone/apps/frontend/.next/server/app/[locale]/about/page.js +776 -516
- package/standalone/apps/frontend/.next/server/app/[locale]/about/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/about/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/devops/page.js +1718 -1455
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/devops/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/devops/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/exchange/page.js +724 -461
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/exchange/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/exchange/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/page.js +370 -109
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/security/page.js +581 -318
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/security/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/security/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/users/page.js +449 -186
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/users/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/users/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/error/page.js +430 -168
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/error/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/error/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/mcp-setup/route.js +31 -16
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/mcp-setup/route.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/mcp-setup/route_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/signin/page.js +388 -126
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/signin/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/signin/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/signup/page.js +537 -275
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/signup/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/signup/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/welcome/page.js +388 -126
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/welcome/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/welcome/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/compose/page.js +745 -482
- package/standalone/apps/frontend/.next/server/app/[locale]/know/compose/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/compose/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/discover/page.js +366 -103
- package/standalone/apps/frontend/.next/server/app/[locale]/know/discover/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/discover/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/page.js +600 -339
- package/standalone/apps/frontend/.next/server/app/[locale]/know/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/resource/[id]/page.js +956 -691
- package/standalone/apps/frontend/.next/server/app/[locale]/know/resource/[id]/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/resource/[id]/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/entity-tags/page.js +1699 -1436
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/entity-tags/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/entity-tags/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/linked-data/page.js +390 -127
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/linked-data/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/linked-data/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/page.js +1779 -1518
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/recent/page.js +1601 -1338
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/recent/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/recent/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/tag-schemas/page.js +2048 -1785
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/tag-schemas/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/tag-schemas/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/page.js +462 -204
- package/standalone/apps/frontend/.next/server/app/[locale]/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/privacy/page.js +476 -216
- package/standalone/apps/frontend/.next/server/app/[locale]/privacy/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/privacy/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/terms/page.js +489 -229
- package/standalone/apps/frontend/.next/server/app/[locale]/terms/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/terms/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/_global-error/page.js +627 -240
- package/standalone/apps/frontend/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/_global-error.html +1 -2
- package/standalone/apps/frontend/.next/server/app/_global-error.rsc +13 -9
- package/standalone/apps/frontend/.next/server/app/_global-error.segments/_full.segment.rsc +13 -9
- package/standalone/apps/frontend/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/standalone/apps/frontend/.next/server/app/_global-error.segments/_global-error.segment.rsc +2 -1
- package/standalone/apps/frontend/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/standalone/apps/frontend/.next/server/app/_global-error.segments/_index.segment.rsc +2 -1
- package/standalone/apps/frontend/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/standalone/apps/frontend/.next/server/app/_not-found/page.js +814 -559
- package/standalone/apps/frontend/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/_not-found.html +1 -1
- package/standalone/apps/frontend/.next/server/app/_not-found.rsc +8 -6
- package/standalone/apps/frontend/.next/server/app/_not-found.segments/_full.segment.rsc +8 -6
- package/standalone/apps/frontend/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/standalone/apps/frontend/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/standalone/apps/frontend/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/standalone/apps/frontend/.next/server/app/_not-found.segments/_not-found.segment.rsc +2 -1
- package/standalone/apps/frontend/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/standalone/apps/frontend/.next/server/app/api/auth/[...nextauth]/route.js +54 -39
- package/standalone/apps/frontend/.next/server/app/api/auth/[...nextauth]/route.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/api/auth/[...nextauth]/route_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/api/cookies/consent/route.js +49 -34
- package/standalone/apps/frontend/.next/server/app/api/cookies/consent/route.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/api/cookies/consent/route_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/api/cookies/export/route.js +24 -9
- package/standalone/apps/frontend/.next/server/app/api/cookies/export/route.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/api/cookies/export/route_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/api/resources/[id]/route.js +24 -9
- package/standalone/apps/frontend/.next/server/app/api/resources/[id]/route.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/api/resources/[id]/route_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app-paths-manifest.json +8 -8
- package/standalone/apps/frontend/.next/server/chunks/2617.js +43 -7
- package/standalone/apps/frontend/.next/server/chunks/3144.js +1 -1
- package/standalone/apps/frontend/.next/server/chunks/4741.js +60 -252
- package/standalone/apps/frontend/.next/server/chunks/730.js +1 -1
- package/standalone/apps/frontend/.next/server/chunks/7420.js +21 -288
- package/standalone/apps/frontend/.next/server/chunks/7873.js +24 -2
- package/standalone/apps/frontend/.next/server/chunks/{7246.js → 8569.js} +1169 -282
- package/standalone/apps/frontend/.next/server/chunks/{2628.js → 9927.js} +11422 -4290
- package/standalone/apps/frontend/.next/server/middleware-build-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/middleware.js +17991 -10692
- package/standalone/apps/frontend/.next/server/pages/404.html +1 -1
- package/standalone/apps/frontend/.next/server/pages/500.html +1 -2
- package/standalone/apps/frontend/.next/server/prefetch-hints.json +1 -0
- package/standalone/apps/frontend/.next/server/server-reference-manifest.json +1 -1
- package/standalone/apps/frontend/.next/static/I_XveRdyStDMqYJPcAAy5/_buildManifest.js +1 -0
- package/standalone/apps/frontend/.next/static/chunks/1315.3f76aa23520d903e.js +1 -0
- package/standalone/apps/frontend/.next/static/chunks/{432.4c1d971431c60454.js → 432.8cb455bfe72957a9.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/87c73c54-e11922cda838f8cc.js +1 -0
- package/standalone/apps/frontend/.next/static/chunks/{891cff7f-c20ce667b1225aa7.js → 891cff7f-d7677a8f46c597cc.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/admin/{layout-4b67f7b5d5ba4728.js → layout-956ba0ffa1199bff.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/know/{layout-f76e1916749e66f6.js → layout-262d8dd6c6e33738.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/{layout-a403fd7a4877cc04.js → layout-c072ce8c7aeaa92e.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/moderate/{layout-2d4e9c2be4b4a4c7.js → layout-b60605082e447f42.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/{common-ac307b22cd0a4080.js → common-42653c14d34c8864.js} +7 -7
- package/standalone/apps/frontend/.next/static/chunks/framework-b879567b90d34fb5.js +1 -0
- package/standalone/apps/frontend/.next/static/chunks/vendors-63213253c18580f4.js +40 -0
- package/standalone/apps/frontend/.next/static/chunks/{webpack-abf2ad17f175f867.js → webpack-a0284d55d288650f.js} +1 -1
- package/standalone/apps/frontend/package.json +5 -5
- package/standalone/apps/frontend/server.js +1 -1
- package/standalone/node_modules/@next/env/package.json +1 -1
- package/standalone/node_modules/next/dist/build/adapter/setup-node-env.external.js +15 -0
- package/standalone/node_modules/next/dist/build/analysis/extract-const-value.js +78 -63
- package/standalone/node_modules/next/dist/build/analysis/get-page-static-info.js +64 -40
- package/standalone/node_modules/next/dist/build/create-compiler-aliases.js +2 -0
- package/standalone/node_modules/next/dist/build/define-env.js +29 -11
- package/standalone/node_modules/next/dist/build/duration-to-string.js +1 -1
- package/standalone/node_modules/next/dist/build/entries.js +55 -295
- package/standalone/node_modules/next/dist/build/file-classifier.js +76 -0
- package/standalone/node_modules/next/dist/build/get-supported-browsers.js +38 -0
- package/standalone/node_modules/next/dist/build/load-jsconfig.js +7 -7
- package/standalone/node_modules/next/dist/build/lockfile.js +90 -9
- package/standalone/node_modules/next/dist/build/next-config-ts/transpile-config.js +128 -49
- package/standalone/node_modules/next/dist/build/print-build-errors.js +72 -0
- package/standalone/node_modules/next/dist/build/route-discovery.js +353 -0
- package/standalone/node_modules/next/dist/build/segment-config/app/app-segment-config.js +34 -17
- package/standalone/node_modules/next/dist/build/static-paths/app.js +68 -15
- package/standalone/node_modules/next/dist/build/static-paths/pages.js +3 -3
- package/standalone/node_modules/next/dist/build/swc/index.js +125 -48
- package/standalone/node_modules/next/dist/build/swc/loaderWorkerPool.js +40 -0
- package/standalone/node_modules/next/dist/build/swc/options.js +23 -6
- package/standalone/node_modules/next/dist/build/utils.js +48 -94
- package/standalone/node_modules/next/dist/build/webpack/config/blocks/css/index.js +14 -3
- package/standalone/node_modules/next/dist/build/webpack/config/blocks/css/loaders/global.js +4 -2
- package/standalone/node_modules/next/dist/build/webpack/config/blocks/css/loaders/modules.js +4 -2
- package/standalone/node_modules/next/dist/build/webpack/config/blocks/css/loaders/next-font.js +1 -0
- package/standalone/node_modules/next/dist/build/webpack/config/blocks/css/plugins.js +5 -5
- package/standalone/node_modules/next/dist/build/webpack/config/index.js +3 -2
- package/standalone/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js +2 -1
- package/standalone/node_modules/next/dist/build/webpack/loaders/css-loader/src/plugins/postcss-url-parser.js +8 -1
- package/standalone/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/loader.js +13 -4
- package/standalone/node_modules/next/dist/build/webpack/loaders/next-middleware-loader.js +3 -1
- package/standalone/node_modules/next/dist/build/webpack/plugins/build-manifest-plugin-utils.js +2 -16
- package/standalone/node_modules/next/dist/build/webpack/plugins/build-manifest-plugin.js +2 -2
- package/standalone/node_modules/next/dist/build/webpack/plugins/deferred-entries-plugin.js +106 -0
- package/standalone/node_modules/next/dist/build/webpack/plugins/flight-client-entry-plugin.js +16 -8
- package/standalone/node_modules/next/dist/build/webpack/plugins/flight-manifest-plugin.js +24 -11
- package/standalone/node_modules/next/dist/build/webpack/plugins/middleware-plugin.js +21 -2
- package/standalone/node_modules/next/dist/build/webpack/plugins/next-types-plugin/index.js +6 -5
- package/standalone/node_modules/next/dist/build/webpack/plugins/nextjs-require-cache-hot-reloader.js +10 -14
- package/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseNotFoundError.js +18 -4
- package/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseScss.js +5 -4
- package/standalone/node_modules/next/dist/build/webpack-config.js +18 -8
- package/standalone/node_modules/next/dist/cli/next-test.js +4 -3
- package/standalone/node_modules/next/dist/client/app-find-source-map-url.js +2 -1
- package/standalone/node_modules/next/dist/client/components/app-router-headers.js +10 -0
- package/standalone/node_modules/next/dist/client/components/app-router-instance.js +82 -4
- package/standalone/node_modules/next/dist/client/components/app-router.js +39 -20
- package/standalone/node_modules/next/dist/client/components/builtin/app-error.js +29 -65
- package/standalone/node_modules/next/dist/client/components/builtin/error-styles.js +165 -0
- package/standalone/node_modules/next/dist/client/components/builtin/global-error.js +56 -38
- package/standalone/node_modules/next/dist/client/components/error-boundary.js +16 -6
- package/standalone/node_modules/next/dist/client/components/forbidden.js +1 -1
- package/standalone/node_modules/next/dist/client/components/handle-isr-error.js +3 -4
- package/standalone/node_modules/next/dist/client/components/links.js +7 -0
- package/standalone/node_modules/next/dist/client/components/navigation-untracked.js +2 -0
- package/standalone/node_modules/next/dist/client/components/navigation.js +27 -0
- package/standalone/node_modules/next/dist/client/components/navigation.react-server.js +5 -2
- package/standalone/node_modules/next/dist/client/components/not-found.js +1 -1
- package/standalone/node_modules/next/dist/client/components/redirect-boundary.js +1 -1
- package/standalone/node_modules/next/dist/client/components/redirect-error.js +0 -9
- package/standalone/node_modules/next/dist/client/components/redirect.js +2 -2
- package/standalone/node_modules/next/dist/client/components/router-reducer/compute-changed-path.js +73 -0
- package/standalone/node_modules/next/dist/client/components/router-reducer/create-initial-router-state.js +102 -8
- package/standalone/node_modules/next/dist/client/components/router-reducer/fetch-server-response.js +165 -48
- package/standalone/node_modules/next/dist/client/components/router-reducer/is-navigating-to-new-root-layout.js +19 -11
- package/standalone/node_modules/next/dist/client/components/router-reducer/ppr-navigations.js +669 -457
- package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/committed-state.js +49 -0
- package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/find-head-in-cache.js +19 -20
- package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/navigate-reducer.js +5 -117
- package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/refresh-reducer.js +34 -19
- package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/restore-reducer.js +16 -32
- package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/server-action-reducer.js +85 -57
- package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/server-patch-reducer.js +12 -10
- package/standalone/node_modules/next/dist/client/components/router-reducer/router-reducer-types.js +10 -1
- package/standalone/node_modules/next/dist/client/components/router-reducer/router-reducer.js +1 -1
- package/standalone/node_modules/next/dist/client/components/segment-cache/bfcache.js +128 -0
- package/standalone/node_modules/next/dist/client/components/segment-cache/cache.js +732 -231
- package/standalone/node_modules/next/dist/client/components/segment-cache/lru.js +13 -6
- package/standalone/node_modules/next/dist/client/components/segment-cache/navigation-testing-lock.js +194 -0
- package/standalone/node_modules/next/dist/client/components/segment-cache/navigation.js +388 -250
- package/standalone/node_modules/next/dist/client/components/segment-cache/optimistic-routes.js +543 -0
- package/standalone/node_modules/next/dist/client/components/segment-cache/scheduler.js +154 -55
- package/standalone/node_modules/next/dist/client/components/segment-cache/vary-path.js +63 -1
- package/standalone/node_modules/next/dist/client/components/unauthorized.js +1 -1
- package/standalone/node_modules/next/dist/client/components/use-action-queue.js +49 -3
- package/standalone/node_modules/next/dist/client/dev/hot-reloader/app/hot-reloader-app.js +9 -1
- package/standalone/node_modules/next/dist/client/flight-data-helpers.js +42 -29
- package/standalone/node_modules/next/dist/client/lib/javascript-url.js +32 -0
- package/standalone/node_modules/next/dist/client/lib/promise.js +53 -0
- package/standalone/node_modules/next/dist/client/{app-build-id.js → navigation-build-id.js} +17 -13
- package/standalone/node_modules/next/dist/client/react-client-callbacks/on-recoverable-error.js +14 -0
- package/standalone/node_modules/next/dist/client/route-loader.js +9 -46
- package/standalone/node_modules/next/dist/client/router.js +1 -1
- package/standalone/node_modules/next/dist/compiled/@next/font/dist/google/font-data.json +74 -3
- package/standalone/node_modules/next/dist/compiled/babel/bundle.js +1 -1
- package/standalone/node_modules/next/dist/compiled/babel-packages/packages-bundle.js +4 -4
- package/standalone/node_modules/next/dist/compiled/browserslist/index.js +1 -1
- package/standalone/node_modules/next/dist/compiled/http-proxy/index.js +5 -5
- package/standalone/node_modules/next/dist/compiled/next-devtools/index.js +2209 -23
- package/standalone/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.prod.js +42 -12
- package/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +42 -12
- package/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js +42 -12
- package/standalone/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js +42 -12
- package/standalone/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js +2 -2
- package/standalone/node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js +10 -10
- package/standalone/node_modules/next/dist/compiled/next-server/pages.runtime.prod.js +10 -10
- package/standalone/node_modules/next/dist/compiled/react-is/package.json +1 -1
- package/standalone/node_modules/next/dist/compiled/tar/index.min.js +1 -0
- package/standalone/node_modules/next/dist/compiled/tar/package.json +1 -1
- package/standalone/node_modules/next/dist/compiled/unistore/unistore.js +1 -1
- package/standalone/node_modules/next/dist/lib/bundler.js +97 -0
- package/standalone/node_modules/next/dist/lib/constants.js +19 -4
- package/standalone/node_modules/next/dist/lib/download-swc.js +2 -2
- package/standalone/node_modules/next/dist/lib/find-root.js +11 -7
- package/standalone/node_modules/next/dist/lib/format-server-error.js +1 -0
- package/standalone/node_modules/next/dist/lib/generate-interception-routes-rewrites.js +3 -20
- package/standalone/node_modules/next/dist/lib/interop-default.js +1 -0
- package/standalone/node_modules/next/dist/lib/is-interception-route-rewrite.js +18 -0
- package/standalone/node_modules/next/dist/lib/load-custom-routes.js +49 -5
- package/standalone/node_modules/next/dist/lib/memory/trace.js +109 -0
- package/standalone/node_modules/next/dist/lib/metadata/get-metadata-route.js +11 -2
- package/standalone/node_modules/next/dist/lib/needs-experimental-react.js +2 -2
- package/standalone/node_modules/next/dist/lib/patch-incorrect-lockfile.js +5 -5
- package/standalone/node_modules/next/dist/lib/try-to-parse-path.js +1 -2
- package/standalone/node_modules/next/dist/lib/turbopack-warning.js +0 -1
- package/standalone/node_modules/next/dist/lib/typescript/diagnosticFormatter.js +6 -3
- package/standalone/node_modules/next/dist/lib/typescript/getTypeScriptConfiguration.js +1 -1
- package/standalone/node_modules/next/dist/lib/typescript/missingDependencyError.js +1 -1
- package/standalone/node_modules/next/dist/lib/typescript/runTypeCheck.js +6 -8
- package/standalone/node_modules/next/dist/lib/typescript/type-paths.js +7 -12
- package/standalone/node_modules/next/dist/lib/typescript/writeAppTypeDeclarations.js +17 -7
- package/standalone/node_modules/next/dist/lib/typescript/writeConfigurationDefaults.js +9 -12
- package/standalone/node_modules/next/dist/lib/verify-typescript-setup.js +66 -16
- package/standalone/node_modules/next/dist/next-devtools/server/shared.js +6 -10
- package/standalone/node_modules/next/dist/next-devtools/shared/webpack-module-path.js +4 -4
- package/standalone/node_modules/next/dist/next-devtools/userspace/app/app-dev-overlay-error-boundary.js +22 -4
- package/standalone/node_modules/next/dist/next-devtools/userspace/app/errors/stitched-error.js +7 -1
- package/standalone/node_modules/next/dist/next-devtools/userspace/app/forward-logs.js +18 -13
- package/standalone/node_modules/next/dist/next-devtools/userspace/app/segment-explorer-node.js +7 -4
- package/standalone/node_modules/next/dist/server/app-render/action-handler.js +83 -15
- package/standalone/node_modules/next/dist/server/app-render/app-render-prerender-utils.js +0 -82
- package/standalone/node_modules/next/dist/server/app-render/app-render-render-utils.js +45 -81
- package/standalone/node_modules/next/dist/server/app-render/app-render.js +1746 -803
- package/standalone/node_modules/next/dist/server/app-render/create-component-tree.js +136 -50
- package/standalone/node_modules/next/dist/server/app-render/create-error-handler.js +6 -4
- package/standalone/node_modules/next/dist/server/app-render/create-flight-router-state-from-loader-tree.js +52 -26
- package/standalone/node_modules/next/dist/server/app-render/csrf-protection.js +14 -3
- package/standalone/node_modules/next/dist/server/app-render/debug-channel-server.js +30 -0
- package/standalone/node_modules/next/dist/server/app-render/debug-channel-server.web.js +71 -0
- package/standalone/node_modules/next/dist/server/app-render/dynamic-rendering.js +353 -37
- package/standalone/node_modules/next/dist/server/app-render/get-asset-query-string.js +2 -2
- package/standalone/node_modules/next/dist/server/app-render/get-layer-assets.js +1 -1
- package/standalone/node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js +13 -0
- package/standalone/node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js +18 -0
- package/standalone/node_modules/next/dist/server/app-render/instant-validation/instant-config.js +181 -0
- package/standalone/node_modules/next/dist/server/app-render/instant-validation/instant-samples-client.js +128 -0
- package/standalone/node_modules/next/dist/server/app-render/instant-validation/instant-samples.js +432 -0
- package/standalone/node_modules/next/dist/server/app-render/instant-validation/instant-validation-error.js +33 -0
- package/standalone/node_modules/next/dist/server/app-render/instant-validation/stream-utils.js +96 -0
- package/standalone/node_modules/next/dist/server/app-render/manifests-singleton.js +8 -1
- package/standalone/node_modules/next/dist/server/app-render/postponed-state.js +2 -1
- package/standalone/node_modules/next/dist/server/app-render/prospective-render-utils.js +1 -0
- package/standalone/node_modules/next/dist/server/app-render/segment-explorer-path.js +35 -10
- package/standalone/node_modules/next/dist/server/app-render/staged-rendering.js +142 -72
- package/standalone/node_modules/next/dist/server/app-render/stale-time.js +111 -0
- package/standalone/node_modules/next/dist/server/app-render/stream-ops.js +106 -0
- package/standalone/node_modules/next/dist/server/app-render/stream-ops.web.js +163 -0
- package/standalone/node_modules/next/dist/server/app-render/types.js +10 -4
- package/standalone/node_modules/next/dist/server/app-render/use-flight-response.js +3 -1
- package/standalone/node_modules/next/dist/server/app-render/vary-params.js +336 -0
- package/standalone/node_modules/next/dist/server/app-render/walk-tree-with-flight-router-state.js +59 -12
- package/standalone/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js +54 -26
- package/standalone/node_modules/next/dist/server/async-storage/request-store.js +4 -4
- package/standalone/node_modules/next/dist/server/async-storage/work-store.js +2 -5
- package/standalone/node_modules/next/dist/server/base-server.js +65 -53
- package/standalone/node_modules/next/dist/server/config-schema.js +93 -8
- package/standalone/node_modules/next/dist/server/config-shared.js +57 -7
- package/standalone/node_modules/next/dist/server/config.js +96 -25
- package/standalone/node_modules/next/dist/server/dev/browser-logs/file-logger.js +9 -6
- package/standalone/node_modules/next/dist/server/dev/browser-logs/receive-logs.js +46 -0
- package/standalone/node_modules/next/dist/server/dev/browser-logs/source-map.js +1 -4
- package/standalone/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +264 -33
- package/standalone/node_modules/next/dist/server/dev/hot-reloader-webpack.js +8 -4
- package/standalone/node_modules/next/dist/server/dev/log-requests.js +10 -2
- package/standalone/node_modules/next/dist/server/dev/middleware-turbopack.js +20 -10
- package/standalone/node_modules/next/dist/server/dev/middleware-webpack.js +13 -3
- package/standalone/node_modules/next/dist/server/dev/next-dev-server.js +19 -6
- package/standalone/node_modules/next/dist/server/dev/on-demand-entry-handler.js +69 -0
- package/standalone/node_modules/next/dist/server/dev/require-cache.js +51 -21
- package/standalone/node_modules/next/dist/server/dev/server-action-logger.js +37 -0
- package/standalone/node_modules/next/dist/server/dev/static-paths-worker.js +1 -0
- package/standalone/node_modules/next/dist/server/dev/turbopack-utils.js +6 -15
- package/standalone/node_modules/next/dist/server/dynamic-rendering-utils.js +22 -0
- package/standalone/node_modules/next/dist/server/image-optimizer.js +157 -27
- package/standalone/node_modules/next/dist/server/lib/app-info-log.js +16 -38
- package/standalone/node_modules/next/dist/server/lib/cache-control.js +1 -1
- package/standalone/node_modules/next/dist/server/lib/clone-response.js +16 -16
- package/standalone/node_modules/next/dist/server/lib/cpu-profile.js +47 -16
- package/standalone/node_modules/next/dist/server/lib/dev-bundler-service.js +2 -2
- package/standalone/node_modules/next/dist/server/lib/disk-lru-cache.external.js +57 -0
- package/standalone/node_modules/next/dist/server/lib/find-page-file.js +27 -7
- package/standalone/node_modules/next/dist/server/lib/implicit-tags.js +3 -3
- package/standalone/node_modules/next/dist/server/lib/incremental-cache/file-system-cache.js +5 -3
- package/standalone/node_modules/next/dist/server/lib/incremental-cache/index.js +32 -10
- package/standalone/node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js +18 -1
- package/standalone/node_modules/next/dist/server/lib/install-code-frame.js +22 -0
- package/standalone/node_modules/next/dist/server/lib/lru-cache.js +9 -1
- package/standalone/node_modules/next/dist/server/lib/patch-fetch.js +40 -7
- package/standalone/node_modules/next/dist/server/lib/postponed-request-body.js +64 -0
- package/standalone/node_modules/next/dist/server/lib/render-server.js +4 -1
- package/standalone/node_modules/next/dist/server/lib/router-server.js +24 -13
- package/standalone/node_modules/next/dist/server/lib/router-utils/block-cross-site-dev.js +110 -0
- package/standalone/node_modules/next/dist/server/lib/router-utils/filesystem.js +16 -15
- package/standalone/node_modules/next/dist/server/lib/router-utils/resolve-routes.js +32 -11
- package/standalone/node_modules/next/dist/server/lib/router-utils/route-types-utils.js +3 -3
- package/standalone/node_modules/next/dist/server/lib/router-utils/setup-dev-bundler.js +71 -71
- package/standalone/node_modules/next/dist/server/lib/router-utils/typegen.js +247 -2
- package/standalone/node_modules/next/dist/server/lib/server-ipc/utils.js +2 -1
- package/standalone/node_modules/next/dist/server/lib/start-server.js +73 -39
- package/standalone/node_modules/next/dist/server/lib/trace/tracer.js +11 -1
- package/standalone/node_modules/next/dist/server/lib/utils.js +40 -11
- package/standalone/node_modules/next/dist/server/load-components.js +2 -0
- package/standalone/node_modules/next/dist/server/load-manifest.external.js +37 -17
- package/standalone/node_modules/next/dist/server/mcp/tools/get-errors.js +11 -4
- package/standalone/node_modules/next/dist/server/mcp/tools/get-logs.js +9 -3
- package/standalone/node_modules/next/dist/server/mcp/tools/get-page-metadata.js +52 -44
- package/standalone/node_modules/next/dist/server/mcp/tools/get-project-metadata.js +6 -2
- package/standalone/node_modules/next/dist/server/mcp/tools/get-routes.js +44 -79
- package/standalone/node_modules/next/dist/server/mcp/tools/get-server-action-by-id.js +12 -4
- package/standalone/node_modules/next/dist/server/mcp/tools/utils/format-errors.js +62 -72
- package/standalone/node_modules/next/dist/server/next-server.js +69 -99
- package/standalone/node_modules/next/dist/server/next.js +3 -0
- package/standalone/node_modules/next/dist/server/node-environment-extensions/console-dim.external.js +61 -6
- package/standalone/node_modules/next/dist/server/node-environment-extensions/date.js +4 -4
- package/standalone/node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js +13 -6
- package/standalone/node_modules/next/dist/server/node-environment-extensions/{utils.js → io-utils.js} +14 -5
- package/standalone/node_modules/next/dist/server/node-environment-extensions/node-crypto.js +8 -8
- package/standalone/node_modules/next/dist/server/node-environment-extensions/process-error-handlers.js +91 -0
- package/standalone/node_modules/next/dist/server/node-environment-extensions/random.js +2 -2
- package/standalone/node_modules/next/dist/server/node-environment-extensions/{unhandled-rejection.js → unhandled-rejection.external.js} +23 -4
- package/standalone/node_modules/next/dist/server/node-environment-extensions/web-crypto.js +3 -3
- package/standalone/node_modules/next/dist/server/node-environment.js +1 -1
- package/standalone/node_modules/next/dist/server/normalizers/request/segment-prefix-rsc.js +2 -1
- package/standalone/node_modules/next/dist/server/patch-error-inspect.js +37 -20
- package/standalone/node_modules/next/dist/server/render-result.js +9 -0
- package/standalone/node_modules/next/dist/server/render.js +27 -25
- package/standalone/node_modules/next/dist/server/require-hook.js +19 -8
- package/standalone/node_modules/next/dist/server/response-cache/utils.js +1 -0
- package/standalone/node_modules/next/dist/server/resume-data-cache/cache-store.js +35 -23
- package/standalone/node_modules/next/dist/server/resume-data-cache/resume-data-cache.js +16 -7
- package/standalone/node_modules/next/dist/server/revalidation-utils.js +12 -7
- package/standalone/node_modules/next/dist/server/route-matcher-providers/dev/dev-app-page-route-matcher-provider.js +2 -1
- package/standalone/node_modules/next/dist/server/route-modules/app-page/helpers/prerender-manifest-matcher.js +4 -1
- package/standalone/node_modules/next/dist/server/route-modules/app-page/module.js +31 -1
- package/standalone/node_modules/next/dist/server/route-modules/app-page/normalize-request-url.js +25 -0
- package/standalone/node_modules/next/dist/server/route-modules/pages/pages-handler.js +31 -8
- package/standalone/node_modules/next/dist/server/route-modules/route-module.js +71 -18
- package/standalone/node_modules/next/dist/server/stream-utils/encoded-tags.js +8 -0
- package/standalone/node_modules/next/dist/server/stream-utils/node-web-streams-helper.js +239 -58
- package/standalone/node_modules/next/dist/server/stream-utils/uint8array-helpers.js +7 -2
- package/standalone/node_modules/next/dist/server/typescript/constant.js +1 -0
- package/standalone/node_modules/next/dist/server/typescript/rules/config.js +14 -3
- package/standalone/node_modules/next/dist/server/web/adapter.js +7 -3
- package/standalone/node_modules/next/dist/server/web/next-url.js +6 -2
- package/standalone/node_modules/next/dist/server/web/sandbox/sandbox.js +3 -0
- package/standalone/node_modules/next/dist/shared/lib/app-router-types.js +30 -11
- package/standalone/node_modules/next/dist/shared/lib/constants.js +7 -7
- package/standalone/node_modules/next/dist/shared/lib/deployment-id.js +37 -10
- package/standalone/node_modules/next/dist/shared/lib/errors/canary-only-config-error.js +1 -1
- package/standalone/node_modules/next/dist/shared/lib/errors/code-frame.js +20 -0
- package/standalone/node_modules/next/dist/shared/lib/format-webpack-messages.js +22 -2
- package/standalone/node_modules/next/dist/shared/lib/image-config.js +3 -1
- package/standalone/node_modules/next/dist/shared/lib/is-internal.js +2 -0
- package/standalone/node_modules/next/dist/shared/lib/magic-identifier.js +6 -6
- package/standalone/node_modules/next/dist/shared/lib/router/router.js +32 -0
- package/standalone/node_modules/next/dist/shared/lib/router/utils/app-paths.js +11 -0
- package/standalone/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +11 -4
- package/standalone/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +3 -2
- package/standalone/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js +9 -2
- package/standalone/node_modules/next/dist/shared/lib/router/utils/parse-url.js +8 -2
- package/standalone/node_modules/next/dist/shared/lib/segment-cache/vary-params-decoding.js +32 -0
- package/standalone/node_modules/next/dist/shared/lib/server-reference-info.js +4 -0
- package/standalone/node_modules/next/dist/shared/lib/size-limit.js +6 -1
- package/standalone/node_modules/next/dist/shared/lib/turbopack/compilation-events.js +47 -10
- package/standalone/node_modules/next/dist/shared/lib/turbopack/manifest-loader.js +90 -116
- package/standalone/node_modules/next/dist/shared/lib/turbopack/utils.js +14 -26
- package/standalone/node_modules/next/dist/shared/lib/utils/reflect-utils.js +69 -0
- package/standalone/node_modules/next/dist/shared/lib/utils.js +2 -2
- package/standalone/node_modules/next/dist/telemetry/anonymous-meta.js +1 -1
- package/standalone/node_modules/next/dist/telemetry/events/swc-load-failure.js +1 -1
- package/standalone/node_modules/next/dist/telemetry/events/version.js +2 -2
- package/standalone/node_modules/next/dist/trace/index.js +4 -0
- package/standalone/node_modules/next/dist/trace/report/to-json-build.js +11 -108
- package/standalone/node_modules/next/dist/trace/report/to-json.js +52 -38
- package/standalone/node_modules/next/dist/trace/trace.js +15 -1
- package/standalone/node_modules/next/package.json +21 -23
- package/standalone/node_modules/react/cjs/react.development.js +1284 -0
- package/standalone/package.json +3 -3
- package/standalone/packages/core/package.json +1 -1
- package/standalone/apps/frontend/.next/static/chunks/1315.18c68981a2eab4fe.js +0 -1
- package/standalone/apps/frontend/.next/static/chunks/87c73c54-c5fda2db2a4bd732.js +0 -1
- package/standalone/apps/frontend/.next/static/chunks/framework-86c2a58f458066a5.js +0 -1
- package/standalone/apps/frontend/.next/static/chunks/vendors-c7197feb11002a6e.js +0 -10
- package/standalone/apps/frontend/.next/static/xSLAuzRvOCf1TdGHvLFQ0/_buildManifest.js +0 -1
- package/standalone/node_modules/next/dist/client/components/router-reducer/handle-mutable.js +0 -66
- package/standalone/node_modules/next/dist/compiled/babel/code-frame.js +0 -1
- package/standalone/node_modules/next/dist/compiled/babel-code-frame/index.js +0 -1
- package/standalone/node_modules/next/dist/compiled/babel-code-frame/package.json +0 -1
- package/standalone/node_modules/next/dist/compiled/tar/index.js +0 -1
- package/standalone/node_modules/next/dist/server/app-render/staged-validation.js +0 -32
- package/standalone/node_modules/next/dist/server/lib/router-utils/block-cross-site.js +0 -76
- package/standalone/node_modules/next/dist/shared/lib/segment-cache/output-export-prefetch-encoding.js +0 -52
- package/standalone/node_modules/typescript/lib/typescript.js +0 -200276
- package/standalone/node_modules/typescript/package.json +0 -120
- /package/standalone/apps/frontend/.next/static/{xSLAuzRvOCf1TdGHvLFQ0 → I_XveRdyStDMqYJPcAAy5}/_ssgManifest.js +0 -0
|
@@ -150,6 +150,14 @@ function GlobalError({ error, reset }) {
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
|
|
153
|
+
/***/ }),
|
|
154
|
+
|
|
155
|
+
/***/ 17891:
|
|
156
|
+
/***/ ((module) => {
|
|
157
|
+
|
|
158
|
+
"use strict";
|
|
159
|
+
module.exports = require("next/dist/shared/lib/router/utils/get-segment-param");
|
|
160
|
+
|
|
153
161
|
/***/ }),
|
|
154
162
|
|
|
155
163
|
/***/ 19121:
|
|
@@ -303,82 +311,46 @@ Object.defineProperty(exports, "default", ({
|
|
|
303
311
|
const _interop_require_default = __webpack_require__(68497);
|
|
304
312
|
const _jsxruntime = __webpack_require__(2474);
|
|
305
313
|
const _react = /*#__PURE__*/ _interop_require_default._(__webpack_require__(10963));
|
|
306
|
-
const
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
fontFamily: 'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',
|
|
310
|
-
height: '100vh',
|
|
311
|
-
textAlign: 'center',
|
|
312
|
-
display: 'flex',
|
|
313
|
-
flexDirection: 'column',
|
|
314
|
-
alignItems: 'center',
|
|
315
|
-
justifyContent: 'center'
|
|
316
|
-
},
|
|
317
|
-
desc: {
|
|
318
|
-
lineHeight: '48px'
|
|
319
|
-
},
|
|
320
|
-
h1: {
|
|
321
|
-
display: 'inline-block',
|
|
322
|
-
margin: '0 20px 0 0',
|
|
323
|
-
paddingRight: 23,
|
|
324
|
-
fontSize: 24,
|
|
325
|
-
fontWeight: 500,
|
|
326
|
-
verticalAlign: 'top'
|
|
327
|
-
},
|
|
328
|
-
h2: {
|
|
329
|
-
fontSize: 14,
|
|
330
|
-
fontWeight: 400,
|
|
331
|
-
lineHeight: '28px'
|
|
332
|
-
},
|
|
333
|
-
wrap: {
|
|
334
|
-
display: 'inline-block'
|
|
335
|
-
}
|
|
336
|
-
};
|
|
337
|
-
/* CSS minified from
|
|
338
|
-
body { margin: 0; color: #000; background: #fff; }
|
|
339
|
-
.next-error-h1 {
|
|
340
|
-
border-right: 1px solid rgba(0, 0, 0, .3);
|
|
341
|
-
}
|
|
342
|
-
@media (prefers-color-scheme: dark) {
|
|
343
|
-
body { color: #fff; background: #000; }
|
|
344
|
-
.next-error-h1 {
|
|
345
|
-
border-right: 1px solid rgba(255, 255, 255, .3);
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
*/ const themeCss = `body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}
|
|
349
|
-
@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}`;
|
|
314
|
+
const _errorstyles = __webpack_require__(97809);
|
|
315
|
+
// This is the static 500.html page for App Router apps.
|
|
316
|
+
// Always a server error, rendered at build time.
|
|
350
317
|
function AppError() {
|
|
351
|
-
const errorMessage = 'Internal Server Error.';
|
|
352
|
-
const title = `500: ${errorMessage}`;
|
|
353
318
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)("html", {
|
|
354
319
|
id: "__next_error__",
|
|
355
320
|
children: [
|
|
356
|
-
/*#__PURE__*/ (0, _jsxruntime.
|
|
357
|
-
children:
|
|
358
|
-
|
|
359
|
-
|
|
321
|
+
/*#__PURE__*/ (0, _jsxruntime.jsxs)("head", {
|
|
322
|
+
children: [
|
|
323
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)("title", {
|
|
324
|
+
children: "500: This page couldn’t load"
|
|
325
|
+
}),
|
|
326
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)("style", {
|
|
327
|
+
dangerouslySetInnerHTML: {
|
|
328
|
+
__html: _errorstyles.errorThemeCss
|
|
329
|
+
}
|
|
330
|
+
})
|
|
331
|
+
]
|
|
360
332
|
}),
|
|
361
333
|
/*#__PURE__*/ (0, _jsxruntime.jsx)("body", {
|
|
362
334
|
children: /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
|
|
363
|
-
style:
|
|
335
|
+
style: _errorstyles.errorStyles.container,
|
|
364
336
|
children: /*#__PURE__*/ (0, _jsxruntime.jsxs)("div", {
|
|
365
|
-
style:
|
|
337
|
+
style: _errorstyles.errorStyles.card,
|
|
366
338
|
children: [
|
|
367
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
368
|
-
dangerouslySetInnerHTML: {
|
|
369
|
-
__html: themeCss
|
|
370
|
-
}
|
|
371
|
-
}),
|
|
339
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_errorstyles.WarningIcon, {}),
|
|
372
340
|
/*#__PURE__*/ (0, _jsxruntime.jsx)("h1", {
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
341
|
+
style: _errorstyles.errorStyles.title,
|
|
342
|
+
children: "This page couldn’t load"
|
|
343
|
+
}),
|
|
344
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)("p", {
|
|
345
|
+
style: _errorstyles.errorStyles.message,
|
|
346
|
+
children: "A server error occurred. Reload to try again."
|
|
376
347
|
}),
|
|
377
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)("
|
|
378
|
-
style:
|
|
379
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)("
|
|
380
|
-
|
|
381
|
-
|
|
348
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)("form", {
|
|
349
|
+
style: _errorstyles.errorStyles.form,
|
|
350
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)("button", {
|
|
351
|
+
type: "submit",
|
|
352
|
+
style: _errorstyles.errorStyles.button,
|
|
353
|
+
children: "Reload"
|
|
382
354
|
})
|
|
383
355
|
})
|
|
384
356
|
]
|
|
@@ -400,95 +372,12 @@ if ((typeof exports.default === 'function' || typeof exports.default === 'object
|
|
|
400
372
|
|
|
401
373
|
/***/ }),
|
|
402
374
|
|
|
403
|
-
/***/
|
|
404
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
405
|
-
|
|
406
|
-
"use strict";
|
|
407
|
-
__webpack_require__.r(__webpack_exports__);
|
|
408
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
409
|
-
/* harmony export */ _: () => (/* binding */ _interop_require_default)
|
|
410
|
-
/* harmony export */ });
|
|
411
|
-
function _interop_require_default(obj) {
|
|
412
|
-
return obj && obj.__esModule ? obj : { default: obj };
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
/***/ }),
|
|
418
|
-
|
|
419
|
-
/***/ 70722:
|
|
420
|
-
/***/ ((module) => {
|
|
421
|
-
|
|
422
|
-
"use strict";
|
|
423
|
-
module.exports = require("next/dist/shared/lib/invariant-error");
|
|
424
|
-
|
|
425
|
-
/***/ }),
|
|
426
|
-
|
|
427
|
-
/***/ 72353:
|
|
428
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
429
|
-
|
|
430
|
-
"use strict";
|
|
431
|
-
__webpack_require__.r(__webpack_exports__);
|
|
432
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
433
|
-
/* harmony export */ "default": () => (/* binding */ RootNotFound)
|
|
434
|
-
/* harmony export */ });
|
|
435
|
-
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2474);
|
|
436
|
-
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__);
|
|
437
|
-
|
|
438
|
-
// Root-level not found page - must not use any client components or hooks
|
|
439
|
-
function RootNotFound() {
|
|
440
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
|
|
441
|
-
style: {
|
|
442
|
-
display: 'flex',
|
|
443
|
-
flexDirection: 'column',
|
|
444
|
-
alignItems: 'center',
|
|
445
|
-
justifyContent: 'center',
|
|
446
|
-
minHeight: '100vh',
|
|
447
|
-
padding: '2rem',
|
|
448
|
-
fontFamily: 'system-ui, -apple-system, sans-serif'
|
|
449
|
-
},
|
|
450
|
-
children: [
|
|
451
|
-
/*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("h1", {
|
|
452
|
-
style: {
|
|
453
|
-
fontSize: '4rem',
|
|
454
|
-
margin: 0
|
|
455
|
-
},
|
|
456
|
-
children: "404"
|
|
457
|
-
}),
|
|
458
|
-
/*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("p", {
|
|
459
|
-
style: {
|
|
460
|
-
fontSize: '1.5rem',
|
|
461
|
-
marginTop: '1rem'
|
|
462
|
-
},
|
|
463
|
-
children: "Page not found"
|
|
464
|
-
}),
|
|
465
|
-
/*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("a", {
|
|
466
|
-
href: "/en",
|
|
467
|
-
style: {
|
|
468
|
-
marginTop: '2rem',
|
|
469
|
-
padding: '0.75rem 1.5rem',
|
|
470
|
-
backgroundColor: '#0070f3',
|
|
471
|
-
color: 'white',
|
|
472
|
-
textDecoration: 'none',
|
|
473
|
-
borderRadius: '0.5rem',
|
|
474
|
-
display: 'inline-block'
|
|
475
|
-
},
|
|
476
|
-
children: "Go home"
|
|
477
|
-
})
|
|
478
|
-
]
|
|
479
|
-
});
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
/***/ }),
|
|
484
|
-
|
|
485
|
-
/***/ 73378:
|
|
375
|
+
/***/ 67966:
|
|
486
376
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
487
377
|
|
|
488
378
|
"use strict";
|
|
489
379
|
__webpack_require__.r(__webpack_exports__);
|
|
490
380
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
491
|
-
/* harmony export */ GlobalError: () => (/* reexport safe */ _home_runner_work_semiont_semiont_apps_frontend_src_app_global_error_tsx__WEBPACK_IMPORTED_MODULE_25__["default"]),
|
|
492
381
|
/* harmony export */ __next_app__: () => (/* binding */ __next_app__),
|
|
493
382
|
/* harmony export */ handler: () => (/* binding */ handler),
|
|
494
383
|
/* harmony export */ routeModule: () => (/* binding */ routeModule)
|
|
@@ -531,25 +420,30 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
531
420
|
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(38038);
|
|
532
421
|
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__);
|
|
533
422
|
/* harmony import */ var next_dist_server_stream_utils_encoded_tags__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(29898);
|
|
534
|
-
/* harmony import */ var
|
|
535
|
-
/* harmony import */ var
|
|
536
|
-
/* harmony import */ var
|
|
537
|
-
/* harmony import */ var
|
|
538
|
-
/* harmony import */ var
|
|
539
|
-
/* harmony import */ var
|
|
540
|
-
/* harmony import */ var
|
|
541
|
-
/* harmony import */ var
|
|
542
|
-
/* harmony import */ var
|
|
543
|
-
/* harmony import */ var
|
|
544
|
-
/* harmony import */ var
|
|
545
|
-
/* harmony import */ var
|
|
546
|
-
/* harmony import */ var
|
|
547
|
-
/* harmony import */ var
|
|
548
|
-
/* harmony import */ var
|
|
549
|
-
/* harmony import */ var
|
|
550
|
-
/* harmony import */ var
|
|
423
|
+
/* harmony import */ var next_dist_server_stream_utils_node_web_streams_helper__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(62918);
|
|
424
|
+
/* harmony import */ var next_dist_server_stream_utils_node_web_streams_helper__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_stream_utils_node_web_streams_helper__WEBPACK_IMPORTED_MODULE_22__);
|
|
425
|
+
/* harmony import */ var next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(98798);
|
|
426
|
+
/* harmony import */ var next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__);
|
|
427
|
+
/* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(86439);
|
|
428
|
+
/* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_24__);
|
|
429
|
+
/* harmony import */ var next_dist_shared_lib_size_limit__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(77068);
|
|
430
|
+
/* harmony import */ var next_dist_shared_lib_size_limit__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_size_limit__WEBPACK_IMPORTED_MODULE_25__);
|
|
431
|
+
/* harmony import */ var next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(31214);
|
|
432
|
+
/* harmony import */ var next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__);
|
|
433
|
+
/* harmony import */ var next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(35402);
|
|
434
|
+
/* harmony import */ var next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_27__);
|
|
435
|
+
/* harmony import */ var next_dist_client_components_redirect_status_code__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(29059);
|
|
436
|
+
/* harmony import */ var next_dist_client_components_redirect_status_code__WEBPACK_IMPORTED_MODULE_28___default = /*#__PURE__*/__webpack_require__.n(next_dist_client_components_redirect_status_code__WEBPACK_IMPORTED_MODULE_28__);
|
|
437
|
+
/* harmony import */ var next_dist_shared_lib_invariant_error__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(70722);
|
|
438
|
+
/* harmony import */ var next_dist_shared_lib_invariant_error__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_invariant_error__WEBPACK_IMPORTED_MODULE_29__);
|
|
439
|
+
/* harmony import */ var next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(31182);
|
|
440
|
+
/* harmony import */ var next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_30___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_30__);
|
|
441
|
+
/* harmony import */ var next_dist_shared_lib_router_utils_interception_routes__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(43954);
|
|
442
|
+
/* harmony import */ var next_dist_shared_lib_router_utils_interception_routes__WEBPACK_IMPORTED_MODULE_31___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_router_utils_interception_routes__WEBPACK_IMPORTED_MODULE_31__);
|
|
443
|
+
/* harmony import */ var next_dist_shared_lib_router_utils_get_segment_param__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(17891);
|
|
444
|
+
/* harmony import */ var next_dist_shared_lib_router_utils_get_segment_param__WEBPACK_IMPORTED_MODULE_32___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_router_utils_get_segment_param__WEBPACK_IMPORTED_MODULE_32__);
|
|
551
445
|
/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
552
|
-
/* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in
|
|
446
|
+
/* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_27__) if(["default","__next_app__","routeModule","handler"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_27__[__WEBPACK_IMPORT_KEY__]
|
|
553
447
|
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
554
448
|
const appError0 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.t.bind(__webpack_require__, 66528, 23));
|
|
555
449
|
const module1 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 25195));
|
|
@@ -579,6 +473,8 @@ const module5 = () => Promise.resolve(/* import() eager */).then(__webpack_requi
|
|
|
579
473
|
|
|
580
474
|
|
|
581
475
|
|
|
476
|
+
|
|
477
|
+
|
|
582
478
|
|
|
583
479
|
|
|
584
480
|
|
|
@@ -604,11 +500,10 @@ const tree = {
|
|
|
604
500
|
'forbidden': [module4, "next/dist/client/components/builtin/forbidden.js"],
|
|
605
501
|
'unauthorized': [module5, "next/dist/client/components/builtin/unauthorized.js"],
|
|
606
502
|
|
|
607
|
-
}
|
|
503
|
+
},
|
|
504
|
+
[]
|
|
608
505
|
]
|
|
609
506
|
}.children;
|
|
610
|
-
|
|
611
|
-
|
|
612
507
|
const __next_app_require__ = __webpack_require__
|
|
613
508
|
const __next_app_load_chunk__ = () => Promise.resolve()
|
|
614
509
|
const __next_app__ = {
|
|
@@ -621,6 +516,7 @@ const __next_app__ = {
|
|
|
621
516
|
|
|
622
517
|
|
|
623
518
|
|
|
519
|
+
|
|
624
520
|
// Create and export the route module that will be consumed.
|
|
625
521
|
const routeModule = new next_dist_server_route_modules_app_page_module_compiled__WEBPACK_IMPORTED_MODULE_0__.AppPageRouteModule({
|
|
626
522
|
definition: {
|
|
@@ -638,12 +534,53 @@ const routeModule = new next_dist_server_route_modules_app_page_module_compiled_
|
|
|
638
534
|
distDir: ".next" || 0,
|
|
639
535
|
relativeProjectDir: false || ''
|
|
640
536
|
});
|
|
537
|
+
function buildDynamicSegmentPlaceholder(param) {
|
|
538
|
+
const { repeat, optional } = (0,next_dist_shared_lib_router_utils_get_segment_param__WEBPACK_IMPORTED_MODULE_32__.getParamProperties)(param.paramType);
|
|
539
|
+
if (optional) {
|
|
540
|
+
return `[[...${param.paramName}]]`;
|
|
541
|
+
}
|
|
542
|
+
if (repeat) {
|
|
543
|
+
return `[...${param.paramName}]`;
|
|
544
|
+
}
|
|
545
|
+
return `[${param.paramName}]`;
|
|
546
|
+
}
|
|
547
|
+
/**
|
|
548
|
+
* Builds the cache key for the most complete prerenderable shell we can derive
|
|
549
|
+
* from the shell that matched this request. Only params that can still be
|
|
550
|
+
* filled by `generateStaticParams` are substituted; fully dynamic params stay
|
|
551
|
+
* as placeholders so a request like `/c/foo` can complete `/[one]/[two]` into
|
|
552
|
+
* `/c/[two]` rather than `/c/foo`.
|
|
553
|
+
*/ function buildCompletedShellCacheKey(fallbackPathname, remainingPrerenderableParams, params) {
|
|
554
|
+
const prerenderableParamsByName = new Map(remainingPrerenderableParams.map((param)=>[
|
|
555
|
+
param.paramName,
|
|
556
|
+
param
|
|
557
|
+
]));
|
|
558
|
+
return fallbackPathname.split('/').map((segment)=>{
|
|
559
|
+
const segmentParam = (0,next_dist_shared_lib_router_utils_get_segment_param__WEBPACK_IMPORTED_MODULE_32__.getSegmentParam)(segment);
|
|
560
|
+
if (!segmentParam) {
|
|
561
|
+
return segment;
|
|
562
|
+
}
|
|
563
|
+
const remainingParam = prerenderableParamsByName.get(segmentParam.paramName);
|
|
564
|
+
if (!remainingParam) {
|
|
565
|
+
return segment;
|
|
566
|
+
}
|
|
567
|
+
const value = params == null ? void 0 : params[remainingParam.paramName];
|
|
568
|
+
if (!value) {
|
|
569
|
+
return segment;
|
|
570
|
+
}
|
|
571
|
+
const encodedValue = Array.isArray(value) ? value.map((item)=>encodeURIComponent(item)).join('/') : encodeURIComponent(value);
|
|
572
|
+
return segment.replace(buildDynamicSegmentPlaceholder(remainingParam), encodedValue);
|
|
573
|
+
}).join('/') || '/';
|
|
574
|
+
}
|
|
641
575
|
async function handler(req, res, ctx) {
|
|
642
|
-
var _this;
|
|
576
|
+
var _this, _prerenderManifest_routes_resolvedPathname, _prerenderInfo_fallbackRootParams, _prerenderInfo_fallbackRouteParams;
|
|
577
|
+
if (ctx.requestMeta) {
|
|
578
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.setRequestMeta)(req, ctx.requestMeta);
|
|
579
|
+
}
|
|
643
580
|
if (routeModule.isDev) {
|
|
644
581
|
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.addRequestMeta)(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());
|
|
645
582
|
}
|
|
646
|
-
const isMinimalMode = Boolean(
|
|
583
|
+
const isMinimalMode = Boolean((0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'minimalMode'));
|
|
647
584
|
let srcPage = "/_global-error/page";
|
|
648
585
|
// turbopack doesn't normalize `/index` in the page name
|
|
649
586
|
// so we need to to process dynamic routes properly
|
|
@@ -663,7 +600,7 @@ async function handler(req, res, ctx) {
|
|
|
663
600
|
ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
|
|
664
601
|
return null;
|
|
665
602
|
}
|
|
666
|
-
const { buildId, query, params, pageIsDynamic, buildManifest, nextFontManifest, reactLoadableManifest, serverActionsManifest, clientReferenceManifest, subresourceIntegrityManifest, prerenderManifest, isDraftMode, resolvedPathname, revalidateOnlyGenerated, routerServerContext, nextConfig, parsedUrl, interceptionRoutePatterns, deploymentId } = prepareResult;
|
|
603
|
+
const { buildId, query, params, pageIsDynamic, buildManifest, nextFontManifest, reactLoadableManifest, serverActionsManifest, clientReferenceManifest, subresourceIntegrityManifest, prerenderManifest, isDraftMode, resolvedPathname, revalidateOnlyGenerated, routerServerContext, nextConfig, parsedUrl, interceptionRoutePatterns, deploymentId, clientAssetToken } = prepareResult;
|
|
667
604
|
const normalizedSrcPage = (0,next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_13__.normalizeAppPath)(srcPage);
|
|
668
605
|
let { isOnDemandRevalidate } = prepareResult;
|
|
669
606
|
// We use the resolvedPathname instead of the parsedUrl.pathname because it
|
|
@@ -673,7 +610,8 @@ async function handler(req, res, ctx) {
|
|
|
673
610
|
// treat the pathname as dynamic. Currently, there's a bug in the PPR
|
|
674
611
|
// implementation that incorrectly leaves %%drp placeholders in the output of
|
|
675
612
|
// parallel routes. This is addressed with cacheComponents.
|
|
676
|
-
const
|
|
613
|
+
const prerenderMatch = nextConfig.experimental.ppr && !nextConfig.cacheComponents && (0,next_dist_shared_lib_router_utils_interception_routes__WEBPACK_IMPORTED_MODULE_31__.isInterceptionRouteAppPath)(resolvedPathname) ? null : routeModule.match(resolvedPathname, prerenderManifest);
|
|
614
|
+
const prerenderInfo = (prerenderMatch == null ? void 0 : prerenderMatch.route) ?? null;
|
|
677
615
|
const isPrerendered = !!prerenderManifest.routes[resolvedPathname];
|
|
678
616
|
const userAgent = req.headers['user-agent'] || '';
|
|
679
617
|
const botType = (0,next_dist_shared_lib_router_utils_is_bot__WEBPACK_IMPORTED_MODULE_16__.getBotType)(userAgent);
|
|
@@ -690,15 +628,65 @@ async function handler(req, res, ctx) {
|
|
|
690
628
|
* If the route being rendered is an app page, and the ppr feature has been
|
|
691
629
|
* enabled, then the given route _could_ support PPR.
|
|
692
630
|
*/ const couldSupportPPR = (0,next_dist_server_lib_experimental_ppr__WEBPACK_IMPORTED_MODULE_9__.checkIsAppPPREnabled)(nextConfig.experimental.ppr);
|
|
631
|
+
// Stash postponed state for server actions when in minimal mode.
|
|
632
|
+
// We extract it here so the RDC is available for the re-render after the action completes.
|
|
633
|
+
const resumeStateLengthHeader = req.headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_RESUME_STATE_LENGTH_HEADER];
|
|
634
|
+
if (!(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'postponed') && isMinimalMode && couldSupportPPR && isPossibleServerAction && resumeStateLengthHeader && typeof resumeStateLengthHeader === 'string') {
|
|
635
|
+
const stateLength = parseInt(resumeStateLengthHeader, 10);
|
|
636
|
+
const { maxPostponedStateSize, maxPostponedStateSizeBytes } = (0,next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__.getMaxPostponedStateSize)(nextConfig.experimental.maxPostponedStateSize);
|
|
637
|
+
if (!isNaN(stateLength) && stateLength > 0) {
|
|
638
|
+
var _nextConfig_experimental_serverActions;
|
|
639
|
+
if (stateLength > maxPostponedStateSizeBytes) {
|
|
640
|
+
res.statusCode = 413;
|
|
641
|
+
res.end((0,next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__.getPostponedStateExceededErrorMessage)(maxPostponedStateSize));
|
|
642
|
+
ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
|
|
643
|
+
return null;
|
|
644
|
+
}
|
|
645
|
+
// Calculate max total body size to prevent buffering excessively large
|
|
646
|
+
// payloads before the action handler checks. We use stateLength (not
|
|
647
|
+
// maxPostponedStateSizeBytes) so the postponed state doesn't eat into
|
|
648
|
+
// the action body budget - it's already validated above.
|
|
649
|
+
const defaultActionBodySizeLimit = '1 MB';
|
|
650
|
+
const actionBodySizeLimit = ((_nextConfig_experimental_serverActions = nextConfig.experimental.serverActions) == null ? void 0 : _nextConfig_experimental_serverActions.bodySizeLimit) ?? defaultActionBodySizeLimit;
|
|
651
|
+
const actionBodySizeLimitBytes = actionBodySizeLimit !== defaultActionBodySizeLimit ? (__webpack_require__(32683).parse)(actionBodySizeLimit) : 1024 * 1024 // 1 MB
|
|
652
|
+
;
|
|
653
|
+
const maxTotalBodySize = stateLength + actionBodySizeLimitBytes;
|
|
654
|
+
const fullBody = await (0,next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__.readBodyWithSizeLimit)(req, maxTotalBodySize);
|
|
655
|
+
if (fullBody === null) {
|
|
656
|
+
res.statusCode = 413;
|
|
657
|
+
res.end(`Request body exceeded limit. ` + `To configure the body size limit for Server Actions, see: https://nextjs.org/docs/app/api-reference/next-config-js/serverActions#bodysizelimit`);
|
|
658
|
+
ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
|
|
659
|
+
return null;
|
|
660
|
+
}
|
|
661
|
+
if (fullBody.length >= stateLength) {
|
|
662
|
+
// Extract postponed state from the beginning
|
|
663
|
+
const postponedState = fullBody.subarray(0, stateLength).toString('utf8');
|
|
664
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.addRequestMeta)(req, 'postponed', postponedState);
|
|
665
|
+
// Store the remaining action body for the action handler
|
|
666
|
+
const actionBody = fullBody.subarray(stateLength);
|
|
667
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.addRequestMeta)(req, 'actionBody', actionBody);
|
|
668
|
+
} else {
|
|
669
|
+
throw Object.defineProperty(new Error(`invariant: expected ${stateLength} bytes of postponed state but only received ${fullBody.length} bytes`), "__NEXT_ERROR_CODE", {
|
|
670
|
+
value: "E979",
|
|
671
|
+
enumerable: false,
|
|
672
|
+
configurable: true
|
|
673
|
+
});
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
}
|
|
693
677
|
if (!(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'postponed') && couldSupportPPR && req.headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_RESUME_HEADER] === '1' && req.method === 'POST') {
|
|
678
|
+
const { maxPostponedStateSize, maxPostponedStateSizeBytes } = (0,next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__.getMaxPostponedStateSize)(nextConfig.experimental.maxPostponedStateSize);
|
|
694
679
|
// Decode the postponed state from the request body, it will come as
|
|
695
680
|
// an array of buffers, so collect them and then concat them to form
|
|
696
681
|
// the string.
|
|
697
|
-
const body =
|
|
698
|
-
|
|
699
|
-
|
|
682
|
+
const body = await (0,next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__.readBodyWithSizeLimit)(req, maxPostponedStateSizeBytes);
|
|
683
|
+
if (body === null) {
|
|
684
|
+
res.statusCode = 413;
|
|
685
|
+
res.end((0,next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__.getPostponedStateExceededErrorMessage)(maxPostponedStateSize));
|
|
686
|
+
ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
|
|
687
|
+
return null;
|
|
700
688
|
}
|
|
701
|
-
const postponed =
|
|
689
|
+
const postponed = body.toString('utf8');
|
|
702
690
|
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.addRequestMeta)(req, 'postponed', postponed);
|
|
703
691
|
}
|
|
704
692
|
// When enabled, this will allow the use of the `?__nextppronly` query to
|
|
@@ -707,14 +695,29 @@ async function handler(req, res, ctx) {
|
|
|
707
695
|
// When enabled, this will allow the use of the `?__nextppronly` query
|
|
708
696
|
// to enable debugging of the fallback shell.
|
|
709
697
|
const hasDebugFallbackShellQuery = hasDebugStaticShellQuery && query.__nextppronly === 'fallback';
|
|
698
|
+
// Whether the testing API is exposed (dev mode or explicit flag)
|
|
699
|
+
const exposeTestingApi = routeModule.isDev === true || nextConfig.experimental.exposeTestingApiInProductionBuild === true;
|
|
700
|
+
// Enable the Instant Navigation Testing API. Renders only the prefetched
|
|
701
|
+
// portion of the page, excluding dynamic content. This allows tests to
|
|
702
|
+
// assert on the prefetched UI state deterministically.
|
|
703
|
+
// - Header: Used for client-side navigations where we can set request headers
|
|
704
|
+
// - Cookie: Used for MPA navigations (page reload, full page load) where we
|
|
705
|
+
// can't set request headers. Only applies to document requests (no RSC
|
|
706
|
+
// header) - RSC requests should proceed normally even during a locked scope,
|
|
707
|
+
// with blocking happening on the client side.
|
|
708
|
+
const isInstantNavigationTest = exposeTestingApi && (req.headers[next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.NEXT_INSTANT_PREFETCH_HEADER] === '1' || req.headers[next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.RSC_HEADER] === undefined && typeof req.headers.cookie === 'string' && req.headers.cookie.includes(next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.NEXT_INSTANT_TEST_COOKIE + '='));
|
|
710
709
|
// This page supports PPR if it is marked as being `PARTIALLY_STATIC` in the
|
|
711
710
|
// prerender manifest and this is an app page.
|
|
712
|
-
const isRoutePPREnabled =
|
|
711
|
+
const isRoutePPREnabled = // When the instant navigation testing API is active, enable the PPR
|
|
712
|
+
// prerender path even without Cache Components. In dev mode without CC,
|
|
713
|
+
// static pages need this path to produce buffered segment data (the
|
|
714
|
+
// legacy prerender path hangs in dev mode).
|
|
715
|
+
(couldSupportPPR || isInstantNavigationTest) && (((_this = prerenderManifest.routes[normalizedSrcPage] ?? prerenderManifest.dynamicRoutes[normalizedSrcPage]) == null ? void 0 : _this.renderingMode) === 'PARTIALLY_STATIC' || // Ideally we'd want to check the appConfig to see if this page has PPR
|
|
713
716
|
// enabled or not, but that would require plumbing the appConfig through
|
|
714
717
|
// to the server during development. We assume that the page supports it
|
|
715
|
-
// but only during development.
|
|
716
|
-
hasDebugStaticShellQuery && (
|
|
717
|
-
const isDebugStaticShell = hasDebugStaticShellQuery && isRoutePPREnabled;
|
|
718
|
+
// but only during development or when the testing API is exposed.
|
|
719
|
+
(hasDebugStaticShellQuery || isInstantNavigationTest) && (exposeTestingApi || (routerServerContext == null ? void 0 : routerServerContext.experimentalTestProxy) === true));
|
|
720
|
+
const isDebugStaticShell = (hasDebugStaticShellQuery || isInstantNavigationTest) && isRoutePPREnabled;
|
|
718
721
|
// We should enable debugging dynamic accesses when the static shell
|
|
719
722
|
// debugging has been enabled and we're also in development mode.
|
|
720
723
|
const isDebugDynamicAccesses = isDebugStaticShell && routeModule.isDev === true;
|
|
@@ -726,7 +729,11 @@ async function handler(req, res, ctx) {
|
|
|
726
729
|
// If PPR is enabled, and this is a RSC request (but not a prefetch), then
|
|
727
730
|
// we can use this fact to only generate the flight data for the request
|
|
728
731
|
// because we can't cache the HTML (as it's also dynamic).
|
|
729
|
-
|
|
732
|
+
const staticPrefetchDataRoute = (_prerenderManifest_routes_resolvedPathname = prerenderManifest.routes[resolvedPathname]) == null ? void 0 : _prerenderManifest_routes_resolvedPathname.prefetchDataRoute;
|
|
733
|
+
let isDynamicRSCRequest = isRoutePPREnabled && isRSCRequest && !isPrefetchRSCRequest && // If generated at build time, treat the RSC request as static
|
|
734
|
+
// so we can serve the prebuilt .rsc without a dynamic render.
|
|
735
|
+
// Only do this for routes that have a concrete prefetchDataRoute.
|
|
736
|
+
!staticPrefetchDataRoute;
|
|
730
737
|
// During a PPR revalidation, the RSC request is not dynamic if we do not have the postponed data.
|
|
731
738
|
// We only attach the postponed data during a resume. If there's no postponed data, then it must be a revalidation.
|
|
732
739
|
// This is to ensure that we don't bypass the cache during a revalidation.
|
|
@@ -742,10 +749,11 @@ async function handler(req, res, ctx) {
|
|
|
742
749
|
// being true for a revalidate due to modifying the base-server this.renderOpts
|
|
743
750
|
// when fixing this to correct logic it causes hydration issue since we set
|
|
744
751
|
// serveStreamingMetadata to true during export
|
|
745
|
-
const serveStreamingMetadata =
|
|
746
|
-
const isSSG = Boolean((prerenderInfo || isPrerendered || prerenderManifest.routes[normalizedSrcPage]) && // If this is a
|
|
747
|
-
// to serve a static response.
|
|
748
|
-
|
|
752
|
+
const serveStreamingMetadata = botType && isRoutePPREnabled ? false : !userAgent ? true : (0,next_dist_server_lib_streaming_metadata__WEBPACK_IMPORTED_MODULE_12__.shouldServeStreamingMetadata)(userAgent, nextConfig.htmlLimitedBots);
|
|
753
|
+
const isSSG = Boolean((prerenderInfo || isPrerendered || prerenderManifest.routes[normalizedSrcPage]) && // If this is a bot request and PPR is enabled, then we don't want
|
|
754
|
+
// to serve a static response. This applies to both DOM bots (like Googlebot)
|
|
755
|
+
// and HTML-limited bots.
|
|
756
|
+
!(botType && isRoutePPREnabled));
|
|
749
757
|
// When a page supports cacheComponents, we can support RDC for Navigations
|
|
750
758
|
const supportsRDCForNavigations = isRoutePPREnabled && nextConfig.cacheComponents === true;
|
|
751
759
|
// In development, we always want to generate dynamic HTML.
|
|
@@ -762,18 +770,37 @@ async function handler(req, res, ctx) {
|
|
|
762
770
|
// RSC request, we'll pass the minimal postponed data to the render
|
|
763
771
|
// which will trigger the `supportsDynamicResponse` to be true.
|
|
764
772
|
isDynamicRSCRequest && !isMinimalMode : isDynamicRSCRequest);
|
|
765
|
-
// When
|
|
766
|
-
|
|
773
|
+
// When bots request PPR page, perform the full dynamic rendering.
|
|
774
|
+
// This applies to both DOM bots (like Googlebot) and HTML-limited bots.
|
|
775
|
+
const shouldWaitOnAllReady = Boolean(botType) && isRoutePPREnabled;
|
|
776
|
+
const remainingPrerenderableParams = (prerenderInfo == null ? void 0 : prerenderInfo.remainingPrerenderableParams) ?? [];
|
|
777
|
+
const hasUnresolvedRootFallbackParams = (prerenderInfo == null ? void 0 : prerenderInfo.fallback) === null && (((_prerenderInfo_fallbackRootParams = prerenderInfo.fallbackRootParams) == null ? void 0 : _prerenderInfo_fallbackRootParams.length) ?? 0) > 0;
|
|
767
778
|
let ssgCacheKey = null;
|
|
768
779
|
if (!isDraftMode && isSSG && !supportsDynamicResponse && !isPossibleServerAction && !minimalPostponed && !isDynamicRSCRequest) {
|
|
769
|
-
|
|
780
|
+
// For normal SSG routes we cache by the fully resolved pathname. For
|
|
781
|
+
// partial fallbacks we instead derive the cache key from the shell
|
|
782
|
+
// that matched this request so `/prefix/[one]/[two]` can specialize into
|
|
783
|
+
// `/prefix/c/[two]` without promoting all the way to `/prefix/c/foo`.
|
|
784
|
+
const fallbackPathname = prerenderMatch ? typeof (prerenderInfo == null ? void 0 : prerenderInfo.fallback) === 'string' ? prerenderInfo.fallback : prerenderMatch.source : null;
|
|
785
|
+
if (nextConfig.experimental.partialFallbacks === true && fallbackPathname && (prerenderInfo == null ? void 0 : prerenderInfo.fallbackRouteParams) && !hasUnresolvedRootFallbackParams) {
|
|
786
|
+
if (remainingPrerenderableParams.length > 0) {
|
|
787
|
+
const completedShellCacheKey = buildCompletedShellCacheKey(fallbackPathname, remainingPrerenderableParams, params);
|
|
788
|
+
// If applying the current request params doesn't make the shell any
|
|
789
|
+
// more complete, then this shell is already at its most complete
|
|
790
|
+
// form and should remain shared rather than creating a new cache entry.
|
|
791
|
+
ssgCacheKey = completedShellCacheKey !== fallbackPathname ? completedShellCacheKey : null;
|
|
792
|
+
}
|
|
793
|
+
} else {
|
|
794
|
+
ssgCacheKey = resolvedPathname;
|
|
795
|
+
}
|
|
770
796
|
}
|
|
771
797
|
// the staticPathKey differs from ssgCacheKey since
|
|
772
798
|
// ssgCacheKey is null in dev since we're always in "dynamic"
|
|
773
|
-
// mode in dev to bypass the cache
|
|
774
|
-
//
|
|
799
|
+
// mode in dev to bypass the cache. It can also be null for partial
|
|
800
|
+
// fallback shells that should remain shared and must not create a
|
|
801
|
+
// param-specific ISR entry, but we still need to honor fallback handling.
|
|
775
802
|
let staticPathKey = ssgCacheKey;
|
|
776
|
-
if (!staticPathKey && routeModule.isDev) {
|
|
803
|
+
if (!staticPathKey && (routeModule.isDev || isSSG && pageIsDynamic && (prerenderInfo == null ? void 0 : prerenderInfo.fallbackRouteParams))) {
|
|
777
804
|
staticPathKey = resolvedPathname;
|
|
778
805
|
}
|
|
779
806
|
// If this is a request for an app path that should be statically generated
|
|
@@ -783,9 +810,8 @@ async function handler(req, res, ctx) {
|
|
|
783
810
|
(0,next_dist_server_app_render_strip_flight_headers__WEBPACK_IMPORTED_MODULE_7__/* .stripFlightHeaders */ .d)(req.headers);
|
|
784
811
|
}
|
|
785
812
|
const ComponentMod = {
|
|
786
|
-
...
|
|
813
|
+
...next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_27__,
|
|
787
814
|
tree,
|
|
788
|
-
GlobalError: _home_runner_work_semiont_semiont_apps_frontend_src_app_global_error_tsx__WEBPACK_IMPORTED_MODULE_25__["default"],
|
|
789
815
|
handler,
|
|
790
816
|
routeModule,
|
|
791
817
|
__next_app__
|
|
@@ -803,6 +829,8 @@ async function handler(req, res, ctx) {
|
|
|
803
829
|
const method = req.method || 'GET';
|
|
804
830
|
const tracer = (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_3__.getTracer)();
|
|
805
831
|
const activeSpan = tracer.getActiveScopeSpan();
|
|
832
|
+
const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);
|
|
833
|
+
const remainingFallbackRouteParams = nextConfig.experimental.partialFallbacks === true && remainingPrerenderableParams.length > 0 ? (prerenderInfo == null ? void 0 : (_prerenderInfo_fallbackRouteParams = prerenderInfo.fallbackRouteParams) == null ? void 0 : _prerenderInfo_fallbackRouteParams.filter((param)=>!remainingPrerenderableParams.some((prerenderableParam)=>prerenderableParam.paramName === param.paramName))) ?? [] : [];
|
|
806
834
|
const render404 = async ()=>{
|
|
807
835
|
// TODO: should route-module itself handle rendering the 404
|
|
808
836
|
if (routerServerContext == null ? void 0 : routerServerContext.render404) {
|
|
@@ -815,6 +843,7 @@ async function handler(req, res, ctx) {
|
|
|
815
843
|
try {
|
|
816
844
|
const varyHeader = routeModule.getVaryHeader(resolvedPathname, interceptionRoutePatterns);
|
|
817
845
|
res.setHeader('Vary', varyHeader);
|
|
846
|
+
let parentSpan;
|
|
818
847
|
const invokeRouteModule = async (span, context)=>{
|
|
819
848
|
const nextReq = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_8__.NodeNextRequest(req);
|
|
820
849
|
const nextRes = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_8__.NodeNextResponse(res);
|
|
@@ -842,19 +871,29 @@ async function handler(req, res, ctx) {
|
|
|
842
871
|
'next.span_name': name
|
|
843
872
|
});
|
|
844
873
|
span.updateName(name);
|
|
874
|
+
// Propagate http.route to the parent span if one exists (e.g.
|
|
875
|
+
// a platform-created HTTP span in adapter deployments).
|
|
876
|
+
if (parentSpan && parentSpan !== span) {
|
|
877
|
+
parentSpan.setAttribute('http.route', route);
|
|
878
|
+
parentSpan.updateName(name);
|
|
879
|
+
}
|
|
845
880
|
} else {
|
|
846
881
|
span.updateName(`${method} ${srcPage}`);
|
|
847
882
|
}
|
|
848
883
|
});
|
|
849
884
|
};
|
|
850
|
-
const incrementalCache = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'incrementalCache');
|
|
885
|
+
const incrementalCache = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, prerenderManifest, isMinimalMode);
|
|
886
|
+
incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();
|
|
887
|
+
globalThis.__incrementalCache = incrementalCache;
|
|
851
888
|
const doRender = async ({ span, postponed, fallbackRouteParams, forceStaticRender })=>{
|
|
852
889
|
const context = {
|
|
853
890
|
query,
|
|
854
891
|
params,
|
|
855
892
|
page: normalizedSrcPage,
|
|
856
893
|
sharedContext: {
|
|
857
|
-
buildId
|
|
894
|
+
buildId,
|
|
895
|
+
deploymentId,
|
|
896
|
+
clientAssetToken
|
|
858
897
|
},
|
|
859
898
|
serverComponentsHmrCache: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'serverComponentsHmrCache'),
|
|
860
899
|
fallbackRouteParams,
|
|
@@ -890,7 +929,6 @@ async function handler(req, res, ctx) {
|
|
|
890
929
|
trailingSlash: nextConfig.trailingSlash,
|
|
891
930
|
images: nextConfig.images,
|
|
892
931
|
previewProps: prerenderManifest.preview,
|
|
893
|
-
deploymentId: deploymentId,
|
|
894
932
|
enableTainting: nextConfig.experimental.taint,
|
|
895
933
|
htmlLimitedBots: nextConfig.htmlLimitedBots,
|
|
896
934
|
reactMaxHeadersLength: nextConfig.reactMaxHeadersLength,
|
|
@@ -899,8 +937,9 @@ async function handler(req, res, ctx) {
|
|
|
899
937
|
cacheLifeProfiles: nextConfig.cacheLife,
|
|
900
938
|
basePath: nextConfig.basePath,
|
|
901
939
|
serverActions: nextConfig.experimental.serverActions,
|
|
940
|
+
logServerFunctions: typeof nextConfig.logging === 'object' && Boolean(nextConfig.logging.serverFunctions),
|
|
902
941
|
...isDebugStaticShell || isDebugDynamicAccesses || isDebugFallbackShell ? {
|
|
903
|
-
|
|
942
|
+
isBuildTimePrerendering: true,
|
|
904
943
|
supportsDynamicResponse: false,
|
|
905
944
|
isStaticGeneration: true,
|
|
906
945
|
isDebugDynamicAccesses: isDebugDynamicAccesses
|
|
@@ -911,11 +950,14 @@ async function handler(req, res, ctx) {
|
|
|
911
950
|
expireTime: nextConfig.expireTime,
|
|
912
951
|
staleTimes: nextConfig.experimental.staleTimes,
|
|
913
952
|
dynamicOnHover: Boolean(nextConfig.experimental.dynamicOnHover),
|
|
953
|
+
optimisticRouting: Boolean(nextConfig.experimental.optimisticRouting),
|
|
914
954
|
inlineCss: Boolean(nextConfig.experimental.inlineCss),
|
|
955
|
+
prefetchInlining: nextConfig.experimental.prefetchInlining ?? false,
|
|
915
956
|
authInterrupts: Boolean(nextConfig.experimental.authInterrupts),
|
|
957
|
+
cachedNavigations: Boolean(nextConfig.experimental.cachedNavigations),
|
|
916
958
|
clientTraceMetadata: nextConfig.experimental.clientTraceMetadata || [],
|
|
917
959
|
clientParamParsingOrigins: nextConfig.experimental.clientParamParsingOrigins,
|
|
918
|
-
maxPostponedStateSizeBytes: (0,
|
|
960
|
+
maxPostponedStateSizeBytes: (0,next_dist_shared_lib_size_limit__WEBPACK_IMPORTED_MODULE_25__.parseMaxPostponedStateSize)(nextConfig.experimental.maxPostponedStateSize)
|
|
919
961
|
},
|
|
920
962
|
waitUntil: ctx.waitUntil,
|
|
921
963
|
onClose: (cb)=>{
|
|
@@ -923,15 +965,9 @@ async function handler(req, res, ctx) {
|
|
|
923
965
|
},
|
|
924
966
|
onAfterTaskError: ()=>{},
|
|
925
967
|
onInstrumentationRequestError: (error, _request, errorContext, silenceLog)=>routeModule.onRequestError(req, error, errorContext, silenceLog, routerServerContext),
|
|
926
|
-
err: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'invokeError')
|
|
927
|
-
dev: routeModule.isDev
|
|
968
|
+
err: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'invokeError')
|
|
928
969
|
}
|
|
929
970
|
};
|
|
930
|
-
if (isDebugStaticShell || isDebugDynamicAccesses) {
|
|
931
|
-
context.renderOpts.nextExport = true;
|
|
932
|
-
context.renderOpts.supportsDynamicResponse = false;
|
|
933
|
-
context.renderOpts.isDebugDynamicAccesses = isDebugDynamicAccesses;
|
|
934
|
-
}
|
|
935
971
|
// When we're revalidating in the background, we should not allow dynamic
|
|
936
972
|
// responses.
|
|
937
973
|
if (forceStaticRender) {
|
|
@@ -994,6 +1030,16 @@ async function handler(req, res, ctx) {
|
|
|
994
1030
|
if (prerenderInfo) {
|
|
995
1031
|
fallbackMode = (0,next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.parseFallbackField)(prerenderInfo.fallback);
|
|
996
1032
|
}
|
|
1033
|
+
if (nextConfig.experimental.partialFallbacks === true && (prerenderInfo == null ? void 0 : prerenderInfo.fallback) === null && !hasUnresolvedRootFallbackParams && remainingPrerenderableParams.length > 0) {
|
|
1034
|
+
// Generic source shells without unresolved root params don't have a
|
|
1035
|
+
// concrete fallback file of their own, so they're marked as blocking.
|
|
1036
|
+
// When we can complete the shell into a more specific
|
|
1037
|
+
// prerendered shell for this request, treat it like a prerender
|
|
1038
|
+
// fallback so we can serve that shell instead of blocking on the full
|
|
1039
|
+
// route. Root-param shells stay blocking, since unknown root branches
|
|
1040
|
+
// should not inherit a shell from another generated branch.
|
|
1041
|
+
fallbackMode = next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.FallbackMode.PRERENDER;
|
|
1042
|
+
}
|
|
997
1043
|
// When serving a HTML bot request, we want to serve a blocking render and
|
|
998
1044
|
// not the prerendered page. This ensures that the correct content is served
|
|
999
1045
|
// to the bot in the head.
|
|
@@ -1018,10 +1064,10 @@ async function handler(req, res, ctx) {
|
|
|
1018
1064
|
// getStaticPaths.
|
|
1019
1065
|
(isProduction || prerenderInfo) && // When fallback isn't present, abort this render so we 404
|
|
1020
1066
|
fallbackMode === next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.FallbackMode.NOT_FOUND) {
|
|
1021
|
-
if (nextConfig.
|
|
1067
|
+
if (nextConfig.adapterPath) {
|
|
1022
1068
|
return await render404();
|
|
1023
1069
|
}
|
|
1024
|
-
throw new
|
|
1070
|
+
throw new next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_24__.NoFallbackError();
|
|
1025
1071
|
}
|
|
1026
1072
|
// When cacheComponents is enabled, we can use the fallback
|
|
1027
1073
|
// response if the request is not a dynamic RSC request because the
|
|
@@ -1030,10 +1076,19 @@ async function handler(req, res, ctx) {
|
|
|
1030
1076
|
// contains param references, and therefore we can't use the fallback.
|
|
1031
1077
|
if (isRoutePPREnabled && (nextConfig.cacheComponents ? !isDynamicRSCRequest : !isRSCRequest)) {
|
|
1032
1078
|
const cacheKey = isProduction && typeof (prerenderInfo == null ? void 0 : prerenderInfo.fallback) === 'string' ? prerenderInfo.fallback : normalizedSrcPage;
|
|
1033
|
-
const fallbackRouteParams = //
|
|
1034
|
-
//
|
|
1035
|
-
|
|
1079
|
+
const fallbackRouteParams = // In production or when debugging the static shell (e.g. instant
|
|
1080
|
+
// navigation testing), use the prerender manifest's fallback
|
|
1081
|
+
// route params which correctly identifies which params are
|
|
1082
|
+
// unknown. Note: in dev, this block is only entered for
|
|
1083
|
+
// non-prerendered URLs (guarded by the outer condition).
|
|
1084
|
+
(isProduction || isDebugStaticShell) && (prerenderInfo == null ? void 0 : prerenderInfo.fallbackRouteParams) ? (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.createOpaqueFallbackRouteParams)(prerenderInfo.fallbackRouteParams) : // fallback (simulating the worst-case shell).
|
|
1036
1085
|
isDebugFallbackShell ? (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.getFallbackRouteParams)(normalizedSrcPage, routeModule) : null;
|
|
1086
|
+
// When rendering a debug static shell, override the fallback
|
|
1087
|
+
// params on the request so that the staged rendering correctly
|
|
1088
|
+
// defers params that are not statically known.
|
|
1089
|
+
if (isDebugStaticShell && fallbackRouteParams) {
|
|
1090
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.addRequestMeta)(req, 'fallbackParams', fallbackRouteParams);
|
|
1091
|
+
}
|
|
1037
1092
|
// We use the response cache here to handle the revalidation and
|
|
1038
1093
|
// management of the fallback shell.
|
|
1039
1094
|
const fallbackResponse = await routeModule.handleResponse({
|
|
@@ -1049,8 +1104,12 @@ async function handler(req, res, ctx) {
|
|
|
1049
1104
|
// We pass `undefined` as rendering a fallback isn't resumed
|
|
1050
1105
|
// here.
|
|
1051
1106
|
postponed: undefined,
|
|
1107
|
+
// Always serve the shell that matched this request
|
|
1108
|
+
// immediately. If there are still prerenderable params left,
|
|
1109
|
+
// the background path below will complete the shell into a
|
|
1110
|
+
// more specific cache entry for later requests.
|
|
1052
1111
|
fallbackRouteParams,
|
|
1053
|
-
forceStaticRender:
|
|
1112
|
+
forceStaticRender: true
|
|
1054
1113
|
}),
|
|
1055
1114
|
waitUntil: ctx.waitUntil,
|
|
1056
1115
|
isMinimalMode
|
|
@@ -1059,6 +1118,39 @@ async function handler(req, res, ctx) {
|
|
|
1059
1118
|
if (fallbackResponse === null) return null;
|
|
1060
1119
|
// Otherwise, if we did get a fallback response, we should return it.
|
|
1061
1120
|
if (fallbackResponse) {
|
|
1121
|
+
if (!isMinimalMode && isRoutePPREnabled && // Match the build-time contract: only fallback shells that can
|
|
1122
|
+
// still be completed with prerenderable params should upgrade.
|
|
1123
|
+
remainingPrerenderableParams.length > 0 && nextConfig.experimental.partialFallbacks === true && ssgCacheKey && incrementalCache && !isOnDemandRevalidate && !isDebugFallbackShell && // The testing API relies on deterministic shell behavior, so
|
|
1124
|
+
// don't upgrade fallback shells in the background when it's
|
|
1125
|
+
// exposed.
|
|
1126
|
+
!exposeTestingApi && // Instant Navigation Testing API requests intentionally keep
|
|
1127
|
+
// the route in shell mode; don't upgrade these in background.
|
|
1128
|
+
!isInstantNavigationTest && // Avoid background revalidate during prefetches; this can trigger
|
|
1129
|
+
// static prerender errors that surface as 500s for the prefetch
|
|
1130
|
+
// request itself.
|
|
1131
|
+
!isPrefetchRSCRequest) {
|
|
1132
|
+
(0,next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_30__.scheduleOnNextTick)(async ()=>{
|
|
1133
|
+
const responseCache = routeModule.getResponseCache(req);
|
|
1134
|
+
try {
|
|
1135
|
+
// Only the params that were just specialized should be
|
|
1136
|
+
// removed from the fallback render. Any remaining fallback
|
|
1137
|
+
// params stay deferred so the revalidated result is a more
|
|
1138
|
+
// specific shell (e.g. `/prefix/c/[two]`), not a fully
|
|
1139
|
+
// concrete route (`/prefix/c/foo`).
|
|
1140
|
+
await responseCache.revalidate(ssgCacheKey, incrementalCache, isRoutePPREnabled, false, (c)=>{
|
|
1141
|
+
return doRender({
|
|
1142
|
+
span: c.span,
|
|
1143
|
+
postponed: undefined,
|
|
1144
|
+
fallbackRouteParams: remainingFallbackRouteParams.length > 0 ? (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.createOpaqueFallbackRouteParams)(remainingFallbackRouteParams) : null,
|
|
1145
|
+
forceStaticRender: true
|
|
1146
|
+
});
|
|
1147
|
+
}, // We don't have a prior entry for this param-specific shell.
|
|
1148
|
+
null, hasResolved, ctx.waitUntil);
|
|
1149
|
+
} catch (err) {
|
|
1150
|
+
console.error('Error revalidating the page in the background', err);
|
|
1151
|
+
}
|
|
1152
|
+
});
|
|
1153
|
+
}
|
|
1062
1154
|
// Remove the cache control from the response to prevent it from being
|
|
1063
1155
|
// used in the surrounding cache.
|
|
1064
1156
|
delete fallbackResponse.cacheControl;
|
|
@@ -1069,12 +1161,15 @@ async function handler(req, res, ctx) {
|
|
|
1069
1161
|
// Only requests that aren't revalidating can be resumed. If we have the
|
|
1070
1162
|
// minimal postponed data, then we should resume the render with it.
|
|
1071
1163
|
let postponed = !isOnDemandRevalidate && !isRevalidating && minimalPostponed ? minimalPostponed : undefined;
|
|
1072
|
-
// If this is a dynamic RSC request
|
|
1073
|
-
// the static render (if available). This
|
|
1074
|
-
// resume data cache (RDC) from the static
|
|
1075
|
-
// is consistent between the static and
|
|
1164
|
+
// If this is a dynamic RSC request or a server action request, we should
|
|
1165
|
+
// use the postponed data from the static render (if available). This
|
|
1166
|
+
// ensures that we can utilize the resume data cache (RDC) from the static
|
|
1167
|
+
// render to ensure that the data is consistent between the static and
|
|
1168
|
+
// dynamic renders (for navigations) or when re-rendering after a server
|
|
1169
|
+
// action.
|
|
1076
1170
|
if (// Only enable RDC for Navigations if the feature is enabled.
|
|
1077
|
-
supportsRDCForNavigations && "nodejs" !== 'edge' && !isMinimalMode && incrementalCache &&
|
|
1171
|
+
supportsRDCForNavigations && "nodejs" !== 'edge' && !isMinimalMode && incrementalCache && // Include both dynamic RSC requests (navigations) and server actions
|
|
1172
|
+
(isDynamicRSCRequest || isPossibleServerAction) && // We don't typically trigger an on-demand revalidation for dynamic RSC
|
|
1078
1173
|
// requests, as we're typically revalidating the page in the background
|
|
1079
1174
|
// instead. However, if the cache entry is stale, we should trigger a
|
|
1080
1175
|
// background revalidation on dynamic RSC requests. This prevents us
|
|
@@ -1099,7 +1194,7 @@ async function handler(req, res, ctx) {
|
|
|
1099
1194
|
(incrementalCacheEntry.isStale === -1 || incrementalCacheEntry.isStale === true)) {
|
|
1100
1195
|
// We want to schedule this on the next tick to ensure that the
|
|
1101
1196
|
// render is not blocked on it.
|
|
1102
|
-
(0,
|
|
1197
|
+
(0,next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_30__.scheduleOnNextTick)(async ()=>{
|
|
1103
1198
|
const responseCache = routeModule.getResponseCache(req);
|
|
1104
1199
|
try {
|
|
1105
1200
|
await responseCache.revalidate(resolvedPathname, incrementalCache, isRoutePPREnabled, false, (c)=>responseGenerator({
|
|
@@ -1136,11 +1231,21 @@ async function handler(req, res, ctx) {
|
|
|
1136
1231
|
}
|
|
1137
1232
|
};
|
|
1138
1233
|
}
|
|
1139
|
-
const fallbackRouteParams = //
|
|
1140
|
-
//
|
|
1141
|
-
//
|
|
1142
|
-
isProduction && (prerenderInfo == null ? void 0 : prerenderInfo.fallbackRouteParams)
|
|
1143
|
-
|
|
1234
|
+
const fallbackRouteParams = // In production or when debugging the static shell for a
|
|
1235
|
+
// non-prerendered URL, use the prerender manifest's fallback route
|
|
1236
|
+
// params which correctly identifies which params are unknown.
|
|
1237
|
+
(isProduction && (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'renderFallbackShell') || isDebugStaticShell && !isPrerendered) && (prerenderInfo == null ? void 0 : prerenderInfo.fallbackRouteParams) ? (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.createOpaqueFallbackRouteParams)(prerenderInfo.fallbackRouteParams) : isDebugFallbackShell ? (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.getFallbackRouteParams)(normalizedSrcPage, routeModule) : null;
|
|
1238
|
+
// For staged dynamic rendering (Cached Navigations) and debug static
|
|
1239
|
+
// shell rendering, pass the fallback params via request meta so the
|
|
1240
|
+
// RequestStore knows which params to defer. We don't pass them as
|
|
1241
|
+
// fallbackRouteParams because that would replace actual param values
|
|
1242
|
+
// with opaque placeholders during segment resolution.
|
|
1243
|
+
if ((isProduction || isDebugStaticShell) && nextConfig.cacheComponents && !isPrerendered && (prerenderInfo == null ? void 0 : prerenderInfo.fallbackRouteParams)) {
|
|
1244
|
+
const fallbackParams = (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.createOpaqueFallbackRouteParams)(prerenderInfo.fallbackRouteParams);
|
|
1245
|
+
if (fallbackParams) {
|
|
1246
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.addRequestMeta)(req, 'fallbackParams', fallbackParams);
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1144
1249
|
// Perform the render.
|
|
1145
1250
|
return doRender({
|
|
1146
1251
|
span,
|
|
@@ -1171,7 +1276,7 @@ async function handler(req, res, ctx) {
|
|
|
1171
1276
|
}
|
|
1172
1277
|
// In dev, we should not cache pages for any reason.
|
|
1173
1278
|
if (routeModule.isDev) {
|
|
1174
|
-
res.setHeader('Cache-Control', 'no-
|
|
1279
|
+
res.setHeader('Cache-Control', 'no-cache, must-revalidate');
|
|
1175
1280
|
}
|
|
1176
1281
|
if (!cacheEntry) {
|
|
1177
1282
|
if (ssgCacheKey) {
|
|
@@ -1197,6 +1302,16 @@ async function handler(req, res, ctx) {
|
|
|
1197
1302
|
});
|
|
1198
1303
|
}
|
|
1199
1304
|
const didPostpone = typeof cacheEntry.value.postponed === 'string';
|
|
1305
|
+
// Set the build ID header for RSC navigation requests when deploymentId is configured. This
|
|
1306
|
+
// corresponds with maybeAppendBuildIdToRSCPayload in app-render.tsx which omits the build ID
|
|
1307
|
+
// from the RSC payload when deploymentId is set (relying on this header instead). Server
|
|
1308
|
+
// actions are excluded here because action redirect responses get the deployment ID header
|
|
1309
|
+
// from the pre-fetched redirect target (via createRedirectRenderResult in action-handler.ts
|
|
1310
|
+
// which copies headers from the internal RSC fetch).
|
|
1311
|
+
// For static prerenders served from CDN, routes-manifest.json adds a header.
|
|
1312
|
+
if (isRSCRequest && !isPossibleServerAction && deploymentId) {
|
|
1313
|
+
res.setHeader(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_NAV_DEPLOYMENT_ID_HEADER, deploymentId);
|
|
1314
|
+
}
|
|
1200
1315
|
if (isSSG && // We don't want to send a cache header for requests that contain dynamic
|
|
1201
1316
|
// data. If this is a Dynamic RSC request or wasn't a Prefetch RSC
|
|
1202
1317
|
// request, then we should set the cache header.
|
|
@@ -1257,7 +1372,7 @@ async function handler(req, res, ctx) {
|
|
|
1257
1372
|
};
|
|
1258
1373
|
} else {
|
|
1259
1374
|
cacheControl = {
|
|
1260
|
-
revalidate: next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.
|
|
1375
|
+
revalidate: next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.CACHE_ONE_YEAR_SECONDS,
|
|
1261
1376
|
expire: undefined
|
|
1262
1377
|
};
|
|
1263
1378
|
}
|
|
@@ -1285,7 +1400,7 @@ async function handler(req, res, ctx) {
|
|
|
1285
1400
|
const matchedSegment = cachedData.segmentData.get(segmentPrefetchHeader);
|
|
1286
1401
|
if (matchedSegment !== undefined) {
|
|
1287
1402
|
// Cache hit
|
|
1288
|
-
return (0,
|
|
1403
|
+
return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
|
|
1289
1404
|
req,
|
|
1290
1405
|
res,
|
|
1291
1406
|
generateEtags: nextConfig.generateEtags,
|
|
@@ -1301,7 +1416,7 @@ async function handler(req, res, ctx) {
|
|
|
1301
1416
|
// don't bother to respond with 404, because these requests are only
|
|
1302
1417
|
// issued as part of a prefetch.
|
|
1303
1418
|
res.statusCode = 204;
|
|
1304
|
-
return (0,
|
|
1419
|
+
return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
|
|
1305
1420
|
req,
|
|
1306
1421
|
res,
|
|
1307
1422
|
generateEtags: nextConfig.generateEtags,
|
|
@@ -1356,7 +1471,7 @@ async function handler(req, res, ctx) {
|
|
|
1356
1471
|
res.statusCode = cachedData.status;
|
|
1357
1472
|
}
|
|
1358
1473
|
// Redirect information is encoded in RSC payload, so we don't need to use redirect status codes
|
|
1359
|
-
if (!isMinimalMode && cachedData.status &&
|
|
1474
|
+
if (!isMinimalMode && cachedData.status && next_dist_client_components_redirect_status_code__WEBPACK_IMPORTED_MODULE_28__.RedirectStatusCode[cachedData.status] && isRSCRequest) {
|
|
1360
1475
|
res.statusCode = 200;
|
|
1361
1476
|
}
|
|
1362
1477
|
// Mark that the request did postpone.
|
|
@@ -1374,7 +1489,7 @@ async function handler(req, res, ctx) {
|
|
|
1374
1489
|
if (cachedData.html.contentType !== next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.RSC_CONTENT_TYPE_HEADER) {
|
|
1375
1490
|
if (nextConfig.cacheComponents) {
|
|
1376
1491
|
res.statusCode = 404;
|
|
1377
|
-
return (0,
|
|
1492
|
+
return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
|
|
1378
1493
|
req,
|
|
1379
1494
|
res,
|
|
1380
1495
|
generateEtags: nextConfig.generateEtags,
|
|
@@ -1384,14 +1499,14 @@ async function handler(req, res, ctx) {
|
|
|
1384
1499
|
});
|
|
1385
1500
|
} else {
|
|
1386
1501
|
// Otherwise this case is not expected.
|
|
1387
|
-
throw Object.defineProperty(new
|
|
1502
|
+
throw Object.defineProperty(new next_dist_shared_lib_invariant_error__WEBPACK_IMPORTED_MODULE_29__.InvariantError(`Expected RSC response, got ${cachedData.html.contentType}`), "__NEXT_ERROR_CODE", {
|
|
1388
1503
|
value: "E789",
|
|
1389
1504
|
enumerable: false,
|
|
1390
1505
|
configurable: true
|
|
1391
1506
|
});
|
|
1392
1507
|
}
|
|
1393
1508
|
}
|
|
1394
|
-
return (0,
|
|
1509
|
+
return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
|
|
1395
1510
|
req,
|
|
1396
1511
|
res,
|
|
1397
1512
|
generateEtags: nextConfig.generateEtags,
|
|
@@ -1402,7 +1517,7 @@ async function handler(req, res, ctx) {
|
|
|
1402
1517
|
}
|
|
1403
1518
|
// As this isn't a prefetch request, we should serve the static flight
|
|
1404
1519
|
// data.
|
|
1405
|
-
return (0,
|
|
1520
|
+
return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
|
|
1406
1521
|
req,
|
|
1407
1522
|
res,
|
|
1408
1523
|
generateEtags: nextConfig.generateEtags,
|
|
@@ -1413,6 +1528,27 @@ async function handler(req, res, ctx) {
|
|
|
1413
1528
|
}
|
|
1414
1529
|
// This is a request for HTML data.
|
|
1415
1530
|
const body = cachedData.html;
|
|
1531
|
+
// Instant Navigation Testing API: serve the static shell with an
|
|
1532
|
+
// injected script that sets self.__next_instant_test and kicks off a
|
|
1533
|
+
// static RSC fetch for hydration. The transform stream also appends
|
|
1534
|
+
// closing </body></html> tags so the browser can parse the full document.
|
|
1535
|
+
// In dev mode, also inject self.__next_r so the HMR WebSocket and
|
|
1536
|
+
// debug channel can initialize.
|
|
1537
|
+
if (isInstantNavigationTest && isDebugStaticShell) {
|
|
1538
|
+
const instantTestRequestId = routeModule.isDev === true ? crypto.randomUUID() : null;
|
|
1539
|
+
body.pipeThrough((0,next_dist_server_stream_utils_node_web_streams_helper__WEBPACK_IMPORTED_MODULE_22__.createInstantTestScriptInsertionTransformStream)(instantTestRequestId));
|
|
1540
|
+
return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
|
|
1541
|
+
req,
|
|
1542
|
+
res,
|
|
1543
|
+
generateEtags: nextConfig.generateEtags,
|
|
1544
|
+
poweredByHeader: nextConfig.poweredByHeader,
|
|
1545
|
+
result: body,
|
|
1546
|
+
cacheControl: {
|
|
1547
|
+
revalidate: 0,
|
|
1548
|
+
expire: undefined
|
|
1549
|
+
}
|
|
1550
|
+
});
|
|
1551
|
+
}
|
|
1416
1552
|
// If there's no postponed state, we should just serve the HTML. This
|
|
1417
1553
|
// should also be the case for a resume request because it's completed
|
|
1418
1554
|
// as a server render (rather than a static render).
|
|
@@ -1421,7 +1557,7 @@ async function handler(req, res, ctx) {
|
|
|
1421
1557
|
// that's between the static and dynamic parts so we can compare the
|
|
1422
1558
|
// chunks and add assertions.
|
|
1423
1559
|
if (false) {}
|
|
1424
|
-
return (0,
|
|
1560
|
+
return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
|
|
1425
1561
|
req,
|
|
1426
1562
|
res,
|
|
1427
1563
|
generateEtags: nextConfig.generateEtags,
|
|
@@ -1443,7 +1579,7 @@ async function handler(req, res, ctx) {
|
|
|
1443
1579
|
controller.close();
|
|
1444
1580
|
}
|
|
1445
1581
|
}));
|
|
1446
|
-
return (0,
|
|
1582
|
+
return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
|
|
1447
1583
|
req,
|
|
1448
1584
|
res,
|
|
1449
1585
|
generateEtags: nextConfig.generateEtags,
|
|
@@ -1500,7 +1636,7 @@ async function handler(req, res, ctx) {
|
|
|
1500
1636
|
console.error("couldn't abort transformer", e);
|
|
1501
1637
|
});
|
|
1502
1638
|
});
|
|
1503
|
-
return (0,
|
|
1639
|
+
return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
|
|
1504
1640
|
req,
|
|
1505
1641
|
res,
|
|
1506
1642
|
generateEtags: nextConfig.generateEtags,
|
|
@@ -1517,9 +1653,10 @@ async function handler(req, res, ctx) {
|
|
|
1517
1653
|
};
|
|
1518
1654
|
// TODO: activeSpan code path is for when wrapped by
|
|
1519
1655
|
// next-server can be removed when this is no longer used
|
|
1520
|
-
if (activeSpan) {
|
|
1656
|
+
if (isWrappedByNextServer && activeSpan) {
|
|
1521
1657
|
await handleResponse(activeSpan);
|
|
1522
1658
|
} else {
|
|
1659
|
+
parentSpan = tracer.getActiveScopeSpan();
|
|
1523
1660
|
return await tracer.withPropagatedContext(req.headers, ()=>tracer.trace(next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_5__.BaseServerSpan.handleRequest, {
|
|
1524
1661
|
spanName: `${method} ${srcPage}`,
|
|
1525
1662
|
kind: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_3__.SpanKind.SERVER,
|
|
@@ -1527,10 +1664,10 @@ async function handler(req, res, ctx) {
|
|
|
1527
1664
|
'http.method': method,
|
|
1528
1665
|
'http.target': req.url
|
|
1529
1666
|
}
|
|
1530
|
-
}, handleResponse));
|
|
1667
|
+
}, handleResponse), undefined, !isWrappedByNextServer);
|
|
1531
1668
|
}
|
|
1532
1669
|
} catch (err) {
|
|
1533
|
-
if (!(err instanceof
|
|
1670
|
+
if (!(err instanceof next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_24__.NoFallbackError)) {
|
|
1534
1671
|
const silenceLog = false;
|
|
1535
1672
|
await routeModule.onRequestError(req, err, {
|
|
1536
1673
|
routerKind: 'App Router',
|
|
@@ -1563,6 +1700,88 @@ async function handler(req, res, ctx) {
|
|
|
1563
1700
|
//# sourceMappingURL=app-page.js.map
|
|
1564
1701
|
|
|
1565
1702
|
|
|
1703
|
+
/***/ }),
|
|
1704
|
+
|
|
1705
|
+
/***/ 68497:
|
|
1706
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1707
|
+
|
|
1708
|
+
"use strict";
|
|
1709
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1710
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1711
|
+
/* harmony export */ _: () => (/* binding */ _interop_require_default)
|
|
1712
|
+
/* harmony export */ });
|
|
1713
|
+
function _interop_require_default(obj) {
|
|
1714
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
|
|
1718
|
+
|
|
1719
|
+
/***/ }),
|
|
1720
|
+
|
|
1721
|
+
/***/ 70722:
|
|
1722
|
+
/***/ ((module) => {
|
|
1723
|
+
|
|
1724
|
+
"use strict";
|
|
1725
|
+
module.exports = require("next/dist/shared/lib/invariant-error");
|
|
1726
|
+
|
|
1727
|
+
/***/ }),
|
|
1728
|
+
|
|
1729
|
+
/***/ 72353:
|
|
1730
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1731
|
+
|
|
1732
|
+
"use strict";
|
|
1733
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1734
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1735
|
+
/* harmony export */ "default": () => (/* binding */ RootNotFound)
|
|
1736
|
+
/* harmony export */ });
|
|
1737
|
+
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2474);
|
|
1738
|
+
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__);
|
|
1739
|
+
|
|
1740
|
+
// Root-level not found page - must not use any client components or hooks
|
|
1741
|
+
function RootNotFound() {
|
|
1742
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
|
|
1743
|
+
style: {
|
|
1744
|
+
display: 'flex',
|
|
1745
|
+
flexDirection: 'column',
|
|
1746
|
+
alignItems: 'center',
|
|
1747
|
+
justifyContent: 'center',
|
|
1748
|
+
minHeight: '100vh',
|
|
1749
|
+
padding: '2rem',
|
|
1750
|
+
fontFamily: 'system-ui, -apple-system, sans-serif'
|
|
1751
|
+
},
|
|
1752
|
+
children: [
|
|
1753
|
+
/*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("h1", {
|
|
1754
|
+
style: {
|
|
1755
|
+
fontSize: '4rem',
|
|
1756
|
+
margin: 0
|
|
1757
|
+
},
|
|
1758
|
+
children: "404"
|
|
1759
|
+
}),
|
|
1760
|
+
/*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("p", {
|
|
1761
|
+
style: {
|
|
1762
|
+
fontSize: '1.5rem',
|
|
1763
|
+
marginTop: '1rem'
|
|
1764
|
+
},
|
|
1765
|
+
children: "Page not found"
|
|
1766
|
+
}),
|
|
1767
|
+
/*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("a", {
|
|
1768
|
+
href: "/en",
|
|
1769
|
+
style: {
|
|
1770
|
+
marginTop: '2rem',
|
|
1771
|
+
padding: '0.75rem 1.5rem',
|
|
1772
|
+
backgroundColor: '#0070f3',
|
|
1773
|
+
color: 'white',
|
|
1774
|
+
textDecoration: 'none',
|
|
1775
|
+
borderRadius: '0.5rem',
|
|
1776
|
+
display: 'inline-block'
|
|
1777
|
+
},
|
|
1778
|
+
children: "Go home"
|
|
1779
|
+
})
|
|
1780
|
+
]
|
|
1781
|
+
});
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1784
|
+
|
|
1566
1785
|
/***/ }),
|
|
1567
1786
|
|
|
1568
1787
|
/***/ 77068:
|
|
@@ -1601,6 +1820,174 @@ module.exports = require("next/dist/shared/lib/no-fallback-error.external");
|
|
|
1601
1820
|
|
|
1602
1821
|
|
|
1603
1822
|
|
|
1823
|
+
/***/ }),
|
|
1824
|
+
|
|
1825
|
+
/***/ 97809:
|
|
1826
|
+
/***/ ((module, exports, __webpack_require__) => {
|
|
1827
|
+
|
|
1828
|
+
"use strict";
|
|
1829
|
+
|
|
1830
|
+
Object.defineProperty(exports, "__esModule", ({
|
|
1831
|
+
value: true
|
|
1832
|
+
}));
|
|
1833
|
+
0 && (0);
|
|
1834
|
+
function _export(target, all) {
|
|
1835
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
1836
|
+
enumerable: true,
|
|
1837
|
+
get: all[name]
|
|
1838
|
+
});
|
|
1839
|
+
}
|
|
1840
|
+
_export(exports, {
|
|
1841
|
+
WarningIcon: function() {
|
|
1842
|
+
return WarningIcon;
|
|
1843
|
+
},
|
|
1844
|
+
errorStyles: function() {
|
|
1845
|
+
return errorStyles;
|
|
1846
|
+
},
|
|
1847
|
+
errorThemeCss: function() {
|
|
1848
|
+
return errorThemeCss;
|
|
1849
|
+
}
|
|
1850
|
+
});
|
|
1851
|
+
const _interop_require_default = __webpack_require__(68497);
|
|
1852
|
+
const _jsxruntime = __webpack_require__(2474);
|
|
1853
|
+
const _react = /*#__PURE__*/ _interop_require_default._(__webpack_require__(10963));
|
|
1854
|
+
const errorStyles = {
|
|
1855
|
+
container: {
|
|
1856
|
+
fontFamily: 'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',
|
|
1857
|
+
height: '100vh',
|
|
1858
|
+
display: 'flex',
|
|
1859
|
+
alignItems: 'center',
|
|
1860
|
+
justifyContent: 'center'
|
|
1861
|
+
},
|
|
1862
|
+
card: {
|
|
1863
|
+
marginTop: '-32px',
|
|
1864
|
+
maxWidth: '325px',
|
|
1865
|
+
padding: '32px 28px',
|
|
1866
|
+
textAlign: 'left'
|
|
1867
|
+
},
|
|
1868
|
+
icon: {
|
|
1869
|
+
marginBottom: '24px'
|
|
1870
|
+
},
|
|
1871
|
+
title: {
|
|
1872
|
+
fontSize: '24px',
|
|
1873
|
+
fontWeight: 500,
|
|
1874
|
+
letterSpacing: '-0.02em',
|
|
1875
|
+
lineHeight: '32px',
|
|
1876
|
+
margin: '0 0 12px 0',
|
|
1877
|
+
color: 'var(--next-error-title)'
|
|
1878
|
+
},
|
|
1879
|
+
message: {
|
|
1880
|
+
fontSize: '14px',
|
|
1881
|
+
fontWeight: 400,
|
|
1882
|
+
lineHeight: '21px',
|
|
1883
|
+
margin: '0 0 20px 0',
|
|
1884
|
+
color: 'var(--next-error-message)'
|
|
1885
|
+
},
|
|
1886
|
+
form: {
|
|
1887
|
+
margin: 0
|
|
1888
|
+
},
|
|
1889
|
+
buttonGroup: {
|
|
1890
|
+
display: 'flex',
|
|
1891
|
+
gap: '8px',
|
|
1892
|
+
alignItems: 'center'
|
|
1893
|
+
},
|
|
1894
|
+
button: {
|
|
1895
|
+
display: 'inline-flex',
|
|
1896
|
+
alignItems: 'center',
|
|
1897
|
+
justifyContent: 'center',
|
|
1898
|
+
height: '32px',
|
|
1899
|
+
padding: '0 12px',
|
|
1900
|
+
fontSize: '14px',
|
|
1901
|
+
fontWeight: 500,
|
|
1902
|
+
lineHeight: '20px',
|
|
1903
|
+
borderRadius: '6px',
|
|
1904
|
+
cursor: 'pointer',
|
|
1905
|
+
color: 'var(--next-error-btn-text)',
|
|
1906
|
+
background: 'var(--next-error-btn-bg)',
|
|
1907
|
+
border: 'var(--next-error-btn-border)'
|
|
1908
|
+
},
|
|
1909
|
+
buttonSecondary: {
|
|
1910
|
+
display: 'inline-flex',
|
|
1911
|
+
alignItems: 'center',
|
|
1912
|
+
justifyContent: 'center',
|
|
1913
|
+
height: '32px',
|
|
1914
|
+
padding: '0 12px',
|
|
1915
|
+
fontSize: '14px',
|
|
1916
|
+
fontWeight: 500,
|
|
1917
|
+
lineHeight: '20px',
|
|
1918
|
+
borderRadius: '6px',
|
|
1919
|
+
cursor: 'pointer',
|
|
1920
|
+
color: 'var(--next-error-btn-secondary-text)',
|
|
1921
|
+
background: 'var(--next-error-btn-secondary-bg)',
|
|
1922
|
+
border: 'var(--next-error-btn-secondary-border)'
|
|
1923
|
+
},
|
|
1924
|
+
digestFooter: {
|
|
1925
|
+
position: 'fixed',
|
|
1926
|
+
bottom: '32px',
|
|
1927
|
+
left: '0',
|
|
1928
|
+
right: '0',
|
|
1929
|
+
textAlign: 'center',
|
|
1930
|
+
fontFamily: 'ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace',
|
|
1931
|
+
fontSize: '12px',
|
|
1932
|
+
lineHeight: '18px',
|
|
1933
|
+
fontWeight: 400,
|
|
1934
|
+
margin: '0',
|
|
1935
|
+
color: 'var(--next-error-digest)'
|
|
1936
|
+
}
|
|
1937
|
+
};
|
|
1938
|
+
const errorThemeCss = `
|
|
1939
|
+
:root {
|
|
1940
|
+
--next-error-bg: #fff;
|
|
1941
|
+
--next-error-text: #171717;
|
|
1942
|
+
--next-error-title: #171717;
|
|
1943
|
+
--next-error-message: #171717;
|
|
1944
|
+
--next-error-digest: #666666;
|
|
1945
|
+
--next-error-btn-text: #fff;
|
|
1946
|
+
--next-error-btn-bg: #171717;
|
|
1947
|
+
--next-error-btn-border: none;
|
|
1948
|
+
--next-error-btn-secondary-text: #171717;
|
|
1949
|
+
--next-error-btn-secondary-bg: transparent;
|
|
1950
|
+
--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);
|
|
1951
|
+
}
|
|
1952
|
+
@media (prefers-color-scheme: dark) {
|
|
1953
|
+
:root {
|
|
1954
|
+
--next-error-bg: #0a0a0a;
|
|
1955
|
+
--next-error-text: #ededed;
|
|
1956
|
+
--next-error-title: #ededed;
|
|
1957
|
+
--next-error-message: #ededed;
|
|
1958
|
+
--next-error-digest: #a0a0a0;
|
|
1959
|
+
--next-error-btn-text: #0a0a0a;
|
|
1960
|
+
--next-error-btn-bg: #ededed;
|
|
1961
|
+
--next-error-btn-border: none;
|
|
1962
|
+
--next-error-btn-secondary-text: #ededed;
|
|
1963
|
+
--next-error-btn-secondary-bg: transparent;
|
|
1964
|
+
--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);
|
|
1965
|
+
}
|
|
1966
|
+
}
|
|
1967
|
+
body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }
|
|
1968
|
+
`.replace(/\n\s*/g, '');
|
|
1969
|
+
function WarningIcon() {
|
|
1970
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)("svg", {
|
|
1971
|
+
width: "32",
|
|
1972
|
+
height: "32",
|
|
1973
|
+
viewBox: "-0.2 -1.5 32 32",
|
|
1974
|
+
fill: "none",
|
|
1975
|
+
style: errorStyles.icon,
|
|
1976
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)("path", {
|
|
1977
|
+
d: "M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z",
|
|
1978
|
+
fill: "var(--next-error-title)"
|
|
1979
|
+
})
|
|
1980
|
+
});
|
|
1981
|
+
}
|
|
1982
|
+
if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
|
|
1983
|
+
Object.defineProperty(exports.default, '__esModule', {
|
|
1984
|
+
value: true
|
|
1985
|
+
});
|
|
1986
|
+
Object.assign(exports.default, exports);
|
|
1987
|
+
module.exports = exports.default;
|
|
1988
|
+
} //# sourceMappingURL=error-styles.js.map
|
|
1989
|
+
|
|
1990
|
+
|
|
1604
1991
|
/***/ }),
|
|
1605
1992
|
|
|
1606
1993
|
/***/ 99409:
|
|
@@ -1618,7 +2005,7 @@ Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_re
|
|
|
1618
2005
|
var __webpack_require__ = require("../../webpack-runtime.js");
|
|
1619
2006
|
__webpack_require__.C(exports);
|
|
1620
2007
|
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
|
|
1621
|
-
var __webpack_exports__ = __webpack_require__.X(0, [
|
|
2008
|
+
var __webpack_exports__ = __webpack_require__.X(0, [8569,9927], () => (__webpack_exec__(67966)));
|
|
1622
2009
|
module.exports = __webpack_exports__;
|
|
1623
2010
|
|
|
1624
2011
|
})();
|