@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
|
@@ -20,1579 +20,1842 @@ module.exports = require("next/dist/server/app-render/after-task-async-storage.e
|
|
|
20
20
|
|
|
21
21
|
/***/ }),
|
|
22
22
|
|
|
23
|
-
/***/
|
|
23
|
+
/***/ 10846:
|
|
24
|
+
/***/ ((module) => {
|
|
25
|
+
|
|
26
|
+
"use strict";
|
|
27
|
+
module.exports = require("next/dist/compiled/next-server/app-page.runtime.prod.js");
|
|
28
|
+
|
|
29
|
+
/***/ }),
|
|
30
|
+
|
|
31
|
+
/***/ 11105:
|
|
32
|
+
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
33
|
+
|
|
34
|
+
Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 94996));
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/***/ }),
|
|
38
|
+
|
|
39
|
+
/***/ 17891:
|
|
40
|
+
/***/ ((module) => {
|
|
41
|
+
|
|
42
|
+
"use strict";
|
|
43
|
+
module.exports = require("next/dist/shared/lib/router/utils/get-segment-param");
|
|
44
|
+
|
|
45
|
+
/***/ }),
|
|
46
|
+
|
|
47
|
+
/***/ 19121:
|
|
48
|
+
/***/ ((module) => {
|
|
49
|
+
|
|
50
|
+
"use strict";
|
|
51
|
+
module.exports = require("next/dist/server/app-render/action-async-storage.external.js");
|
|
52
|
+
|
|
53
|
+
/***/ }),
|
|
54
|
+
|
|
55
|
+
/***/ 19771:
|
|
56
|
+
/***/ ((module) => {
|
|
57
|
+
|
|
58
|
+
"use strict";
|
|
59
|
+
module.exports = require("process");
|
|
60
|
+
|
|
61
|
+
/***/ }),
|
|
62
|
+
|
|
63
|
+
/***/ 20706:
|
|
24
64
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
25
65
|
|
|
26
66
|
"use strict";
|
|
27
67
|
__webpack_require__.r(__webpack_exports__);
|
|
28
68
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
29
|
-
/* harmony export */
|
|
30
|
-
/* harmony export */ __next_app__: () => (/* binding */ __next_app__),
|
|
31
|
-
/* harmony export */ handler: () => (/* binding */ handler),
|
|
32
|
-
/* harmony export */ routeModule: () => (/* binding */ routeModule)
|
|
69
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
33
70
|
/* harmony export */ });
|
|
34
|
-
/* harmony import */ var
|
|
35
|
-
/* harmony import */ var
|
|
36
|
-
|
|
37
|
-
/* harmony import */ var next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4675);
|
|
38
|
-
/* harmony import */ var next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29796);
|
|
39
|
-
/* harmony import */ var next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_3__);
|
|
40
|
-
/* harmony import */ var next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(54046);
|
|
41
|
-
/* harmony import */ var next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__);
|
|
42
|
-
/* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(74928);
|
|
43
|
-
/* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_5__);
|
|
44
|
-
/* harmony import */ var next_dist_server_app_render_interop_default__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(19727);
|
|
45
|
-
/* harmony import */ var next_dist_server_app_render_strip_flight_headers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(24268);
|
|
46
|
-
/* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(60402);
|
|
47
|
-
/* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_8__);
|
|
48
|
-
/* harmony import */ var next_dist_server_lib_experimental_ppr__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(22040);
|
|
49
|
-
/* harmony import */ var next_dist_server_lib_experimental_ppr__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_experimental_ppr__WEBPACK_IMPORTED_MODULE_9__);
|
|
50
|
-
/* harmony import */ var next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(27186);
|
|
51
|
-
/* harmony import */ var next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__);
|
|
52
|
-
/* harmony import */ var next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(49228);
|
|
53
|
-
/* harmony import */ var next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_11__);
|
|
54
|
-
/* harmony import */ var next_dist_server_lib_streaming_metadata__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(97485);
|
|
55
|
-
/* harmony import */ var next_dist_server_lib_streaming_metadata__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_streaming_metadata__WEBPACK_IMPORTED_MODULE_12__);
|
|
56
|
-
/* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(261);
|
|
57
|
-
/* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_13__);
|
|
58
|
-
/* harmony import */ var next_dist_server_lib_server_action_request_meta__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(80885);
|
|
59
|
-
/* harmony import */ var next_dist_server_lib_server_action_request_meta__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_server_action_request_meta__WEBPACK_IMPORTED_MODULE_14__);
|
|
60
|
-
/* harmony import */ var next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(7162);
|
|
61
|
-
/* harmony import */ var next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__);
|
|
62
|
-
/* harmony import */ var next_dist_shared_lib_router_utils_is_bot__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(26713);
|
|
63
|
-
/* harmony import */ var next_dist_shared_lib_router_utils_is_bot__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_router_utils_is_bot__WEBPACK_IMPORTED_MODULE_16__);
|
|
64
|
-
/* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(70972);
|
|
65
|
-
/* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__);
|
|
66
|
-
/* harmony import */ var next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(57341);
|
|
67
|
-
/* harmony import */ var next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__);
|
|
68
|
-
/* harmony import */ var next_dist_server_render_result__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(95105);
|
|
69
|
-
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(38038);
|
|
70
|
-
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__);
|
|
71
|
-
/* harmony import */ var next_dist_server_stream_utils_encoded_tags__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(29898);
|
|
72
|
-
/* harmony import */ var next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(98798);
|
|
73
|
-
/* harmony import */ var next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_22__);
|
|
74
|
-
/* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(86439);
|
|
75
|
-
/* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_23__);
|
|
76
|
-
/* harmony import */ var next_dist_shared_lib_size_limit__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(77068);
|
|
77
|
-
/* harmony import */ var next_dist_shared_lib_size_limit__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_size_limit__WEBPACK_IMPORTED_MODULE_24__);
|
|
78
|
-
/* harmony import */ var _home_runner_work_semiont_semiont_apps_frontend_src_app_global_error_tsx__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(56357);
|
|
79
|
-
/* harmony import */ var next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(35402);
|
|
80
|
-
/* harmony import */ var next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_26__);
|
|
81
|
-
/* harmony import */ var next_dist_client_components_redirect_status_code__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(29059);
|
|
82
|
-
/* harmony import */ var next_dist_client_components_redirect_status_code__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(next_dist_client_components_redirect_status_code__WEBPACK_IMPORTED_MODULE_27__);
|
|
83
|
-
/* harmony import */ var next_dist_shared_lib_invariant_error__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(70722);
|
|
84
|
-
/* harmony import */ var next_dist_shared_lib_invariant_error__WEBPACK_IMPORTED_MODULE_28___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_invariant_error__WEBPACK_IMPORTED_MODULE_28__);
|
|
85
|
-
/* harmony import */ var next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(31182);
|
|
86
|
-
/* harmony import */ var next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_29__);
|
|
87
|
-
/* harmony import */ var next_dist_shared_lib_router_utils_interception_routes__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(43954);
|
|
88
|
-
/* harmony import */ var next_dist_shared_lib_router_utils_interception_routes__WEBPACK_IMPORTED_MODULE_30___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_router_utils_interception_routes__WEBPACK_IMPORTED_MODULE_30__);
|
|
89
|
-
/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
90
|
-
/* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_26__) if(["default","GlobalError","__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_26__[__WEBPACK_IMPORT_KEY__]
|
|
91
|
-
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
92
|
-
const module0 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 95235));
|
|
93
|
-
const module1 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 25195));
|
|
94
|
-
const module2 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 56357));
|
|
95
|
-
const module3 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 72353));
|
|
96
|
-
const module4 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.t.bind(__webpack_require__, 4253, 23));
|
|
97
|
-
const module5 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.t.bind(__webpack_require__, 49184, 23));
|
|
98
|
-
const module6 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 57149));
|
|
99
|
-
const module7 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 28310));
|
|
100
|
-
const module8 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 20706));
|
|
101
|
-
const page9 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 71977));
|
|
71
|
+
/* harmony import */ var react_server_dom_webpack_server__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(30274);
|
|
72
|
+
/* harmony import */ var react_server_dom_webpack_server__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_server_dom_webpack_server__WEBPACK_IMPORTED_MODULE_0__);
|
|
73
|
+
// This file is generated by the Webpack next-flight-loader.
|
|
102
74
|
|
|
75
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_server_dom_webpack_server__WEBPACK_IMPORTED_MODULE_0__.registerClientReference)(
|
|
76
|
+
function() { throw new Error("Attempted to call the default export of \"/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/admin/layout.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component."); },
|
|
77
|
+
"/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/admin/layout.tsx",
|
|
78
|
+
"default",
|
|
79
|
+
));
|
|
103
80
|
|
|
104
81
|
|
|
82
|
+
/***/ }),
|
|
105
83
|
|
|
84
|
+
/***/ 25197:
|
|
85
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
106
86
|
|
|
87
|
+
"use strict";
|
|
88
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
89
|
+
/* harmony export */ C$z: () => (/* reexport safe */ _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__.useEventSubscriptions),
|
|
90
|
+
/* harmony export */ TbX: () => (/* reexport safe */ _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__.SimpleNavigation)
|
|
91
|
+
/* harmony export */ });
|
|
92
|
+
/* harmony import */ var _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(76552);
|
|
107
93
|
|
|
108
94
|
|
|
109
95
|
|
|
96
|
+
/***/ }),
|
|
110
97
|
|
|
98
|
+
/***/ 25888:
|
|
99
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
111
100
|
|
|
101
|
+
"use strict";
|
|
102
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
103
|
+
/* harmony export */ Ef3: () => (/* reexport safe */ _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__.LeftSidebar),
|
|
104
|
+
/* harmony export */ ffs: () => (/* reexport safe */ _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__.AuthTokenProvider),
|
|
105
|
+
/* harmony export */ pqI: () => (/* reexport safe */ _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__.ApiClientProvider),
|
|
106
|
+
/* harmony export */ wi6: () => (/* reexport safe */ _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__.Footer)
|
|
107
|
+
/* harmony export */ });
|
|
108
|
+
/* harmony import */ var _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(76552);
|
|
112
109
|
|
|
113
110
|
|
|
114
111
|
|
|
112
|
+
/***/ }),
|
|
115
113
|
|
|
114
|
+
/***/ 26713:
|
|
115
|
+
/***/ ((module) => {
|
|
116
116
|
|
|
117
|
+
"use strict";
|
|
118
|
+
module.exports = require("next/dist/shared/lib/router/utils/is-bot");
|
|
117
119
|
|
|
120
|
+
/***/ }),
|
|
118
121
|
|
|
122
|
+
/***/ 28354:
|
|
123
|
+
/***/ ((module) => {
|
|
119
124
|
|
|
125
|
+
"use strict";
|
|
126
|
+
module.exports = require("util");
|
|
120
127
|
|
|
128
|
+
/***/ }),
|
|
121
129
|
|
|
130
|
+
/***/ 29294:
|
|
131
|
+
/***/ ((module) => {
|
|
122
132
|
|
|
133
|
+
"use strict";
|
|
134
|
+
module.exports = require("next/dist/server/app-render/work-async-storage.external.js");
|
|
123
135
|
|
|
136
|
+
/***/ }),
|
|
124
137
|
|
|
138
|
+
/***/ 30796:
|
|
139
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
125
140
|
|
|
141
|
+
"use strict";
|
|
142
|
+
// ESM COMPAT FLAG
|
|
143
|
+
__webpack_require__.r(__webpack_exports__);
|
|
126
144
|
|
|
127
|
-
//
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
'',
|
|
132
|
-
{
|
|
133
|
-
children: [
|
|
134
|
-
'[locale]',
|
|
135
|
-
{
|
|
136
|
-
children: [
|
|
137
|
-
'admin',
|
|
138
|
-
{
|
|
139
|
-
children: [
|
|
140
|
-
'devops',
|
|
141
|
-
{
|
|
142
|
-
children: ['__PAGE__', {}, {
|
|
143
|
-
page: [page9, "/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/admin/devops/page.tsx"],
|
|
144
|
-
|
|
145
|
-
}]
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
}
|
|
151
|
-
]
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
'layout': [module8, "/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/admin/layout.tsx"],
|
|
155
|
-
|
|
156
|
-
}
|
|
157
|
-
]
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
'layout': [module6, "/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/layout.tsx"],
|
|
161
|
-
'not-found': [module7, "/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/not-found.tsx"],
|
|
162
|
-
|
|
163
|
-
}
|
|
164
|
-
]
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
'layout': [module0, "/home/runner/work/semiont/semiont/apps/frontend/src/app/layout.tsx"],
|
|
168
|
-
'error': [module1, "/home/runner/work/semiont/semiont/apps/frontend/src/app/error.tsx"],
|
|
169
|
-
'global-error': [module2, "/home/runner/work/semiont/semiont/apps/frontend/src/app/global-error.tsx"],
|
|
170
|
-
'not-found': [module3, "/home/runner/work/semiont/semiont/apps/frontend/src/app/not-found.tsx"],
|
|
171
|
-
'forbidden': [module4, "next/dist/client/components/builtin/forbidden.js"],
|
|
172
|
-
'unauthorized': [module5, "next/dist/client/components/builtin/unauthorized.js"],
|
|
173
|
-
|
|
174
|
-
}
|
|
175
|
-
]
|
|
176
|
-
}.children;
|
|
145
|
+
// EXPORTS
|
|
146
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
147
|
+
"default": () => (/* binding */ AdminLayout)
|
|
148
|
+
});
|
|
177
149
|
|
|
150
|
+
// EXTERNAL MODULE: ../../node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-jsx-runtime.js
|
|
151
|
+
var react_jsx_runtime = __webpack_require__(92692);
|
|
152
|
+
// EXTERNAL MODULE: ../../node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react.js
|
|
153
|
+
var react = __webpack_require__(71277);
|
|
154
|
+
// EXTERNAL MODULE: ../../node_modules/next-intl/dist/esm/production/react-client/index.js
|
|
155
|
+
var react_client = __webpack_require__(56305);
|
|
156
|
+
// EXTERNAL MODULE: ../../node_modules/next-auth/react/index.js
|
|
157
|
+
var next_auth_react = __webpack_require__(62341);
|
|
158
|
+
// EXTERNAL MODULE: ./src/i18n/routing.ts
|
|
159
|
+
var routing = __webpack_require__(99704);
|
|
160
|
+
// EXTERNAL MODULE: __barrel_optimize__?names=SimpleNavigation,useEventSubscriptions!=!../../packages/react-ui/dist/index.mjs
|
|
161
|
+
var dist = __webpack_require__(25197);
|
|
162
|
+
;// ../../node_modules/@heroicons/react/24/outline/esm/UsersIcon.js
|
|
178
163
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
164
|
+
function UsersIcon({ title, titleId, ...props }, svgRef) {
|
|
165
|
+
return /*#__PURE__*/ react.createElement("svg", Object.assign({
|
|
166
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
167
|
+
fill: "none",
|
|
168
|
+
viewBox: "0 0 24 24",
|
|
169
|
+
strokeWidth: 1.5,
|
|
170
|
+
stroke: "currentColor",
|
|
171
|
+
"aria-hidden": "true",
|
|
172
|
+
"data-slot": "icon",
|
|
173
|
+
ref: svgRef,
|
|
174
|
+
"aria-labelledby": titleId
|
|
175
|
+
}, props), title ? /*#__PURE__*/ react.createElement("title", {
|
|
176
|
+
id: titleId
|
|
177
|
+
}, title) : null, /*#__PURE__*/ react.createElement("path", {
|
|
178
|
+
strokeLinecap: "round",
|
|
179
|
+
strokeLinejoin: "round",
|
|
180
|
+
d: "M15 19.128a9.38 9.38 0 0 0 2.625.372 9.337 9.337 0 0 0 4.121-.952 4.125 4.125 0 0 0-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 0 1 8.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0 1 11.964-3.07M12 6.375a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0Zm8.25 2.25a2.625 2.625 0 1 1-5.25 0 2.625 2.625 0 0 1 5.25 0Z"
|
|
181
|
+
}));
|
|
182
|
+
}
|
|
183
|
+
const ForwardRef = /*#__PURE__*/ react.forwardRef(UsersIcon);
|
|
184
|
+
/* harmony default export */ const esm_UsersIcon = (ForwardRef);
|
|
185
185
|
|
|
186
|
+
// EXTERNAL MODULE: ../../node_modules/@heroicons/react/24/outline/esm/ShieldCheckIcon.js
|
|
187
|
+
var ShieldCheckIcon = __webpack_require__(33135);
|
|
188
|
+
// EXTERNAL MODULE: ../../node_modules/@heroicons/react/24/outline/esm/ArrowsRightLeftIcon.js
|
|
189
|
+
var ArrowsRightLeftIcon = __webpack_require__(32037);
|
|
190
|
+
// EXTERNAL MODULE: ../../node_modules/@heroicons/react/24/outline/esm/CommandLineIcon.js
|
|
191
|
+
var CommandLineIcon = __webpack_require__(79591);
|
|
192
|
+
// EXTERNAL MODULE: ../../node_modules/@heroicons/react/24/outline/esm/ChevronLeftIcon.js
|
|
193
|
+
var ChevronLeftIcon = __webpack_require__(71062);
|
|
194
|
+
// EXTERNAL MODULE: ../../node_modules/@heroicons/react/24/outline/esm/Bars3Icon.js
|
|
195
|
+
var Bars3Icon = __webpack_require__(67255);
|
|
196
|
+
;// ./src/components/admin/AdminNavigation.tsx
|
|
197
|
+
/* __next_internal_client_entry_do_not_use__ AdminNavigation auto */
|
|
186
198
|
|
|
187
199
|
|
|
188
200
|
|
|
189
201
|
|
|
190
202
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
distDir: ".next" || 0,
|
|
206
|
-
relativeProjectDir: false || ''
|
|
207
|
-
});
|
|
208
|
-
async function handler(req, res, ctx) {
|
|
209
|
-
var _this;
|
|
210
|
-
if (routeModule.isDev) {
|
|
211
|
-
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.addRequestMeta)(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());
|
|
212
|
-
}
|
|
213
|
-
const isMinimalMode = Boolean( false || (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'minimalMode'));
|
|
214
|
-
let srcPage = "/[locale]/admin/devops/page";
|
|
215
|
-
// turbopack doesn't normalize `/index` in the page name
|
|
216
|
-
// so we need to to process dynamic routes properly
|
|
217
|
-
// TODO: fix turbopack providing differing value from webpack
|
|
218
|
-
if (false) {} else if (srcPage === '/index') {
|
|
219
|
-
// we always normalize /index specifically
|
|
220
|
-
srcPage = '/';
|
|
221
|
-
}
|
|
222
|
-
const multiZoneDraftMode = false;
|
|
223
|
-
const prepareResult = await routeModule.prepare(req, res, {
|
|
224
|
-
srcPage,
|
|
225
|
-
multiZoneDraftMode
|
|
203
|
+
|
|
204
|
+
function AdminNavigation({ isCollapsed, toggleCollapsed, navigationMenu }) {
|
|
205
|
+
const t = (0,react_client/* useTranslations */.c)('Administration');
|
|
206
|
+
const tSidebar = (0,react_client/* useTranslations */.c)('Sidebar');
|
|
207
|
+
const pathname = (0,routing/* usePathname */.a8)();
|
|
208
|
+
// Handle sidebar toggle events
|
|
209
|
+
const handleSidebarToggle = (0,react.useCallback)(()=>{
|
|
210
|
+
toggleCollapsed();
|
|
211
|
+
}, [
|
|
212
|
+
toggleCollapsed
|
|
213
|
+
]);
|
|
214
|
+
// Subscribe to sidebar toggle events
|
|
215
|
+
(0,dist/* useEventSubscriptions */.C$z)({
|
|
216
|
+
'browse:sidebar-toggle': handleSidebarToggle
|
|
226
217
|
});
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
*/ const isPrefetchRSCRequest = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'isPrefetchRSCRequest') ?? req.headers[next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.NEXT_ROUTER_PREFETCH_HEADER] === '1' // exclude runtime prefetches, which use '2'
|
|
252
|
-
;
|
|
253
|
-
// NOTE: Don't delete headers[RSC] yet, it still needs to be used in renderToHTML later
|
|
254
|
-
const isRSCRequest = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'isRSCRequest') ?? Boolean(req.headers[next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.RSC_HEADER]);
|
|
255
|
-
const isPossibleServerAction = (0,next_dist_server_lib_server_action_request_meta__WEBPACK_IMPORTED_MODULE_14__.getIsPossibleServerAction)(req);
|
|
256
|
-
/**
|
|
257
|
-
* If the route being rendered is an app page, and the ppr feature has been
|
|
258
|
-
* enabled, then the given route _could_ support PPR.
|
|
259
|
-
*/ const couldSupportPPR = (0,next_dist_server_lib_experimental_ppr__WEBPACK_IMPORTED_MODULE_9__.checkIsAppPPREnabled)(nextConfig.experimental.ppr);
|
|
260
|
-
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') {
|
|
261
|
-
// Decode the postponed state from the request body, it will come as
|
|
262
|
-
// an array of buffers, so collect them and then concat them to form
|
|
263
|
-
// the string.
|
|
264
|
-
const body = [];
|
|
265
|
-
for await (const chunk of req){
|
|
266
|
-
body.push(chunk);
|
|
267
|
-
}
|
|
268
|
-
const postponed = Buffer.concat(body).toString('utf8');
|
|
269
|
-
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.addRequestMeta)(req, 'postponed', postponed);
|
|
270
|
-
}
|
|
271
|
-
// When enabled, this will allow the use of the `?__nextppronly` query to
|
|
272
|
-
// enable debugging of the static shell.
|
|
273
|
-
const hasDebugStaticShellQuery = false && 0;
|
|
274
|
-
// When enabled, this will allow the use of the `?__nextppronly` query
|
|
275
|
-
// to enable debugging of the fallback shell.
|
|
276
|
-
const hasDebugFallbackShellQuery = hasDebugStaticShellQuery && query.__nextppronly === 'fallback';
|
|
277
|
-
// This page supports PPR if it is marked as being `PARTIALLY_STATIC` in the
|
|
278
|
-
// prerender manifest and this is an app page.
|
|
279
|
-
const isRoutePPREnabled = couldSupportPPR && (((_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
|
|
280
|
-
// enabled or not, but that would require plumbing the appConfig through
|
|
281
|
-
// to the server during development. We assume that the page supports it
|
|
282
|
-
// but only during development.
|
|
283
|
-
hasDebugStaticShellQuery && (routeModule.isDev === true || (routerServerContext == null ? void 0 : routerServerContext.experimentalTestProxy) === true));
|
|
284
|
-
const isDebugStaticShell = hasDebugStaticShellQuery && isRoutePPREnabled;
|
|
285
|
-
// We should enable debugging dynamic accesses when the static shell
|
|
286
|
-
// debugging has been enabled and we're also in development mode.
|
|
287
|
-
const isDebugDynamicAccesses = isDebugStaticShell && routeModule.isDev === true;
|
|
288
|
-
const isDebugFallbackShell = hasDebugFallbackShellQuery && isRoutePPREnabled;
|
|
289
|
-
// If we're in minimal mode, then try to get the postponed information from
|
|
290
|
-
// the request metadata. If available, use it for resuming the postponed
|
|
291
|
-
// render.
|
|
292
|
-
const minimalPostponed = isRoutePPREnabled ? (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'postponed') : undefined;
|
|
293
|
-
// If PPR is enabled, and this is a RSC request (but not a prefetch), then
|
|
294
|
-
// we can use this fact to only generate the flight data for the request
|
|
295
|
-
// because we can't cache the HTML (as it's also dynamic).
|
|
296
|
-
let isDynamicRSCRequest = isRoutePPREnabled && isRSCRequest && !isPrefetchRSCRequest;
|
|
297
|
-
// During a PPR revalidation, the RSC request is not dynamic if we do not have the postponed data.
|
|
298
|
-
// We only attach the postponed data during a resume. If there's no postponed data, then it must be a revalidation.
|
|
299
|
-
// This is to ensure that we don't bypass the cache during a revalidation.
|
|
300
|
-
if (isMinimalMode) {
|
|
301
|
-
isDynamicRSCRequest = isDynamicRSCRequest && !!minimalPostponed;
|
|
302
|
-
}
|
|
303
|
-
// Need to read this before it's stripped by stripFlightHeaders. We don't
|
|
304
|
-
// need to transfer it to the request meta because it's only read
|
|
305
|
-
// within this function; the static segment data should have already been
|
|
306
|
-
// generated, so we will always either return a static response or a 404.
|
|
307
|
-
const segmentPrefetchHeader = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'segmentPrefetchRSCRequest');
|
|
308
|
-
// TODO: investigate existing bug with shouldServeStreamingMetadata always
|
|
309
|
-
// being true for a revalidate due to modifying the base-server this.renderOpts
|
|
310
|
-
// when fixing this to correct logic it causes hydration issue since we set
|
|
311
|
-
// serveStreamingMetadata to true during export
|
|
312
|
-
const serveStreamingMetadata = isHtmlBot && isRoutePPREnabled ? false : !userAgent ? true : (0,next_dist_server_lib_streaming_metadata__WEBPACK_IMPORTED_MODULE_12__.shouldServeStreamingMetadata)(userAgent, nextConfig.htmlLimitedBots);
|
|
313
|
-
const isSSG = Boolean((prerenderInfo || isPrerendered || prerenderManifest.routes[normalizedSrcPage]) && // If this is a html bot request and PPR is enabled, then we don't want
|
|
314
|
-
// to serve a static response.
|
|
315
|
-
!(isHtmlBot && isRoutePPREnabled));
|
|
316
|
-
// When a page supports cacheComponents, we can support RDC for Navigations
|
|
317
|
-
const supportsRDCForNavigations = isRoutePPREnabled && nextConfig.cacheComponents === true;
|
|
318
|
-
// In development, we always want to generate dynamic HTML.
|
|
319
|
-
const supportsDynamicResponse = // If we're in development, we always support dynamic HTML, unless it's
|
|
320
|
-
// a data request, in which case we only produce static HTML.
|
|
321
|
-
routeModule.isDev === true || // If this is not SSG or does not have static paths, then it supports
|
|
322
|
-
// dynamic HTML.
|
|
323
|
-
!isSSG || // If this request has provided postponed data, it supports dynamic
|
|
324
|
-
// HTML.
|
|
325
|
-
typeof minimalPostponed === 'string' || // If this handler supports onCacheEntryV2, then we can only support
|
|
326
|
-
// dynamic responses if it's a dynamic RSC request and not in minimal mode. If it
|
|
327
|
-
// doesn't support it we must fallback to the default behavior.
|
|
328
|
-
(supportsRDCForNavigations && (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'onCacheEntryV2') ? // which will generate the RDC for the route. When resuming a Dynamic
|
|
329
|
-
// RSC request, we'll pass the minimal postponed data to the render
|
|
330
|
-
// which will trigger the `supportsDynamicResponse` to be true.
|
|
331
|
-
isDynamicRSCRequest && !isMinimalMode : isDynamicRSCRequest);
|
|
332
|
-
// When html bots request PPR page, perform the full dynamic rendering.
|
|
333
|
-
const shouldWaitOnAllReady = isHtmlBot && isRoutePPREnabled;
|
|
334
|
-
let ssgCacheKey = null;
|
|
335
|
-
if (!isDraftMode && isSSG && !supportsDynamicResponse && !isPossibleServerAction && !minimalPostponed && !isDynamicRSCRequest) {
|
|
336
|
-
ssgCacheKey = resolvedPathname;
|
|
337
|
-
}
|
|
338
|
-
// the staticPathKey differs from ssgCacheKey since
|
|
339
|
-
// ssgCacheKey is null in dev since we're always in "dynamic"
|
|
340
|
-
// mode in dev to bypass the cache, but we still need to honor
|
|
341
|
-
// dynamicParams = false in dev mode
|
|
342
|
-
let staticPathKey = ssgCacheKey;
|
|
343
|
-
if (!staticPathKey && routeModule.isDev) {
|
|
344
|
-
staticPathKey = resolvedPathname;
|
|
345
|
-
}
|
|
346
|
-
// If this is a request for an app path that should be statically generated
|
|
347
|
-
// and we aren't in the edge runtime, strip the flight headers so it will
|
|
348
|
-
// generate the static response.
|
|
349
|
-
if (!routeModule.isDev && !isDraftMode && isSSG && isRSCRequest && !isDynamicRSCRequest) {
|
|
350
|
-
(0,next_dist_server_app_render_strip_flight_headers__WEBPACK_IMPORTED_MODULE_7__/* .stripFlightHeaders */ .d)(req.headers);
|
|
351
|
-
}
|
|
352
|
-
const ComponentMod = {
|
|
353
|
-
...next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_26__,
|
|
354
|
-
tree,
|
|
355
|
-
GlobalError: _home_runner_work_semiont_semiont_apps_frontend_src_app_global_error_tsx__WEBPACK_IMPORTED_MODULE_25__["default"],
|
|
356
|
-
handler,
|
|
357
|
-
routeModule,
|
|
358
|
-
__next_app__
|
|
359
|
-
};
|
|
360
|
-
// Before rendering (which initializes component tree modules), we have to
|
|
361
|
-
// set the reference manifests to our global store so Server Action's
|
|
362
|
-
// encryption util can access to them at the top level of the page module.
|
|
363
|
-
if (serverActionsManifest && clientReferenceManifest) {
|
|
364
|
-
(0,next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_11__.setManifestsSingleton)({
|
|
365
|
-
page: srcPage,
|
|
366
|
-
clientReferenceManifest,
|
|
367
|
-
serverActionsManifest
|
|
368
|
-
});
|
|
369
|
-
}
|
|
370
|
-
const method = req.method || 'GET';
|
|
371
|
-
const tracer = (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_3__.getTracer)();
|
|
372
|
-
const activeSpan = tracer.getActiveScopeSpan();
|
|
373
|
-
const render404 = async ()=>{
|
|
374
|
-
// TODO: should route-module itself handle rendering the 404
|
|
375
|
-
if (routerServerContext == null ? void 0 : routerServerContext.render404) {
|
|
376
|
-
await routerServerContext.render404(req, res, parsedUrl, false);
|
|
377
|
-
} else {
|
|
378
|
-
res.end('This page could not be found');
|
|
218
|
+
const navigation = [
|
|
219
|
+
{
|
|
220
|
+
name: t('users'),
|
|
221
|
+
href: '/admin/users',
|
|
222
|
+
icon: esm_UsersIcon,
|
|
223
|
+
description: t('usersDescription')
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
name: t('oauthSettings'),
|
|
227
|
+
href: '/admin/security',
|
|
228
|
+
icon: ShieldCheckIcon/* default */.A,
|
|
229
|
+
description: t('oauthSettingsDescription')
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
name: t('exchange'),
|
|
233
|
+
href: '/admin/exchange',
|
|
234
|
+
icon: ArrowsRightLeftIcon/* default */.A,
|
|
235
|
+
description: t('exchangeDescription')
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
name: t('devops'),
|
|
239
|
+
href: '/admin/devops',
|
|
240
|
+
icon: CommandLineIcon/* default */.A,
|
|
241
|
+
description: t('devopsDescription')
|
|
379
242
|
}
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
return;
|
|
398
|
-
}
|
|
399
|
-
if (rootSpanAttributes.get('next.span_type') !== next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_5__.BaseServerSpan.handleRequest) {
|
|
400
|
-
console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);
|
|
401
|
-
return;
|
|
402
|
-
}
|
|
403
|
-
const route = rootSpanAttributes.get('next.route');
|
|
404
|
-
if (route) {
|
|
405
|
-
const name = `${method} ${route}`;
|
|
406
|
-
span.setAttributes({
|
|
407
|
-
'next.route': route,
|
|
408
|
-
'http.route': route,
|
|
409
|
-
'next.span_name': name
|
|
410
|
-
});
|
|
411
|
-
span.updateName(name);
|
|
412
|
-
} else {
|
|
413
|
-
span.updateName(`${method} ${srcPage}`);
|
|
414
|
-
}
|
|
415
|
-
});
|
|
416
|
-
};
|
|
417
|
-
const incrementalCache = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'incrementalCache');
|
|
418
|
-
const doRender = async ({ span, postponed, fallbackRouteParams, forceStaticRender })=>{
|
|
419
|
-
const context = {
|
|
420
|
-
query,
|
|
421
|
-
params,
|
|
422
|
-
page: normalizedSrcPage,
|
|
423
|
-
sharedContext: {
|
|
424
|
-
buildId
|
|
425
|
-
},
|
|
426
|
-
serverComponentsHmrCache: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'serverComponentsHmrCache'),
|
|
427
|
-
fallbackRouteParams,
|
|
428
|
-
renderOpts: {
|
|
429
|
-
App: ()=>null,
|
|
430
|
-
Document: ()=>null,
|
|
431
|
-
pageConfig: {},
|
|
432
|
-
ComponentMod,
|
|
433
|
-
Component: (0,next_dist_server_app_render_interop_default__WEBPACK_IMPORTED_MODULE_6__/* .interopDefault */ .T)(ComponentMod),
|
|
434
|
-
params,
|
|
435
|
-
routeModule,
|
|
436
|
-
page: srcPage,
|
|
437
|
-
postponed,
|
|
438
|
-
shouldWaitOnAllReady,
|
|
439
|
-
serveStreamingMetadata,
|
|
440
|
-
supportsDynamicResponse: typeof postponed === 'string' || supportsDynamicResponse,
|
|
441
|
-
buildManifest,
|
|
442
|
-
nextFontManifest,
|
|
443
|
-
reactLoadableManifest,
|
|
444
|
-
subresourceIntegrityManifest,
|
|
445
|
-
setCacheStatus: routerServerContext == null ? void 0 : routerServerContext.setCacheStatus,
|
|
446
|
-
setIsrStatus: routerServerContext == null ? void 0 : routerServerContext.setIsrStatus,
|
|
447
|
-
setReactDebugChannel: routerServerContext == null ? void 0 : routerServerContext.setReactDebugChannel,
|
|
448
|
-
sendErrorsToBrowser: routerServerContext == null ? void 0 : routerServerContext.sendErrorsToBrowser,
|
|
449
|
-
dir: true ? (__webpack_require__(33873).join)(/* turbopackIgnore: true */ process.cwd(), routeModule.relativeProjectDir) : 0,
|
|
450
|
-
isDraftMode,
|
|
451
|
-
botType,
|
|
452
|
-
isOnDemandRevalidate,
|
|
453
|
-
isPossibleServerAction,
|
|
454
|
-
assetPrefix: nextConfig.assetPrefix,
|
|
455
|
-
nextConfigOutput: nextConfig.output,
|
|
456
|
-
crossOrigin: nextConfig.crossOrigin,
|
|
457
|
-
trailingSlash: nextConfig.trailingSlash,
|
|
458
|
-
images: nextConfig.images,
|
|
459
|
-
previewProps: prerenderManifest.preview,
|
|
460
|
-
deploymentId: deploymentId,
|
|
461
|
-
enableTainting: nextConfig.experimental.taint,
|
|
462
|
-
htmlLimitedBots: nextConfig.htmlLimitedBots,
|
|
463
|
-
reactMaxHeadersLength: nextConfig.reactMaxHeadersLength,
|
|
464
|
-
multiZoneDraftMode,
|
|
465
|
-
incrementalCache,
|
|
466
|
-
cacheLifeProfiles: nextConfig.cacheLife,
|
|
467
|
-
basePath: nextConfig.basePath,
|
|
468
|
-
serverActions: nextConfig.experimental.serverActions,
|
|
469
|
-
...isDebugStaticShell || isDebugDynamicAccesses || isDebugFallbackShell ? {
|
|
470
|
-
nextExport: true,
|
|
471
|
-
supportsDynamicResponse: false,
|
|
472
|
-
isStaticGeneration: true,
|
|
473
|
-
isDebugDynamicAccesses: isDebugDynamicAccesses
|
|
474
|
-
} : {},
|
|
475
|
-
cacheComponents: Boolean(nextConfig.cacheComponents),
|
|
476
|
-
experimental: {
|
|
477
|
-
isRoutePPREnabled,
|
|
478
|
-
expireTime: nextConfig.expireTime,
|
|
479
|
-
staleTimes: nextConfig.experimental.staleTimes,
|
|
480
|
-
dynamicOnHover: Boolean(nextConfig.experimental.dynamicOnHover),
|
|
481
|
-
inlineCss: Boolean(nextConfig.experimental.inlineCss),
|
|
482
|
-
authInterrupts: Boolean(nextConfig.experimental.authInterrupts),
|
|
483
|
-
clientTraceMetadata: nextConfig.experimental.clientTraceMetadata || [],
|
|
484
|
-
clientParamParsingOrigins: nextConfig.experimental.clientParamParsingOrigins,
|
|
485
|
-
maxPostponedStateSizeBytes: (0,next_dist_shared_lib_size_limit__WEBPACK_IMPORTED_MODULE_24__.parseMaxPostponedStateSize)(nextConfig.experimental.maxPostponedStateSize)
|
|
486
|
-
},
|
|
487
|
-
waitUntil: ctx.waitUntil,
|
|
488
|
-
onClose: (cb)=>{
|
|
489
|
-
res.on('close', cb);
|
|
490
|
-
},
|
|
491
|
-
onAfterTaskError: ()=>{},
|
|
492
|
-
onInstrumentationRequestError: (error, _request, errorContext, silenceLog)=>routeModule.onRequestError(req, error, errorContext, silenceLog, routerServerContext),
|
|
493
|
-
err: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'invokeError'),
|
|
494
|
-
dev: routeModule.isDev
|
|
495
|
-
}
|
|
496
|
-
};
|
|
497
|
-
if (isDebugStaticShell || isDebugDynamicAccesses) {
|
|
498
|
-
context.renderOpts.nextExport = true;
|
|
499
|
-
context.renderOpts.supportsDynamicResponse = false;
|
|
500
|
-
context.renderOpts.isDebugDynamicAccesses = isDebugDynamicAccesses;
|
|
501
|
-
}
|
|
502
|
-
// When we're revalidating in the background, we should not allow dynamic
|
|
503
|
-
// responses.
|
|
504
|
-
if (forceStaticRender) {
|
|
505
|
-
context.renderOpts.supportsDynamicResponse = false;
|
|
506
|
-
}
|
|
507
|
-
const result = await invokeRouteModule(span, context);
|
|
508
|
-
const { metadata } = result;
|
|
509
|
-
const { cacheControl, headers = {}, // Add any fetch tags that were on the page to the response headers.
|
|
510
|
-
fetchTags: cacheTags, fetchMetrics } = metadata;
|
|
511
|
-
if (cacheTags) {
|
|
512
|
-
headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_CACHE_TAGS_HEADER] = cacheTags;
|
|
513
|
-
}
|
|
514
|
-
// Pull any fetch metrics from the render onto the request.
|
|
515
|
-
;
|
|
516
|
-
req.fetchMetrics = fetchMetrics;
|
|
517
|
-
// we don't throw static to dynamic errors in dev as isSSG
|
|
518
|
-
// is a best guess in dev since we don't have the prerender pass
|
|
519
|
-
// to know whether the path is actually static or not
|
|
520
|
-
if (isSSG && (cacheControl == null ? void 0 : cacheControl.revalidate) === 0 && !routeModule.isDev && !isRoutePPREnabled) {
|
|
521
|
-
const staticBailoutInfo = metadata.staticBailoutInfo;
|
|
522
|
-
const err = Object.defineProperty(new Error(`Page changed from static to dynamic at runtime ${resolvedPathname}${(staticBailoutInfo == null ? void 0 : staticBailoutInfo.description) ? `, reason: ${staticBailoutInfo.description}` : ``}` + `\nsee more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`), "__NEXT_ERROR_CODE", {
|
|
523
|
-
value: "E132",
|
|
524
|
-
enumerable: false,
|
|
525
|
-
configurable: true
|
|
526
|
-
});
|
|
527
|
-
if (staticBailoutInfo == null ? void 0 : staticBailoutInfo.stack) {
|
|
528
|
-
const stack = staticBailoutInfo.stack;
|
|
529
|
-
err.stack = err.message + stack.substring(stack.indexOf('\n'));
|
|
530
|
-
}
|
|
531
|
-
throw err;
|
|
532
|
-
}
|
|
533
|
-
return {
|
|
534
|
-
value: {
|
|
535
|
-
kind: next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_PAGE,
|
|
536
|
-
html: result,
|
|
537
|
-
headers,
|
|
538
|
-
rscData: metadata.flightData,
|
|
539
|
-
postponed: metadata.postponed,
|
|
540
|
-
status: metadata.statusCode,
|
|
541
|
-
segmentData: metadata.segmentData
|
|
542
|
-
},
|
|
543
|
-
cacheControl
|
|
544
|
-
};
|
|
545
|
-
};
|
|
546
|
-
const responseGenerator = async ({ hasResolved, previousCacheEntry: previousIncrementalCacheEntry, isRevalidating, span, forceStaticRender = false })=>{
|
|
547
|
-
const isProduction = routeModule.isDev === false;
|
|
548
|
-
const didRespond = hasResolved || res.writableEnded;
|
|
549
|
-
// skip on-demand revalidate if cache is not present and
|
|
550
|
-
// revalidate-if-generated is set
|
|
551
|
-
if (isOnDemandRevalidate && revalidateOnlyGenerated && !previousIncrementalCacheEntry && !isMinimalMode) {
|
|
552
|
-
if (routerServerContext == null ? void 0 : routerServerContext.render404) {
|
|
553
|
-
await routerServerContext.render404(req, res);
|
|
554
|
-
} else {
|
|
555
|
-
res.statusCode = 404;
|
|
556
|
-
res.end('This page could not be found');
|
|
557
|
-
}
|
|
558
|
-
return null;
|
|
559
|
-
}
|
|
560
|
-
let fallbackMode;
|
|
561
|
-
if (prerenderInfo) {
|
|
562
|
-
fallbackMode = (0,next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.parseFallbackField)(prerenderInfo.fallback);
|
|
563
|
-
}
|
|
564
|
-
// When serving a HTML bot request, we want to serve a blocking render and
|
|
565
|
-
// not the prerendered page. This ensures that the correct content is served
|
|
566
|
-
// to the bot in the head.
|
|
567
|
-
if (fallbackMode === next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.FallbackMode.PRERENDER && (0,next_dist_shared_lib_router_utils_is_bot__WEBPACK_IMPORTED_MODULE_16__.isBot)(userAgent)) {
|
|
568
|
-
if (!isRoutePPREnabled || isHtmlBot) {
|
|
569
|
-
fallbackMode = next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.FallbackMode.BLOCKING_STATIC_RENDER;
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
if ((previousIncrementalCacheEntry == null ? void 0 : previousIncrementalCacheEntry.isStale) === -1) {
|
|
573
|
-
isOnDemandRevalidate = true;
|
|
574
|
-
}
|
|
575
|
-
// TODO: adapt for PPR
|
|
576
|
-
// only allow on-demand revalidate for fallback: true/blocking
|
|
577
|
-
// or for prerendered fallback: false paths
|
|
578
|
-
if (isOnDemandRevalidate && (fallbackMode !== next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.FallbackMode.NOT_FOUND || previousIncrementalCacheEntry)) {
|
|
579
|
-
fallbackMode = next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.FallbackMode.BLOCKING_STATIC_RENDER;
|
|
580
|
-
}
|
|
581
|
-
if (!isMinimalMode && fallbackMode !== next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.FallbackMode.BLOCKING_STATIC_RENDER && staticPathKey && !didRespond && !isDraftMode && pageIsDynamic && (isProduction || !isPrerendered)) {
|
|
582
|
-
// if the page has dynamicParams: false and this pathname wasn't
|
|
583
|
-
// prerendered trigger the no fallback handling
|
|
584
|
-
if (// In development, fall through to render to handle missing
|
|
585
|
-
// getStaticPaths.
|
|
586
|
-
(isProduction || prerenderInfo) && // When fallback isn't present, abort this render so we 404
|
|
587
|
-
fallbackMode === next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.FallbackMode.NOT_FOUND) {
|
|
588
|
-
if (nextConfig.experimental.adapterPath) {
|
|
589
|
-
return await render404();
|
|
590
|
-
}
|
|
591
|
-
throw new next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_23__.NoFallbackError();
|
|
592
|
-
}
|
|
593
|
-
// When cacheComponents is enabled, we can use the fallback
|
|
594
|
-
// response if the request is not a dynamic RSC request because the
|
|
595
|
-
// RSC data when this feature flag is enabled does not contain any
|
|
596
|
-
// param references. Without this feature flag enabled, the RSC data
|
|
597
|
-
// contains param references, and therefore we can't use the fallback.
|
|
598
|
-
if (isRoutePPREnabled && (nextConfig.cacheComponents ? !isDynamicRSCRequest : !isRSCRequest)) {
|
|
599
|
-
const cacheKey = isProduction && typeof (prerenderInfo == null ? void 0 : prerenderInfo.fallback) === 'string' ? prerenderInfo.fallback : normalizedSrcPage;
|
|
600
|
-
const fallbackRouteParams = // If we're in production and we have fallback route params, then we
|
|
601
|
-
// can use the manifest fallback route params.
|
|
602
|
-
isProduction && (prerenderInfo == null ? void 0 : prerenderInfo.fallbackRouteParams) ? (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.createOpaqueFallbackRouteParams)(prerenderInfo.fallbackRouteParams) : // have to manually generate the fallback route params.
|
|
603
|
-
isDebugFallbackShell ? (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.getFallbackRouteParams)(normalizedSrcPage, routeModule) : null;
|
|
604
|
-
// We use the response cache here to handle the revalidation and
|
|
605
|
-
// management of the fallback shell.
|
|
606
|
-
const fallbackResponse = await routeModule.handleResponse({
|
|
607
|
-
cacheKey,
|
|
608
|
-
req,
|
|
609
|
-
nextConfig,
|
|
610
|
-
routeKind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_PAGE,
|
|
611
|
-
isFallback: true,
|
|
612
|
-
prerenderManifest,
|
|
613
|
-
isRoutePPREnabled,
|
|
614
|
-
responseGenerator: async ()=>doRender({
|
|
615
|
-
span,
|
|
616
|
-
// We pass `undefined` as rendering a fallback isn't resumed
|
|
617
|
-
// here.
|
|
618
|
-
postponed: undefined,
|
|
619
|
-
fallbackRouteParams,
|
|
620
|
-
forceStaticRender: false
|
|
621
|
-
}),
|
|
622
|
-
waitUntil: ctx.waitUntil,
|
|
623
|
-
isMinimalMode
|
|
624
|
-
});
|
|
625
|
-
// If the fallback response was set to null, then we should return null.
|
|
626
|
-
if (fallbackResponse === null) return null;
|
|
627
|
-
// Otherwise, if we did get a fallback response, we should return it.
|
|
628
|
-
if (fallbackResponse) {
|
|
629
|
-
// Remove the cache control from the response to prevent it from being
|
|
630
|
-
// used in the surrounding cache.
|
|
631
|
-
delete fallbackResponse.cacheControl;
|
|
632
|
-
return fallbackResponse;
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
}
|
|
636
|
-
// Only requests that aren't revalidating can be resumed. If we have the
|
|
637
|
-
// minimal postponed data, then we should resume the render with it.
|
|
638
|
-
let postponed = !isOnDemandRevalidate && !isRevalidating && minimalPostponed ? minimalPostponed : undefined;
|
|
639
|
-
// If this is a dynamic RSC request, we should use the postponed data from
|
|
640
|
-
// the static render (if available). This ensures that we can utilize the
|
|
641
|
-
// resume data cache (RDC) from the static render to ensure that the data
|
|
642
|
-
// is consistent between the static and dynamic renders.
|
|
643
|
-
if (// Only enable RDC for Navigations if the feature is enabled.
|
|
644
|
-
supportsRDCForNavigations && "nodejs" !== 'edge' && !isMinimalMode && incrementalCache && isDynamicRSCRequest && // We don't typically trigger an on-demand revalidation for dynamic RSC
|
|
645
|
-
// requests, as we're typically revalidating the page in the background
|
|
646
|
-
// instead. However, if the cache entry is stale, we should trigger a
|
|
647
|
-
// background revalidation on dynamic RSC requests. This prevents us
|
|
648
|
-
// from entering an infinite loop of revalidations.
|
|
649
|
-
!forceStaticRender) {
|
|
650
|
-
const incrementalCacheEntry = await incrementalCache.get(resolvedPathname, {
|
|
651
|
-
kind: next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.IncrementalCacheKind.APP_PAGE,
|
|
652
|
-
isRoutePPREnabled: true,
|
|
653
|
-
isFallback: false
|
|
654
|
-
});
|
|
655
|
-
// If the cache entry is found, we should use the postponed data from
|
|
656
|
-
// the cache.
|
|
657
|
-
if (incrementalCacheEntry && incrementalCacheEntry.value && incrementalCacheEntry.value.kind === next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_PAGE) {
|
|
658
|
-
// CRITICAL: we're assigning the postponed data from the cache entry
|
|
659
|
-
// here as we're using the RDC to resume the render.
|
|
660
|
-
postponed = incrementalCacheEntry.value.postponed;
|
|
661
|
-
// If the cache entry is stale, we should trigger a background
|
|
662
|
-
// revalidation so that subsequent requests will get a fresh response.
|
|
663
|
-
if (incrementalCacheEntry && // We want to trigger this flow if the cache entry is stale and if
|
|
664
|
-
// the requested revalidation flow is either foreground or
|
|
665
|
-
// background.
|
|
666
|
-
(incrementalCacheEntry.isStale === -1 || incrementalCacheEntry.isStale === true)) {
|
|
667
|
-
// We want to schedule this on the next tick to ensure that the
|
|
668
|
-
// render is not blocked on it.
|
|
669
|
-
(0,next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_29__.scheduleOnNextTick)(async ()=>{
|
|
670
|
-
const responseCache = routeModule.getResponseCache(req);
|
|
671
|
-
try {
|
|
672
|
-
await responseCache.revalidate(resolvedPathname, incrementalCache, isRoutePPREnabled, false, (c)=>responseGenerator({
|
|
673
|
-
...c,
|
|
674
|
-
// CRITICAL: we need to set this to true as we're
|
|
675
|
-
// revalidating in the background and typically this dynamic
|
|
676
|
-
// RSC request is not treated as static.
|
|
677
|
-
forceStaticRender: true
|
|
678
|
-
}), // CRITICAL: we need to pass null here because passing the
|
|
679
|
-
// previous cache entry here (which is stale) will switch on
|
|
680
|
-
// isOnDemandRevalidate and break the prerendering.
|
|
681
|
-
null, hasResolved, ctx.waitUntil);
|
|
682
|
-
} catch (err) {
|
|
683
|
-
console.error('Error revalidating the page in the background', err);
|
|
684
|
-
}
|
|
685
|
-
});
|
|
686
|
-
}
|
|
687
|
-
}
|
|
688
|
-
}
|
|
689
|
-
// When we're in minimal mode, if we're trying to debug the static shell,
|
|
690
|
-
// we should just return nothing instead of resuming the dynamic render.
|
|
691
|
-
if ((isDebugStaticShell || isDebugDynamicAccesses) && typeof postponed !== 'undefined') {
|
|
692
|
-
return {
|
|
693
|
-
cacheControl: {
|
|
694
|
-
revalidate: 1,
|
|
695
|
-
expire: undefined
|
|
696
|
-
},
|
|
697
|
-
value: {
|
|
698
|
-
kind: next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.PAGES,
|
|
699
|
-
html: next_dist_server_render_result__WEBPACK_IMPORTED_MODULE_19__["default"].EMPTY,
|
|
700
|
-
pageData: {},
|
|
701
|
-
headers: undefined,
|
|
702
|
-
status: undefined
|
|
703
|
-
}
|
|
704
|
-
};
|
|
705
|
-
}
|
|
706
|
-
const fallbackRouteParams = // If we're in production and we have fallback route params, then we
|
|
707
|
-
// can use the manifest fallback route params if we need to render the
|
|
708
|
-
// fallback shell.
|
|
709
|
-
isProduction && (prerenderInfo == null ? void 0 : prerenderInfo.fallbackRouteParams) && (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'renderFallbackShell') ? (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.createOpaqueFallbackRouteParams)(prerenderInfo.fallbackRouteParams) : // manually generate the fallback route params.
|
|
710
|
-
isDebugFallbackShell ? (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.getFallbackRouteParams)(normalizedSrcPage, routeModule) : null;
|
|
711
|
-
// Perform the render.
|
|
712
|
-
return doRender({
|
|
713
|
-
span,
|
|
714
|
-
postponed,
|
|
715
|
-
fallbackRouteParams,
|
|
716
|
-
forceStaticRender
|
|
717
|
-
});
|
|
718
|
-
};
|
|
719
|
-
const handleResponse = async (span)=>{
|
|
720
|
-
var _cacheEntry_value, _cachedData_headers;
|
|
721
|
-
const cacheEntry = await routeModule.handleResponse({
|
|
722
|
-
cacheKey: ssgCacheKey,
|
|
723
|
-
responseGenerator: (c)=>responseGenerator({
|
|
724
|
-
span,
|
|
725
|
-
...c
|
|
726
|
-
}),
|
|
727
|
-
routeKind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_PAGE,
|
|
728
|
-
isOnDemandRevalidate,
|
|
729
|
-
isRoutePPREnabled,
|
|
730
|
-
req,
|
|
731
|
-
nextConfig,
|
|
732
|
-
prerenderManifest,
|
|
733
|
-
waitUntil: ctx.waitUntil,
|
|
734
|
-
isMinimalMode
|
|
735
|
-
});
|
|
736
|
-
if (isDraftMode) {
|
|
737
|
-
res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');
|
|
738
|
-
}
|
|
739
|
-
// In dev, we should not cache pages for any reason.
|
|
740
|
-
if (routeModule.isDev) {
|
|
741
|
-
res.setHeader('Cache-Control', 'no-store, must-revalidate');
|
|
742
|
-
}
|
|
743
|
-
if (!cacheEntry) {
|
|
744
|
-
if (ssgCacheKey) {
|
|
745
|
-
// A cache entry might not be generated if a response is written
|
|
746
|
-
// in `getInitialProps` or `getServerSideProps`, but those shouldn't
|
|
747
|
-
// have a cache key. If we do have a cache key but we don't end up
|
|
748
|
-
// with a cache entry, then either Next.js or the application has a
|
|
749
|
-
// bug that needs fixing.
|
|
750
|
-
throw Object.defineProperty(new Error('invariant: cache entry required but not generated'), "__NEXT_ERROR_CODE", {
|
|
751
|
-
value: "E62",
|
|
752
|
-
enumerable: false,
|
|
753
|
-
configurable: true
|
|
754
|
-
});
|
|
755
|
-
}
|
|
756
|
-
return null;
|
|
757
|
-
}
|
|
758
|
-
if (((_cacheEntry_value = cacheEntry.value) == null ? void 0 : _cacheEntry_value.kind) !== next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_PAGE) {
|
|
759
|
-
var _cacheEntry_value1;
|
|
760
|
-
throw Object.defineProperty(new Error(`Invariant app-page handler received invalid cache entry ${(_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`), "__NEXT_ERROR_CODE", {
|
|
761
|
-
value: "E707",
|
|
762
|
-
enumerable: false,
|
|
763
|
-
configurable: true
|
|
764
|
-
});
|
|
765
|
-
}
|
|
766
|
-
const didPostpone = typeof cacheEntry.value.postponed === 'string';
|
|
767
|
-
if (isSSG && // We don't want to send a cache header for requests that contain dynamic
|
|
768
|
-
// data. If this is a Dynamic RSC request or wasn't a Prefetch RSC
|
|
769
|
-
// request, then we should set the cache header.
|
|
770
|
-
!isDynamicRSCRequest && (!didPostpone || isPrefetchRSCRequest)) {
|
|
771
|
-
if (!isMinimalMode) {
|
|
772
|
-
// set x-nextjs-cache header to match the header
|
|
773
|
-
// we set for the image-optimizer
|
|
774
|
-
res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');
|
|
775
|
-
}
|
|
776
|
-
// Set a header used by the client router to signal the response is static
|
|
777
|
-
// and should respect the `static` cache staleTime value.
|
|
778
|
-
res.setHeader(next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.NEXT_IS_PRERENDER_HEADER, '1');
|
|
779
|
-
}
|
|
780
|
-
const { value: cachedData } = cacheEntry;
|
|
781
|
-
// Coerce the cache control parameter from the render.
|
|
782
|
-
let cacheControl;
|
|
783
|
-
// If this is a resume request in minimal mode it is streamed with dynamic
|
|
784
|
-
// content and should not be cached.
|
|
785
|
-
if (minimalPostponed) {
|
|
786
|
-
cacheControl = {
|
|
787
|
-
revalidate: 0,
|
|
788
|
-
expire: undefined
|
|
789
|
-
};
|
|
790
|
-
} else if (isDynamicRSCRequest) {
|
|
791
|
-
cacheControl = {
|
|
792
|
-
revalidate: 0,
|
|
793
|
-
expire: undefined
|
|
794
|
-
};
|
|
795
|
-
} else if (!routeModule.isDev) {
|
|
796
|
-
// If this is a preview mode request, we shouldn't cache it
|
|
797
|
-
if (isDraftMode) {
|
|
798
|
-
cacheControl = {
|
|
799
|
-
revalidate: 0,
|
|
800
|
-
expire: undefined
|
|
801
|
-
};
|
|
802
|
-
} else if (!isSSG) {
|
|
803
|
-
if (!res.getHeader('Cache-Control')) {
|
|
804
|
-
cacheControl = {
|
|
805
|
-
revalidate: 0,
|
|
806
|
-
expire: undefined
|
|
807
|
-
};
|
|
808
|
-
}
|
|
809
|
-
} else if (cacheEntry.cacheControl) {
|
|
810
|
-
// If the cache entry has a cache control with a revalidate value that's
|
|
811
|
-
// a number, use it.
|
|
812
|
-
if (typeof cacheEntry.cacheControl.revalidate === 'number') {
|
|
813
|
-
var _cacheEntry_cacheControl;
|
|
814
|
-
if (cacheEntry.cacheControl.revalidate < 1) {
|
|
815
|
-
throw Object.defineProperty(new Error(`Invalid revalidate configuration provided: ${cacheEntry.cacheControl.revalidate} < 1`), "__NEXT_ERROR_CODE", {
|
|
816
|
-
value: "E22",
|
|
817
|
-
enumerable: false,
|
|
818
|
-
configurable: true
|
|
819
|
-
});
|
|
820
|
-
}
|
|
821
|
-
cacheControl = {
|
|
822
|
-
revalidate: cacheEntry.cacheControl.revalidate,
|
|
823
|
-
expire: ((_cacheEntry_cacheControl = cacheEntry.cacheControl) == null ? void 0 : _cacheEntry_cacheControl.expire) ?? nextConfig.expireTime
|
|
824
|
-
};
|
|
825
|
-
} else {
|
|
826
|
-
cacheControl = {
|
|
827
|
-
revalidate: next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.CACHE_ONE_YEAR,
|
|
828
|
-
expire: undefined
|
|
829
|
-
};
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
|
-
}
|
|
833
|
-
cacheEntry.cacheControl = cacheControl;
|
|
834
|
-
if (typeof segmentPrefetchHeader === 'string' && (cachedData == null ? void 0 : cachedData.kind) === next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_PAGE && cachedData.segmentData) {
|
|
835
|
-
var _cachedData_headers1;
|
|
836
|
-
// This is a prefetch request issued by the client Segment Cache. These
|
|
837
|
-
// should never reach the application layer (lambda). We should either
|
|
838
|
-
// respond from the cache (HIT) or respond with 204 No Content (MISS).
|
|
839
|
-
// Set a header to indicate that PPR is enabled for this route. This
|
|
840
|
-
// lets the client distinguish between a regular cache miss and a cache
|
|
841
|
-
// miss due to PPR being disabled. In other contexts this header is used
|
|
842
|
-
// to indicate that the response contains dynamic data, but here we're
|
|
843
|
-
// only using it to indicate that the feature is enabled — the segment
|
|
844
|
-
// response itself contains whether the data is dynamic.
|
|
845
|
-
res.setHeader(next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.NEXT_DID_POSTPONE_HEADER, '2');
|
|
846
|
-
// Add the cache tags header to the response if it exists and we're in
|
|
847
|
-
// minimal mode while rendering a static page.
|
|
848
|
-
const tags = (_cachedData_headers1 = cachedData.headers) == null ? void 0 : _cachedData_headers1[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_CACHE_TAGS_HEADER];
|
|
849
|
-
if (isMinimalMode && isSSG && tags && typeof tags === 'string') {
|
|
850
|
-
res.setHeader(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_CACHE_TAGS_HEADER, tags);
|
|
851
|
-
}
|
|
852
|
-
const matchedSegment = cachedData.segmentData.get(segmentPrefetchHeader);
|
|
853
|
-
if (matchedSegment !== undefined) {
|
|
854
|
-
// Cache hit
|
|
855
|
-
return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_22__.sendRenderResult)({
|
|
856
|
-
req,
|
|
857
|
-
res,
|
|
858
|
-
generateEtags: nextConfig.generateEtags,
|
|
859
|
-
poweredByHeader: nextConfig.poweredByHeader,
|
|
860
|
-
result: next_dist_server_render_result__WEBPACK_IMPORTED_MODULE_19__["default"].fromStatic(matchedSegment, next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.RSC_CONTENT_TYPE_HEADER),
|
|
861
|
-
cacheControl: cacheEntry.cacheControl
|
|
862
|
-
});
|
|
863
|
-
}
|
|
864
|
-
// Cache miss. Either a cache entry for this route has not been generated
|
|
865
|
-
// (which technically should not be possible when PPR is enabled, because
|
|
866
|
-
// at a minimum there should always be a fallback entry) or there's no
|
|
867
|
-
// match for the requested segment. Respond with a 204 No Content. We
|
|
868
|
-
// don't bother to respond with 404, because these requests are only
|
|
869
|
-
// issued as part of a prefetch.
|
|
870
|
-
res.statusCode = 204;
|
|
871
|
-
return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_22__.sendRenderResult)({
|
|
872
|
-
req,
|
|
873
|
-
res,
|
|
874
|
-
generateEtags: nextConfig.generateEtags,
|
|
875
|
-
poweredByHeader: nextConfig.poweredByHeader,
|
|
876
|
-
result: next_dist_server_render_result__WEBPACK_IMPORTED_MODULE_19__["default"].EMPTY,
|
|
877
|
-
cacheControl: cacheEntry.cacheControl
|
|
878
|
-
});
|
|
879
|
-
}
|
|
880
|
-
// If there's a callback for `onCacheEntry`, call it with the cache entry
|
|
881
|
-
// and the revalidate options. If we support RDC for Navigations, we
|
|
882
|
-
// prefer the `onCacheEntryV2` callback. Once RDC for Navigations is the
|
|
883
|
-
// default, we can remove the fallback to `onCacheEntry` as
|
|
884
|
-
// `onCacheEntryV2` is now fully supported.
|
|
885
|
-
const onCacheEntry = supportsRDCForNavigations ? (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'onCacheEntryV2') ?? (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'onCacheEntry') : (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'onCacheEntry');
|
|
886
|
-
if (onCacheEntry) {
|
|
887
|
-
const finished = await onCacheEntry(cacheEntry, {
|
|
888
|
-
url: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'initURL') ?? req.url
|
|
889
|
-
});
|
|
890
|
-
if (finished) return null;
|
|
891
|
-
}
|
|
892
|
-
if (cachedData.headers) {
|
|
893
|
-
const headers = {
|
|
894
|
-
...cachedData.headers
|
|
895
|
-
};
|
|
896
|
-
if (!isMinimalMode || !isSSG) {
|
|
897
|
-
delete headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_CACHE_TAGS_HEADER];
|
|
898
|
-
}
|
|
899
|
-
for (let [key, value] of Object.entries(headers)){
|
|
900
|
-
if (typeof value === 'undefined') continue;
|
|
901
|
-
if (Array.isArray(value)) {
|
|
902
|
-
for (const v of value){
|
|
903
|
-
res.appendHeader(key, v);
|
|
904
|
-
}
|
|
905
|
-
} else if (typeof value === 'number') {
|
|
906
|
-
value = value.toString();
|
|
907
|
-
res.appendHeader(key, value);
|
|
908
|
-
} else {
|
|
909
|
-
res.appendHeader(key, value);
|
|
910
|
-
}
|
|
911
|
-
}
|
|
912
|
-
}
|
|
913
|
-
// Add the cache tags header to the response if it exists and we're in
|
|
914
|
-
// minimal mode while rendering a static page.
|
|
915
|
-
const tags = (_cachedData_headers = cachedData.headers) == null ? void 0 : _cachedData_headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_CACHE_TAGS_HEADER];
|
|
916
|
-
if (isMinimalMode && isSSG && tags && typeof tags === 'string') {
|
|
917
|
-
res.setHeader(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_CACHE_TAGS_HEADER, tags);
|
|
918
|
-
}
|
|
919
|
-
// If the request is a data request, then we shouldn't set the status code
|
|
920
|
-
// from the response because it should always be 200. This should be gated
|
|
921
|
-
// behind the experimental PPR flag.
|
|
922
|
-
if (cachedData.status && (!isRSCRequest || !isRoutePPREnabled)) {
|
|
923
|
-
res.statusCode = cachedData.status;
|
|
924
|
-
}
|
|
925
|
-
// Redirect information is encoded in RSC payload, so we don't need to use redirect status codes
|
|
926
|
-
if (!isMinimalMode && cachedData.status && next_dist_client_components_redirect_status_code__WEBPACK_IMPORTED_MODULE_27__.RedirectStatusCode[cachedData.status] && isRSCRequest) {
|
|
927
|
-
res.statusCode = 200;
|
|
928
|
-
}
|
|
929
|
-
// Mark that the request did postpone.
|
|
930
|
-
if (didPostpone && !isDynamicRSCRequest) {
|
|
931
|
-
res.setHeader(next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.NEXT_DID_POSTPONE_HEADER, '1');
|
|
932
|
-
}
|
|
933
|
-
// we don't go through this block when preview mode is true
|
|
934
|
-
// as preview mode is a dynamic request (bypasses cache) and doesn't
|
|
935
|
-
// generate both HTML and payloads in the same request so continue to just
|
|
936
|
-
// return the generated payload
|
|
937
|
-
if (isRSCRequest && !isDraftMode) {
|
|
938
|
-
// If this is a dynamic RSC request, then stream the response.
|
|
939
|
-
if (typeof cachedData.rscData === 'undefined') {
|
|
940
|
-
// If the response is not an RSC response, then we can't serve it.
|
|
941
|
-
if (cachedData.html.contentType !== next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.RSC_CONTENT_TYPE_HEADER) {
|
|
942
|
-
if (nextConfig.cacheComponents) {
|
|
943
|
-
res.statusCode = 404;
|
|
944
|
-
return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_22__.sendRenderResult)({
|
|
945
|
-
req,
|
|
946
|
-
res,
|
|
947
|
-
generateEtags: nextConfig.generateEtags,
|
|
948
|
-
poweredByHeader: nextConfig.poweredByHeader,
|
|
949
|
-
result: next_dist_server_render_result__WEBPACK_IMPORTED_MODULE_19__["default"].EMPTY,
|
|
950
|
-
cacheControl: cacheEntry.cacheControl
|
|
951
|
-
});
|
|
952
|
-
} else {
|
|
953
|
-
// Otherwise this case is not expected.
|
|
954
|
-
throw Object.defineProperty(new next_dist_shared_lib_invariant_error__WEBPACK_IMPORTED_MODULE_28__.InvariantError(`Expected RSC response, got ${cachedData.html.contentType}`), "__NEXT_ERROR_CODE", {
|
|
955
|
-
value: "E789",
|
|
956
|
-
enumerable: false,
|
|
957
|
-
configurable: true
|
|
958
|
-
});
|
|
959
|
-
}
|
|
960
|
-
}
|
|
961
|
-
return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_22__.sendRenderResult)({
|
|
962
|
-
req,
|
|
963
|
-
res,
|
|
964
|
-
generateEtags: nextConfig.generateEtags,
|
|
965
|
-
poweredByHeader: nextConfig.poweredByHeader,
|
|
966
|
-
result: cachedData.html,
|
|
967
|
-
cacheControl: cacheEntry.cacheControl
|
|
968
|
-
});
|
|
969
|
-
}
|
|
970
|
-
// As this isn't a prefetch request, we should serve the static flight
|
|
971
|
-
// data.
|
|
972
|
-
return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_22__.sendRenderResult)({
|
|
973
|
-
req,
|
|
974
|
-
res,
|
|
975
|
-
generateEtags: nextConfig.generateEtags,
|
|
976
|
-
poweredByHeader: nextConfig.poweredByHeader,
|
|
977
|
-
result: next_dist_server_render_result__WEBPACK_IMPORTED_MODULE_19__["default"].fromStatic(cachedData.rscData, next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.RSC_CONTENT_TYPE_HEADER),
|
|
978
|
-
cacheControl: cacheEntry.cacheControl
|
|
979
|
-
});
|
|
980
|
-
}
|
|
981
|
-
// This is a request for HTML data.
|
|
982
|
-
const body = cachedData.html;
|
|
983
|
-
// If there's no postponed state, we should just serve the HTML. This
|
|
984
|
-
// should also be the case for a resume request because it's completed
|
|
985
|
-
// as a server render (rather than a static render).
|
|
986
|
-
if (!didPostpone || isMinimalMode || isRSCRequest) {
|
|
987
|
-
// If we're in test mode, we should add a sentinel chunk to the response
|
|
988
|
-
// that's between the static and dynamic parts so we can compare the
|
|
989
|
-
// chunks and add assertions.
|
|
990
|
-
if (false) {}
|
|
991
|
-
return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_22__.sendRenderResult)({
|
|
992
|
-
req,
|
|
993
|
-
res,
|
|
994
|
-
generateEtags: nextConfig.generateEtags,
|
|
995
|
-
poweredByHeader: nextConfig.poweredByHeader,
|
|
996
|
-
result: body,
|
|
997
|
-
cacheControl: cacheEntry.cacheControl
|
|
998
|
-
});
|
|
999
|
-
}
|
|
1000
|
-
// If we're debugging the static shell or the dynamic API accesses, we
|
|
1001
|
-
// should just serve the HTML without resuming the render. The returned
|
|
1002
|
-
// HTML will be the static shell so all the Dynamic API's will be used
|
|
1003
|
-
// during static generation.
|
|
1004
|
-
if (isDebugStaticShell || isDebugDynamicAccesses) {
|
|
1005
|
-
// Since we're not resuming the render, we need to at least add the
|
|
1006
|
-
// closing body and html tags to create valid HTML.
|
|
1007
|
-
body.push(new ReadableStream({
|
|
1008
|
-
start (controller) {
|
|
1009
|
-
controller.enqueue(next_dist_server_stream_utils_encoded_tags__WEBPACK_IMPORTED_MODULE_21__.ENCODED_TAGS.CLOSED.BODY_AND_HTML);
|
|
1010
|
-
controller.close();
|
|
1011
|
-
}
|
|
1012
|
-
}));
|
|
1013
|
-
return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_22__.sendRenderResult)({
|
|
1014
|
-
req,
|
|
1015
|
-
res,
|
|
1016
|
-
generateEtags: nextConfig.generateEtags,
|
|
1017
|
-
poweredByHeader: nextConfig.poweredByHeader,
|
|
1018
|
-
result: body,
|
|
1019
|
-
cacheControl: {
|
|
1020
|
-
revalidate: 0,
|
|
1021
|
-
expire: undefined
|
|
1022
|
-
}
|
|
1023
|
-
});
|
|
1024
|
-
}
|
|
1025
|
-
// If we're in test mode, we should add a sentinel chunk to the response
|
|
1026
|
-
// that's between the static and dynamic parts so we can compare the
|
|
1027
|
-
// chunks and add assertions.
|
|
1028
|
-
if (false) {}
|
|
1029
|
-
// This request has postponed, so let's create a new transformer that the
|
|
1030
|
-
// dynamic data can pipe to that will attach the dynamic data to the end
|
|
1031
|
-
// of the response.
|
|
1032
|
-
const transformer = new TransformStream();
|
|
1033
|
-
body.push(transformer.readable);
|
|
1034
|
-
// Perform the render again, but this time, provide the postponed state.
|
|
1035
|
-
// We don't await because we want the result to start streaming now, and
|
|
1036
|
-
// we've already chained the transformer's readable to the render result.
|
|
1037
|
-
doRender({
|
|
1038
|
-
span,
|
|
1039
|
-
postponed: cachedData.postponed,
|
|
1040
|
-
// This is a resume render, not a fallback render, so we don't need to
|
|
1041
|
-
// set this.
|
|
1042
|
-
fallbackRouteParams: null,
|
|
1043
|
-
forceStaticRender: false
|
|
1044
|
-
}).then(async (result)=>{
|
|
1045
|
-
var _result_value;
|
|
1046
|
-
if (!result) {
|
|
1047
|
-
throw Object.defineProperty(new Error('Invariant: expected a result to be returned'), "__NEXT_ERROR_CODE", {
|
|
1048
|
-
value: "E463",
|
|
1049
|
-
enumerable: false,
|
|
1050
|
-
configurable: true
|
|
1051
|
-
});
|
|
1052
|
-
}
|
|
1053
|
-
if (((_result_value = result.value) == null ? void 0 : _result_value.kind) !== next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_PAGE) {
|
|
1054
|
-
var _result_value1;
|
|
1055
|
-
throw Object.defineProperty(new Error(`Invariant: expected a page response, got ${(_result_value1 = result.value) == null ? void 0 : _result_value1.kind}`), "__NEXT_ERROR_CODE", {
|
|
1056
|
-
value: "E305",
|
|
1057
|
-
enumerable: false,
|
|
1058
|
-
configurable: true
|
|
1059
|
-
});
|
|
1060
|
-
}
|
|
1061
|
-
// Pipe the resume result to the transformer.
|
|
1062
|
-
await result.value.html.pipeTo(transformer.writable);
|
|
1063
|
-
}).catch((err)=>{
|
|
1064
|
-
// An error occurred during piping or preparing the render, abort
|
|
1065
|
-
// the transformers writer so we can terminate the stream.
|
|
1066
|
-
transformer.writable.abort(err).catch((e)=>{
|
|
1067
|
-
console.error("couldn't abort transformer", e);
|
|
1068
|
-
});
|
|
1069
|
-
});
|
|
1070
|
-
return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_22__.sendRenderResult)({
|
|
1071
|
-
req,
|
|
1072
|
-
res,
|
|
1073
|
-
generateEtags: nextConfig.generateEtags,
|
|
1074
|
-
poweredByHeader: nextConfig.poweredByHeader,
|
|
1075
|
-
result: body,
|
|
1076
|
-
// We don't want to cache the response if it has postponed data because
|
|
1077
|
-
// the response being sent to the client it's dynamic parts are streamed
|
|
1078
|
-
// to the client on the same request.
|
|
1079
|
-
cacheControl: {
|
|
1080
|
-
revalidate: 0,
|
|
1081
|
-
expire: undefined
|
|
1082
|
-
}
|
|
1083
|
-
});
|
|
1084
|
-
};
|
|
1085
|
-
// TODO: activeSpan code path is for when wrapped by
|
|
1086
|
-
// next-server can be removed when this is no longer used
|
|
1087
|
-
if (activeSpan) {
|
|
1088
|
-
await handleResponse(activeSpan);
|
|
1089
|
-
} else {
|
|
1090
|
-
return await tracer.withPropagatedContext(req.headers, ()=>tracer.trace(next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_5__.BaseServerSpan.handleRequest, {
|
|
1091
|
-
spanName: `${method} ${srcPage}`,
|
|
1092
|
-
kind: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_3__.SpanKind.SERVER,
|
|
1093
|
-
attributes: {
|
|
1094
|
-
'http.method': method,
|
|
1095
|
-
'http.target': req.url
|
|
1096
|
-
}
|
|
1097
|
-
}, handleResponse));
|
|
1098
|
-
}
|
|
1099
|
-
} catch (err) {
|
|
1100
|
-
if (!(err instanceof next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_23__.NoFallbackError)) {
|
|
1101
|
-
const silenceLog = false;
|
|
1102
|
-
await routeModule.onRequestError(req, err, {
|
|
1103
|
-
routerKind: 'App Router',
|
|
1104
|
-
routePath: srcPage,
|
|
1105
|
-
routeType: 'render',
|
|
1106
|
-
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_2__/* .getRevalidateReason */ .c)({
|
|
1107
|
-
isStaticGeneration: isSSG,
|
|
1108
|
-
isOnDemandRevalidate
|
|
1109
|
-
})
|
|
1110
|
-
}, silenceLog, routerServerContext);
|
|
1111
|
-
}
|
|
1112
|
-
// rethrow so that we can handle serving error page
|
|
1113
|
-
throw err;
|
|
1114
|
-
}
|
|
243
|
+
];
|
|
244
|
+
return /*#__PURE__*/ (0,react_jsx_runtime.jsx)(dist/* SimpleNavigation */.TbX, {
|
|
245
|
+
title: t('title'),
|
|
246
|
+
items: navigation,
|
|
247
|
+
currentPath: pathname,
|
|
248
|
+
LinkComponent: routing/* Link */.N_,
|
|
249
|
+
...navigationMenu && {
|
|
250
|
+
dropdownContent: navigationMenu
|
|
251
|
+
},
|
|
252
|
+
isCollapsed: isCollapsed,
|
|
253
|
+
icons: {
|
|
254
|
+
chevronLeft: ChevronLeftIcon/* default */.A,
|
|
255
|
+
bars: Bars3Icon/* default */.A
|
|
256
|
+
},
|
|
257
|
+
collapseSidebarLabel: tSidebar('collapseSidebar'),
|
|
258
|
+
expandSidebarLabel: tSidebar('expandSidebar')
|
|
259
|
+
});
|
|
1115
260
|
}
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
261
|
+
|
|
262
|
+
// EXTERNAL MODULE: __barrel_optimize__?names=ApiClientProvider,AuthTokenProvider,Footer,LeftSidebar!=!../../packages/react-ui/dist/index.mjs
|
|
263
|
+
var react_ui_dist = __webpack_require__(25888);
|
|
264
|
+
// EXTERNAL MODULE: ./src/components/CookiePreferences.tsx
|
|
265
|
+
var CookiePreferences = __webpack_require__(80386);
|
|
266
|
+
// EXTERNAL MODULE: ./src/contexts/KeyboardShortcutsContext.tsx + 3 modules
|
|
267
|
+
var KeyboardShortcutsContext = __webpack_require__(40953);
|
|
268
|
+
// EXTERNAL MODULE: ./src/lib/routing.ts
|
|
269
|
+
var lib_routing = __webpack_require__(46391);
|
|
270
|
+
// EXTERNAL MODULE: ./src/hooks/useAuth.ts + 1 modules
|
|
271
|
+
var useAuth = __webpack_require__(31039);
|
|
272
|
+
;// ./src/app/[locale]/admin/layout.tsx
|
|
273
|
+
/* __next_internal_client_entry_do_not_use__ default auto */
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
// Note: Authentication is handled by middleware.ts for all admin routes
|
|
284
|
+
// This ensures centralized security and returns 404 for unauthorized users
|
|
285
|
+
function AdminLayout({ children }) {
|
|
286
|
+
const t = (0,react_client/* useTranslations */.c)('Footer');
|
|
287
|
+
const tNav = (0,react_client/* useTranslations */.c)('Navigation');
|
|
288
|
+
const tHome = (0,react_client/* useTranslations */.c)('Home');
|
|
289
|
+
const keyboardContext = (0,react.useContext)(KeyboardShortcutsContext/* KeyboardShortcutsContext */.GZ);
|
|
290
|
+
const { isAuthenticated, isAdmin, isModerator } = (0,useAuth/* useAuth */.As)();
|
|
291
|
+
const { data: session } = (0,next_auth_react.useSession)();
|
|
292
|
+
// Extract auth token from session
|
|
293
|
+
const authToken = session?.backendToken || null;
|
|
294
|
+
// Middleware has already verified admin access
|
|
295
|
+
return /*#__PURE__*/ (0,react_jsx_runtime.jsx)(react_ui_dist/* AuthTokenProvider */.ffs, {
|
|
296
|
+
token: authToken,
|
|
297
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)(react_ui_dist/* ApiClientProvider */.pqI, {
|
|
298
|
+
baseUrl: "",
|
|
299
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
300
|
+
className: "min-h-screen bg-gray-50 dark:bg-gray-900 flex flex-col",
|
|
301
|
+
children: [
|
|
302
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
|
|
303
|
+
className: "flex flex-1",
|
|
304
|
+
children: [
|
|
305
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(react_ui_dist/* LeftSidebar */.Ef3, {
|
|
306
|
+
Link: lib_routing/* Link */.N,
|
|
307
|
+
routes: lib_routing/* routes */.J,
|
|
308
|
+
t: tNav,
|
|
309
|
+
tHome: tHome,
|
|
310
|
+
brandingLink: "/",
|
|
311
|
+
collapsible: true,
|
|
312
|
+
storageKey: "admin-sidebar-collapsed",
|
|
313
|
+
isAuthenticated: isAuthenticated,
|
|
314
|
+
isAdmin: isAdmin,
|
|
315
|
+
isModerator: isModerator,
|
|
316
|
+
children: (isCollapsed, toggleCollapsed, navigationMenu)=>/*#__PURE__*/ (0,react_jsx_runtime.jsx)(AdminNavigation, {
|
|
317
|
+
isCollapsed: isCollapsed,
|
|
318
|
+
toggleCollapsed: toggleCollapsed,
|
|
319
|
+
navigationMenu: navigationMenu
|
|
320
|
+
})
|
|
321
|
+
}),
|
|
322
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)("main", {
|
|
323
|
+
className: "flex-1 p-6 flex flex-col",
|
|
324
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
|
|
325
|
+
className: "max-w-7xl mx-auto flex-1 flex flex-col w-full",
|
|
326
|
+
children: children
|
|
327
|
+
})
|
|
328
|
+
})
|
|
329
|
+
]
|
|
330
|
+
}),
|
|
331
|
+
/*#__PURE__*/ (0,react_jsx_runtime.jsx)(react_ui_dist/* Footer */.wi6, {
|
|
332
|
+
Link: lib_routing/* Link */.N,
|
|
333
|
+
routes: lib_routing/* routes */.J,
|
|
334
|
+
t: t,
|
|
335
|
+
CookiePreferences: CookiePreferences/* CookiePreferences */.f,
|
|
336
|
+
...keyboardContext?.openKeyboardHelp && {
|
|
337
|
+
onOpenKeyboardHelp: keyboardContext.openKeyboardHelp
|
|
338
|
+
}
|
|
339
|
+
})
|
|
340
|
+
]
|
|
341
|
+
})
|
|
342
|
+
})
|
|
1127
343
|
});
|
|
1128
344
|
}
|
|
1129
345
|
|
|
1130
|
-
//# sourceMappingURL=app-page.js.map
|
|
1131
|
-
|
|
1132
346
|
|
|
1133
347
|
/***/ }),
|
|
1134
348
|
|
|
1135
|
-
/***/
|
|
1136
|
-
/***/ ((
|
|
349
|
+
/***/ 31039:
|
|
350
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1137
351
|
|
|
1138
352
|
"use strict";
|
|
1139
|
-
module.exports = require("next/dist/compiled/next-server/app-page.runtime.prod.js");
|
|
1140
|
-
|
|
1141
|
-
/***/ }),
|
|
1142
|
-
|
|
1143
|
-
/***/ 11105:
|
|
1144
|
-
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
1145
353
|
|
|
1146
|
-
|
|
354
|
+
// EXPORTS
|
|
355
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
356
|
+
As: () => (/* binding */ useAuth)
|
|
357
|
+
});
|
|
1147
358
|
|
|
359
|
+
// UNUSED EXPORTS: usePermissions, useUserPreferences
|
|
1148
360
|
|
|
1149
|
-
|
|
361
|
+
// EXTERNAL MODULE: ../../node_modules/next-auth/react/index.js
|
|
362
|
+
var react = __webpack_require__(62341);
|
|
363
|
+
// EXTERNAL MODULE: ../../node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react.js
|
|
364
|
+
var ssr_react = __webpack_require__(71277);
|
|
365
|
+
// EXTERNAL MODULE: ../../packages/api-client/dist/index.js
|
|
366
|
+
var dist = __webpack_require__(88887);
|
|
367
|
+
;// __barrel_optimize__?names=JWTTokenSchema,validateData!=!../../packages/api-client/dist/index.js
|
|
1150
368
|
|
|
1151
|
-
/***/ 19121:
|
|
1152
|
-
/***/ ((module) => {
|
|
1153
369
|
|
|
1154
|
-
|
|
1155
|
-
|
|
370
|
+
;// ./src/hooks/useAuth.ts
|
|
371
|
+
/* __next_internal_client_entry_do_not_use__ useAuth,useUserPreferences,usePermissions auto */
|
|
1156
372
|
|
|
1157
|
-
/***/ }),
|
|
1158
373
|
|
|
1159
|
-
|
|
1160
|
-
|
|
374
|
+
/**
|
|
375
|
+
* Enhanced authentication hook with validation and user information
|
|
376
|
+
*/ function useAuth() {
|
|
377
|
+
const { data: session, status } = (0,react.useSession)();
|
|
378
|
+
const authInfo = (0,ssr_react.useMemo)(()=>{
|
|
379
|
+
const isLoading = status === 'loading';
|
|
380
|
+
const isAuthenticated = !!session?.user;
|
|
381
|
+
// Validate backend token if present
|
|
382
|
+
const hasValidBackendToken = session?.backendToken ? (0,dist/* validateData */.lv)(dist/* JWTTokenSchema */.k3, session.backendToken).success : false;
|
|
383
|
+
return {
|
|
384
|
+
// Session data
|
|
385
|
+
session,
|
|
386
|
+
user: session?.user,
|
|
387
|
+
backendUser: session?.backendUser,
|
|
388
|
+
// Status flags
|
|
389
|
+
isLoading,
|
|
390
|
+
isAuthenticated,
|
|
391
|
+
hasValidBackendToken,
|
|
392
|
+
// Computed properties
|
|
393
|
+
userDomain: session?.backendUser?.domain || session?.user?.email?.split('@')[1],
|
|
394
|
+
displayName: session?.user?.name || session?.user?.email?.split('@')[0] || 'User',
|
|
395
|
+
avatarUrl: session?.user?.image,
|
|
396
|
+
isAdmin: session?.backendUser?.isAdmin || false,
|
|
397
|
+
isModerator: session?.backendUser?.isModerator || false,
|
|
398
|
+
// Combined auth status
|
|
399
|
+
isFullyAuthenticated: isAuthenticated && hasValidBackendToken
|
|
400
|
+
};
|
|
401
|
+
}, [
|
|
402
|
+
session,
|
|
403
|
+
status
|
|
404
|
+
]);
|
|
405
|
+
return authInfo;
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* Hook for getting user preferences and settings
|
|
409
|
+
*/ function useUserPreferences() {
|
|
410
|
+
const { session } = useAuth();
|
|
411
|
+
return useMemo(()=>{
|
|
412
|
+
// In the future, this could fetch user preferences from backend
|
|
413
|
+
// For now, return defaults
|
|
414
|
+
return {
|
|
415
|
+
theme: 'system',
|
|
416
|
+
language: 'en',
|
|
417
|
+
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
418
|
+
emailNotifications: true
|
|
419
|
+
};
|
|
420
|
+
}, [
|
|
421
|
+
session
|
|
422
|
+
]);
|
|
423
|
+
}
|
|
424
|
+
/**
|
|
425
|
+
* Hook for checking user permissions (future expansion)
|
|
426
|
+
*/ function usePermissions() {
|
|
427
|
+
const { backendUser, isFullyAuthenticated } = useAuth();
|
|
428
|
+
return useMemo(()=>{
|
|
429
|
+
if (!isFullyAuthenticated || !backendUser) {
|
|
430
|
+
return {
|
|
431
|
+
canRead: false,
|
|
432
|
+
canWrite: false,
|
|
433
|
+
canAdmin: false,
|
|
434
|
+
canManageUsers: false
|
|
435
|
+
};
|
|
436
|
+
}
|
|
437
|
+
// Basic permissions - in the future this would come from backend
|
|
438
|
+
return {
|
|
439
|
+
canRead: true,
|
|
440
|
+
canWrite: true,
|
|
441
|
+
canAdmin: false,
|
|
442
|
+
canManageUsers: false
|
|
443
|
+
};
|
|
444
|
+
}, [
|
|
445
|
+
backendUser,
|
|
446
|
+
isFullyAuthenticated
|
|
447
|
+
]);
|
|
448
|
+
}
|
|
1161
449
|
|
|
1162
|
-
"use strict";
|
|
1163
|
-
module.exports = require("process");
|
|
1164
450
|
|
|
1165
451
|
/***/ }),
|
|
1166
452
|
|
|
1167
|
-
/***/
|
|
1168
|
-
/***/ ((
|
|
453
|
+
/***/ 32037:
|
|
454
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1169
455
|
|
|
1170
456
|
"use strict";
|
|
1171
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1172
457
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1173
|
-
/* harmony export */
|
|
458
|
+
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1174
459
|
/* harmony export */ });
|
|
1175
|
-
/* harmony import */ var
|
|
1176
|
-
/* harmony import */ var react_server_dom_webpack_server__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_server_dom_webpack_server__WEBPACK_IMPORTED_MODULE_0__);
|
|
1177
|
-
// This file is generated by the Webpack next-flight-loader.
|
|
460
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71277);
|
|
1178
461
|
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
"/
|
|
1182
|
-
"
|
|
1183
|
-
|
|
462
|
+
function ArrowsRightLeftIcon({ title, titleId, ...props }, svgRef) {
|
|
463
|
+
return /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg", Object.assign({
|
|
464
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
465
|
+
fill: "none",
|
|
466
|
+
viewBox: "0 0 24 24",
|
|
467
|
+
strokeWidth: 1.5,
|
|
468
|
+
stroke: "currentColor",
|
|
469
|
+
"aria-hidden": "true",
|
|
470
|
+
"data-slot": "icon",
|
|
471
|
+
ref: svgRef,
|
|
472
|
+
"aria-labelledby": titleId
|
|
473
|
+
}, props), title ? /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement("title", {
|
|
474
|
+
id: titleId
|
|
475
|
+
}, title) : null, /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
|
|
476
|
+
strokeLinecap: "round",
|
|
477
|
+
strokeLinejoin: "round",
|
|
478
|
+
d: "M7.5 21 3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5"
|
|
479
|
+
}));
|
|
480
|
+
}
|
|
481
|
+
const ForwardRef = /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(ArrowsRightLeftIcon);
|
|
482
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ForwardRef);
|
|
1184
483
|
|
|
1185
484
|
|
|
1186
485
|
/***/ }),
|
|
1187
486
|
|
|
1188
|
-
/***/
|
|
1189
|
-
/***/ ((
|
|
487
|
+
/***/ 33873:
|
|
488
|
+
/***/ ((module) => {
|
|
1190
489
|
|
|
1191
490
|
"use strict";
|
|
1192
|
-
|
|
1193
|
-
/* harmony export */ C$z: () => (/* reexport safe */ _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__.useEventSubscriptions),
|
|
1194
|
-
/* harmony export */ TbX: () => (/* reexport safe */ _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__.SimpleNavigation)
|
|
1195
|
-
/* harmony export */ });
|
|
1196
|
-
/* harmony import */ var _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(76552);
|
|
1197
|
-
|
|
1198
|
-
|
|
491
|
+
module.exports = require("path");
|
|
1199
492
|
|
|
1200
493
|
/***/ }),
|
|
1201
494
|
|
|
1202
|
-
/***/
|
|
495
|
+
/***/ 35299:
|
|
1203
496
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1204
497
|
|
|
1205
498
|
"use strict";
|
|
499
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1206
500
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1207
|
-
/* harmony export */
|
|
1208
|
-
/* harmony export */
|
|
1209
|
-
/* harmony export */
|
|
1210
|
-
/* harmony export */ wi6: () => (/* reexport safe */ _home_runner_work_semiont_semiont_packages_react_ui_dist_index_mjs__WEBPACK_IMPORTED_MODULE_0__.Footer)
|
|
501
|
+
/* harmony export */ __next_app__: () => (/* binding */ __next_app__),
|
|
502
|
+
/* harmony export */ handler: () => (/* binding */ handler),
|
|
503
|
+
/* harmony export */ routeModule: () => (/* binding */ routeModule)
|
|
1211
504
|
/* harmony export */ });
|
|
1212
|
-
/* harmony import */ var
|
|
505
|
+
/* harmony import */ var next_dist_server_route_modules_app_page_module_compiled__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80666);
|
|
506
|
+
/* harmony import */ var next_dist_server_route_modules_app_page_module_compiled__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_route_modules_app_page_module_compiled__WEBPACK_IMPORTED_MODULE_0__);
|
|
507
|
+
/* harmony import */ var next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51421);
|
|
508
|
+
/* harmony import */ var next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4675);
|
|
509
|
+
/* harmony import */ var next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29796);
|
|
510
|
+
/* harmony import */ var next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_3__);
|
|
511
|
+
/* harmony import */ var next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(54046);
|
|
512
|
+
/* harmony import */ var next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__);
|
|
513
|
+
/* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(74928);
|
|
514
|
+
/* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_5__);
|
|
515
|
+
/* harmony import */ var next_dist_server_app_render_interop_default__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(19727);
|
|
516
|
+
/* harmony import */ var next_dist_server_app_render_strip_flight_headers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(24268);
|
|
517
|
+
/* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(60402);
|
|
518
|
+
/* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_8__);
|
|
519
|
+
/* harmony import */ var next_dist_server_lib_experimental_ppr__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(22040);
|
|
520
|
+
/* harmony import */ var next_dist_server_lib_experimental_ppr__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_experimental_ppr__WEBPACK_IMPORTED_MODULE_9__);
|
|
521
|
+
/* harmony import */ var next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(27186);
|
|
522
|
+
/* harmony import */ var next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__);
|
|
523
|
+
/* harmony import */ var next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(49228);
|
|
524
|
+
/* harmony import */ var next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_11__);
|
|
525
|
+
/* harmony import */ var next_dist_server_lib_streaming_metadata__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(97485);
|
|
526
|
+
/* harmony import */ var next_dist_server_lib_streaming_metadata__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_streaming_metadata__WEBPACK_IMPORTED_MODULE_12__);
|
|
527
|
+
/* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(261);
|
|
528
|
+
/* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_13__);
|
|
529
|
+
/* harmony import */ var next_dist_server_lib_server_action_request_meta__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(80885);
|
|
530
|
+
/* harmony import */ var next_dist_server_lib_server_action_request_meta__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_server_action_request_meta__WEBPACK_IMPORTED_MODULE_14__);
|
|
531
|
+
/* harmony import */ var next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(7162);
|
|
532
|
+
/* harmony import */ var next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__);
|
|
533
|
+
/* harmony import */ var next_dist_shared_lib_router_utils_is_bot__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(26713);
|
|
534
|
+
/* harmony import */ var next_dist_shared_lib_router_utils_is_bot__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_router_utils_is_bot__WEBPACK_IMPORTED_MODULE_16__);
|
|
535
|
+
/* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(70972);
|
|
536
|
+
/* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__);
|
|
537
|
+
/* harmony import */ var next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(57341);
|
|
538
|
+
/* harmony import */ var next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__);
|
|
539
|
+
/* harmony import */ var next_dist_server_render_result__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(95105);
|
|
540
|
+
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(38038);
|
|
541
|
+
/* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__);
|
|
542
|
+
/* harmony import */ var next_dist_server_stream_utils_encoded_tags__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(29898);
|
|
543
|
+
/* harmony import */ var next_dist_server_stream_utils_node_web_streams_helper__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(62918);
|
|
544
|
+
/* 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__);
|
|
545
|
+
/* harmony import */ var next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(98798);
|
|
546
|
+
/* 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__);
|
|
547
|
+
/* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(86439);
|
|
548
|
+
/* 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__);
|
|
549
|
+
/* harmony import */ var next_dist_shared_lib_size_limit__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(77068);
|
|
550
|
+
/* 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__);
|
|
551
|
+
/* harmony import */ var next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(31214);
|
|
552
|
+
/* 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__);
|
|
553
|
+
/* harmony import */ var next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(35402);
|
|
554
|
+
/* 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__);
|
|
555
|
+
/* harmony import */ var next_dist_client_components_redirect_status_code__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(29059);
|
|
556
|
+
/* 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__);
|
|
557
|
+
/* harmony import */ var next_dist_shared_lib_invariant_error__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(70722);
|
|
558
|
+
/* 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__);
|
|
559
|
+
/* harmony import */ var next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(31182);
|
|
560
|
+
/* harmony import */ var next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_30___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_30__);
|
|
561
|
+
/* harmony import */ var next_dist_shared_lib_router_utils_interception_routes__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(43954);
|
|
562
|
+
/* 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__);
|
|
563
|
+
/* harmony import */ var next_dist_shared_lib_router_utils_get_segment_param__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(17891);
|
|
564
|
+
/* 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__);
|
|
565
|
+
/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
566
|
+
/* 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__]
|
|
567
|
+
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
568
|
+
const module0 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 95235));
|
|
569
|
+
const module1 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 25195));
|
|
570
|
+
const module2 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 56357));
|
|
571
|
+
const module3 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 72353));
|
|
572
|
+
const module4 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.t.bind(__webpack_require__, 4253, 23));
|
|
573
|
+
const module5 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.t.bind(__webpack_require__, 49184, 23));
|
|
574
|
+
const module6 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 57149));
|
|
575
|
+
const module7 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 56357));
|
|
576
|
+
const module8 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 28310));
|
|
577
|
+
const module9 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 20706));
|
|
578
|
+
const module10 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 56357));
|
|
579
|
+
const module11 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 56357));
|
|
580
|
+
const page12 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 71977));
|
|
1213
581
|
|
|
1214
582
|
|
|
1215
583
|
|
|
1216
|
-
/***/ }),
|
|
1217
584
|
|
|
1218
|
-
/***/ 26713:
|
|
1219
|
-
/***/ ((module) => {
|
|
1220
585
|
|
|
1221
|
-
"use strict";
|
|
1222
|
-
module.exports = require("next/dist/shared/lib/router/utils/is-bot");
|
|
1223
586
|
|
|
1224
|
-
/***/ }),
|
|
1225
587
|
|
|
1226
|
-
/***/ 28354:
|
|
1227
|
-
/***/ ((module) => {
|
|
1228
588
|
|
|
1229
|
-
"use strict";
|
|
1230
|
-
module.exports = require("util");
|
|
1231
589
|
|
|
1232
|
-
/***/ }),
|
|
1233
590
|
|
|
1234
|
-
/***/ 29294:
|
|
1235
|
-
/***/ ((module) => {
|
|
1236
591
|
|
|
1237
|
-
"use strict";
|
|
1238
|
-
module.exports = require("next/dist/server/app-render/work-async-storage.external.js");
|
|
1239
592
|
|
|
1240
|
-
/***/ }),
|
|
1241
593
|
|
|
1242
|
-
/***/ 30796:
|
|
1243
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1244
594
|
|
|
1245
|
-
"use strict";
|
|
1246
|
-
// ESM COMPAT FLAG
|
|
1247
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1248
595
|
|
|
1249
|
-
// EXPORTS
|
|
1250
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
1251
|
-
"default": () => (/* binding */ AdminLayout)
|
|
1252
|
-
});
|
|
1253
596
|
|
|
1254
|
-
// EXTERNAL MODULE: ../../node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-jsx-runtime.js
|
|
1255
|
-
var react_jsx_runtime = __webpack_require__(92692);
|
|
1256
|
-
// EXTERNAL MODULE: ../../node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react.js
|
|
1257
|
-
var react = __webpack_require__(71277);
|
|
1258
|
-
// EXTERNAL MODULE: ../../node_modules/next-intl/dist/esm/production/react-client/index.js
|
|
1259
|
-
var react_client = __webpack_require__(56305);
|
|
1260
|
-
// EXTERNAL MODULE: ../../node_modules/next-auth/react/index.js
|
|
1261
|
-
var next_auth_react = __webpack_require__(62341);
|
|
1262
|
-
// EXTERNAL MODULE: ./src/i18n/routing.ts
|
|
1263
|
-
var routing = __webpack_require__(99704);
|
|
1264
|
-
// EXTERNAL MODULE: __barrel_optimize__?names=SimpleNavigation,useEventSubscriptions!=!../../packages/react-ui/dist/index.mjs
|
|
1265
|
-
var dist = __webpack_require__(25197);
|
|
1266
|
-
;// ../../node_modules/@heroicons/react/24/outline/esm/UsersIcon.js
|
|
1267
597
|
|
|
1268
|
-
function UsersIcon({ title, titleId, ...props }, svgRef) {
|
|
1269
|
-
return /*#__PURE__*/ react.createElement("svg", Object.assign({
|
|
1270
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1271
|
-
fill: "none",
|
|
1272
|
-
viewBox: "0 0 24 24",
|
|
1273
|
-
strokeWidth: 1.5,
|
|
1274
|
-
stroke: "currentColor",
|
|
1275
|
-
"aria-hidden": "true",
|
|
1276
|
-
"data-slot": "icon",
|
|
1277
|
-
ref: svgRef,
|
|
1278
|
-
"aria-labelledby": titleId
|
|
1279
|
-
}, props), title ? /*#__PURE__*/ react.createElement("title", {
|
|
1280
|
-
id: titleId
|
|
1281
|
-
}, title) : null, /*#__PURE__*/ react.createElement("path", {
|
|
1282
|
-
strokeLinecap: "round",
|
|
1283
|
-
strokeLinejoin: "round",
|
|
1284
|
-
d: "M15 19.128a9.38 9.38 0 0 0 2.625.372 9.337 9.337 0 0 0 4.121-.952 4.125 4.125 0 0 0-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 0 1 8.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0 1 11.964-3.07M12 6.375a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0Zm8.25 2.25a2.625 2.625 0 1 1-5.25 0 2.625 2.625 0 0 1 5.25 0Z"
|
|
1285
|
-
}));
|
|
1286
|
-
}
|
|
1287
|
-
const ForwardRef = /*#__PURE__*/ react.forwardRef(UsersIcon);
|
|
1288
|
-
/* harmony default export */ const esm_UsersIcon = (ForwardRef);
|
|
1289
598
|
|
|
1290
|
-
// EXTERNAL MODULE: ../../node_modules/@heroicons/react/24/outline/esm/ShieldCheckIcon.js
|
|
1291
|
-
var ShieldCheckIcon = __webpack_require__(33135);
|
|
1292
|
-
// EXTERNAL MODULE: ../../node_modules/@heroicons/react/24/outline/esm/ArrowsRightLeftIcon.js
|
|
1293
|
-
var ArrowsRightLeftIcon = __webpack_require__(32037);
|
|
1294
|
-
// EXTERNAL MODULE: ../../node_modules/@heroicons/react/24/outline/esm/CommandLineIcon.js
|
|
1295
|
-
var CommandLineIcon = __webpack_require__(79591);
|
|
1296
|
-
// EXTERNAL MODULE: ../../node_modules/@heroicons/react/24/outline/esm/ChevronLeftIcon.js
|
|
1297
|
-
var ChevronLeftIcon = __webpack_require__(71062);
|
|
1298
|
-
// EXTERNAL MODULE: ../../node_modules/@heroicons/react/24/outline/esm/Bars3Icon.js
|
|
1299
|
-
var Bars3Icon = __webpack_require__(67255);
|
|
1300
|
-
;// ./src/components/admin/AdminNavigation.tsx
|
|
1301
|
-
/* __next_internal_client_entry_do_not_use__ AdminNavigation auto */
|
|
1302
599
|
|
|
1303
600
|
|
|
1304
601
|
|
|
1305
602
|
|
|
1306
603
|
|
|
1307
604
|
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
toggleCollapsed
|
|
1317
|
-
]);
|
|
1318
|
-
// Subscribe to sidebar toggle events
|
|
1319
|
-
(0,dist/* useEventSubscriptions */.C$z)({
|
|
1320
|
-
'browse:sidebar-toggle': handleSidebarToggle
|
|
1321
|
-
});
|
|
1322
|
-
const navigation = [
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
// We inject the tree and pages here so that we can use them in the route
|
|
609
|
+
// module.
|
|
610
|
+
const tree = {
|
|
611
|
+
children: [
|
|
612
|
+
'',
|
|
1323
613
|
{
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
icon: esm_UsersIcon,
|
|
1327
|
-
description: t('usersDescription')
|
|
1328
|
-
},
|
|
614
|
+
children: [
|
|
615
|
+
'[locale]',
|
|
1329
616
|
{
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
icon: ShieldCheckIcon/* default */.A,
|
|
1333
|
-
description: t('oauthSettingsDescription')
|
|
1334
|
-
},
|
|
617
|
+
children: [
|
|
618
|
+
'admin',
|
|
1335
619
|
{
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
icon: ArrowsRightLeftIcon/* default */.A,
|
|
1339
|
-
description: t('exchangeDescription')
|
|
1340
|
-
},
|
|
620
|
+
children: [
|
|
621
|
+
'devops',
|
|
1341
622
|
{
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
623
|
+
children: ['__PAGE__', {}, {
|
|
624
|
+
page: [page12, "/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/admin/devops/page.tsx"],
|
|
625
|
+
|
|
626
|
+
}]
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
'global-error': [module11, "/home/runner/work/semiont/semiont/apps/frontend/src/app/global-error.tsx"],
|
|
630
|
+
|
|
631
|
+
},
|
|
632
|
+
[]
|
|
633
|
+
]
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
'layout': [module9, "/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/admin/layout.tsx"],
|
|
637
|
+
'global-error': [module10, "/home/runner/work/semiont/semiont/apps/frontend/src/app/global-error.tsx"],
|
|
638
|
+
|
|
639
|
+
},
|
|
640
|
+
[]
|
|
641
|
+
]
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
'layout': [module6, "/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/layout.tsx"],
|
|
645
|
+
'global-error': [module7, "/home/runner/work/semiont/semiont/apps/frontend/src/app/global-error.tsx"],
|
|
646
|
+
'not-found': [module8, "/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/not-found.tsx"],
|
|
647
|
+
|
|
648
|
+
},
|
|
649
|
+
["_not-found","_global-error","api"]
|
|
650
|
+
]
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
'layout': [module0, "/home/runner/work/semiont/semiont/apps/frontend/src/app/layout.tsx"],
|
|
654
|
+
'error': [module1, "/home/runner/work/semiont/semiont/apps/frontend/src/app/error.tsx"],
|
|
655
|
+
'global-error': [module2, "/home/runner/work/semiont/semiont/apps/frontend/src/app/global-error.tsx"],
|
|
656
|
+
'not-found': [module3, "/home/runner/work/semiont/semiont/apps/frontend/src/app/not-found.tsx"],
|
|
657
|
+
'forbidden': [module4, "next/dist/client/components/builtin/forbidden.js"],
|
|
658
|
+
'unauthorized': [module5, "next/dist/client/components/builtin/unauthorized.js"],
|
|
659
|
+
|
|
660
|
+
},
|
|
661
|
+
[]
|
|
662
|
+
]
|
|
663
|
+
}.children;
|
|
664
|
+
const __next_app_require__ = __webpack_require__
|
|
665
|
+
const __next_app_load_chunk__ = () => Promise.resolve()
|
|
666
|
+
const __next_app__ = {
|
|
667
|
+
require: __next_app_require__,
|
|
668
|
+
loadChunk: __next_app_load_chunk__
|
|
669
|
+
};
|
|
670
|
+
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
|
|
675
|
+
|
|
676
|
+
|
|
677
|
+
// Create and export the route module that will be consumed.
|
|
678
|
+
const routeModule = new next_dist_server_route_modules_app_page_module_compiled__WEBPACK_IMPORTED_MODULE_0__.AppPageRouteModule({
|
|
679
|
+
definition: {
|
|
680
|
+
kind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_PAGE,
|
|
681
|
+
page: "/[locale]/admin/devops/page",
|
|
682
|
+
pathname: "/[locale]/admin/devops",
|
|
683
|
+
// The following aren't used in production.
|
|
684
|
+
bundlePath: '',
|
|
685
|
+
filename: '',
|
|
686
|
+
appPaths: []
|
|
687
|
+
},
|
|
688
|
+
userland: {
|
|
689
|
+
loaderTree: tree
|
|
690
|
+
},
|
|
691
|
+
distDir: ".next" || 0,
|
|
692
|
+
relativeProjectDir: false || ''
|
|
693
|
+
});
|
|
694
|
+
function buildDynamicSegmentPlaceholder(param) {
|
|
695
|
+
const { repeat, optional } = (0,next_dist_shared_lib_router_utils_get_segment_param__WEBPACK_IMPORTED_MODULE_32__.getParamProperties)(param.paramType);
|
|
696
|
+
if (optional) {
|
|
697
|
+
return `[[...${param.paramName}]]`;
|
|
698
|
+
}
|
|
699
|
+
if (repeat) {
|
|
700
|
+
return `[...${param.paramName}]`;
|
|
701
|
+
}
|
|
702
|
+
return `[${param.paramName}]`;
|
|
703
|
+
}
|
|
704
|
+
/**
|
|
705
|
+
* Builds the cache key for the most complete prerenderable shell we can derive
|
|
706
|
+
* from the shell that matched this request. Only params that can still be
|
|
707
|
+
* filled by `generateStaticParams` are substituted; fully dynamic params stay
|
|
708
|
+
* as placeholders so a request like `/c/foo` can complete `/[one]/[two]` into
|
|
709
|
+
* `/c/[two]` rather than `/c/foo`.
|
|
710
|
+
*/ function buildCompletedShellCacheKey(fallbackPathname, remainingPrerenderableParams, params) {
|
|
711
|
+
const prerenderableParamsByName = new Map(remainingPrerenderableParams.map((param)=>[
|
|
712
|
+
param.paramName,
|
|
713
|
+
param
|
|
714
|
+
]));
|
|
715
|
+
return fallbackPathname.split('/').map((segment)=>{
|
|
716
|
+
const segmentParam = (0,next_dist_shared_lib_router_utils_get_segment_param__WEBPACK_IMPORTED_MODULE_32__.getSegmentParam)(segment);
|
|
717
|
+
if (!segmentParam) {
|
|
718
|
+
return segment;
|
|
719
|
+
}
|
|
720
|
+
const remainingParam = prerenderableParamsByName.get(segmentParam.paramName);
|
|
721
|
+
if (!remainingParam) {
|
|
722
|
+
return segment;
|
|
723
|
+
}
|
|
724
|
+
const value = params == null ? void 0 : params[remainingParam.paramName];
|
|
725
|
+
if (!value) {
|
|
726
|
+
return segment;
|
|
727
|
+
}
|
|
728
|
+
const encodedValue = Array.isArray(value) ? value.map((item)=>encodeURIComponent(item)).join('/') : encodeURIComponent(value);
|
|
729
|
+
return segment.replace(buildDynamicSegmentPlaceholder(remainingParam), encodedValue);
|
|
730
|
+
}).join('/') || '/';
|
|
731
|
+
}
|
|
732
|
+
async function handler(req, res, ctx) {
|
|
733
|
+
var _this, _prerenderManifest_routes_resolvedPathname, _prerenderInfo_fallbackRootParams, _prerenderInfo_fallbackRouteParams;
|
|
734
|
+
if (ctx.requestMeta) {
|
|
735
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.setRequestMeta)(req, ctx.requestMeta);
|
|
736
|
+
}
|
|
737
|
+
if (routeModule.isDev) {
|
|
738
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.addRequestMeta)(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());
|
|
739
|
+
}
|
|
740
|
+
const isMinimalMode = Boolean((0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'minimalMode'));
|
|
741
|
+
let srcPage = "/[locale]/admin/devops/page";
|
|
742
|
+
// turbopack doesn't normalize `/index` in the page name
|
|
743
|
+
// so we need to to process dynamic routes properly
|
|
744
|
+
// TODO: fix turbopack providing differing value from webpack
|
|
745
|
+
if (false) {} else if (srcPage === '/index') {
|
|
746
|
+
// we always normalize /index specifically
|
|
747
|
+
srcPage = '/';
|
|
748
|
+
}
|
|
749
|
+
const multiZoneDraftMode = false;
|
|
750
|
+
const prepareResult = await routeModule.prepare(req, res, {
|
|
751
|
+
srcPage,
|
|
752
|
+
multiZoneDraftMode
|
|
753
|
+
});
|
|
754
|
+
if (!prepareResult) {
|
|
755
|
+
res.statusCode = 400;
|
|
756
|
+
res.end('Bad Request');
|
|
757
|
+
ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
|
|
758
|
+
return null;
|
|
759
|
+
}
|
|
760
|
+
const { buildId, query, params, pageIsDynamic, buildManifest, nextFontManifest, reactLoadableManifest, serverActionsManifest, clientReferenceManifest, subresourceIntegrityManifest, prerenderManifest, isDraftMode, resolvedPathname, revalidateOnlyGenerated, routerServerContext, nextConfig, parsedUrl, interceptionRoutePatterns, deploymentId, clientAssetToken } = prepareResult;
|
|
761
|
+
const normalizedSrcPage = (0,next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_13__.normalizeAppPath)(srcPage);
|
|
762
|
+
let { isOnDemandRevalidate } = prepareResult;
|
|
763
|
+
// We use the resolvedPathname instead of the parsedUrl.pathname because it
|
|
764
|
+
// is not rewritten as resolvedPathname is. This will ensure that the correct
|
|
765
|
+
// prerender info is used instead of using the original pathname as the
|
|
766
|
+
// source. If however PPR is enabled and cacheComponents is disabled, we
|
|
767
|
+
// treat the pathname as dynamic. Currently, there's a bug in the PPR
|
|
768
|
+
// implementation that incorrectly leaves %%drp placeholders in the output of
|
|
769
|
+
// parallel routes. This is addressed with cacheComponents.
|
|
770
|
+
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);
|
|
771
|
+
const prerenderInfo = (prerenderMatch == null ? void 0 : prerenderMatch.route) ?? null;
|
|
772
|
+
const isPrerendered = !!prerenderManifest.routes[resolvedPathname];
|
|
773
|
+
const userAgent = req.headers['user-agent'] || '';
|
|
774
|
+
const botType = (0,next_dist_shared_lib_router_utils_is_bot__WEBPACK_IMPORTED_MODULE_16__.getBotType)(userAgent);
|
|
775
|
+
const isHtmlBot = (0,next_dist_server_lib_streaming_metadata__WEBPACK_IMPORTED_MODULE_12__.isHtmlBotRequest)(req);
|
|
776
|
+
/**
|
|
777
|
+
* If true, this indicates that the request being made is for an app
|
|
778
|
+
* prefetch request.
|
|
779
|
+
*/ const isPrefetchRSCRequest = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'isPrefetchRSCRequest') ?? req.headers[next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.NEXT_ROUTER_PREFETCH_HEADER] === '1' // exclude runtime prefetches, which use '2'
|
|
780
|
+
;
|
|
781
|
+
// NOTE: Don't delete headers[RSC] yet, it still needs to be used in renderToHTML later
|
|
782
|
+
const isRSCRequest = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'isRSCRequest') ?? Boolean(req.headers[next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.RSC_HEADER]);
|
|
783
|
+
const isPossibleServerAction = (0,next_dist_server_lib_server_action_request_meta__WEBPACK_IMPORTED_MODULE_14__.getIsPossibleServerAction)(req);
|
|
784
|
+
/**
|
|
785
|
+
* If the route being rendered is an app page, and the ppr feature has been
|
|
786
|
+
* enabled, then the given route _could_ support PPR.
|
|
787
|
+
*/ const couldSupportPPR = (0,next_dist_server_lib_experimental_ppr__WEBPACK_IMPORTED_MODULE_9__.checkIsAppPPREnabled)(nextConfig.experimental.ppr);
|
|
788
|
+
// Stash postponed state for server actions when in minimal mode.
|
|
789
|
+
// We extract it here so the RDC is available for the re-render after the action completes.
|
|
790
|
+
const resumeStateLengthHeader = req.headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_RESUME_STATE_LENGTH_HEADER];
|
|
791
|
+
if (!(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'postponed') && isMinimalMode && couldSupportPPR && isPossibleServerAction && resumeStateLengthHeader && typeof resumeStateLengthHeader === 'string') {
|
|
792
|
+
const stateLength = parseInt(resumeStateLengthHeader, 10);
|
|
793
|
+
const { maxPostponedStateSize, maxPostponedStateSizeBytes } = (0,next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__.getMaxPostponedStateSize)(nextConfig.experimental.maxPostponedStateSize);
|
|
794
|
+
if (!isNaN(stateLength) && stateLength > 0) {
|
|
795
|
+
var _nextConfig_experimental_serverActions;
|
|
796
|
+
if (stateLength > maxPostponedStateSizeBytes) {
|
|
797
|
+
res.statusCode = 413;
|
|
798
|
+
res.end((0,next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__.getPostponedStateExceededErrorMessage)(maxPostponedStateSize));
|
|
799
|
+
ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
|
|
800
|
+
return null;
|
|
801
|
+
}
|
|
802
|
+
// Calculate max total body size to prevent buffering excessively large
|
|
803
|
+
// payloads before the action handler checks. We use stateLength (not
|
|
804
|
+
// maxPostponedStateSizeBytes) so the postponed state doesn't eat into
|
|
805
|
+
// the action body budget - it's already validated above.
|
|
806
|
+
const defaultActionBodySizeLimit = '1 MB';
|
|
807
|
+
const actionBodySizeLimit = ((_nextConfig_experimental_serverActions = nextConfig.experimental.serverActions) == null ? void 0 : _nextConfig_experimental_serverActions.bodySizeLimit) ?? defaultActionBodySizeLimit;
|
|
808
|
+
const actionBodySizeLimitBytes = actionBodySizeLimit !== defaultActionBodySizeLimit ? (__webpack_require__(32683).parse)(actionBodySizeLimit) : 1024 * 1024 // 1 MB
|
|
809
|
+
;
|
|
810
|
+
const maxTotalBodySize = stateLength + actionBodySizeLimitBytes;
|
|
811
|
+
const fullBody = await (0,next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__.readBodyWithSizeLimit)(req, maxTotalBodySize);
|
|
812
|
+
if (fullBody === null) {
|
|
813
|
+
res.statusCode = 413;
|
|
814
|
+
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`);
|
|
815
|
+
ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
|
|
816
|
+
return null;
|
|
817
|
+
}
|
|
818
|
+
if (fullBody.length >= stateLength) {
|
|
819
|
+
// Extract postponed state from the beginning
|
|
820
|
+
const postponedState = fullBody.subarray(0, stateLength).toString('utf8');
|
|
821
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.addRequestMeta)(req, 'postponed', postponedState);
|
|
822
|
+
// Store the remaining action body for the action handler
|
|
823
|
+
const actionBody = fullBody.subarray(stateLength);
|
|
824
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.addRequestMeta)(req, 'actionBody', actionBody);
|
|
825
|
+
} else {
|
|
826
|
+
throw Object.defineProperty(new Error(`invariant: expected ${stateLength} bytes of postponed state but only received ${fullBody.length} bytes`), "__NEXT_ERROR_CODE", {
|
|
827
|
+
value: "E979",
|
|
828
|
+
enumerable: false,
|
|
829
|
+
configurable: true
|
|
830
|
+
});
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
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') {
|
|
835
|
+
const { maxPostponedStateSize, maxPostponedStateSizeBytes } = (0,next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__.getMaxPostponedStateSize)(nextConfig.experimental.maxPostponedStateSize);
|
|
836
|
+
// Decode the postponed state from the request body, it will come as
|
|
837
|
+
// an array of buffers, so collect them and then concat them to form
|
|
838
|
+
// the string.
|
|
839
|
+
const body = await (0,next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__.readBodyWithSizeLimit)(req, maxPostponedStateSizeBytes);
|
|
840
|
+
if (body === null) {
|
|
841
|
+
res.statusCode = 413;
|
|
842
|
+
res.end((0,next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__.getPostponedStateExceededErrorMessage)(maxPostponedStateSize));
|
|
843
|
+
ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
|
|
844
|
+
return null;
|
|
845
|
+
}
|
|
846
|
+
const postponed = body.toString('utf8');
|
|
847
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.addRequestMeta)(req, 'postponed', postponed);
|
|
848
|
+
}
|
|
849
|
+
// When enabled, this will allow the use of the `?__nextppronly` query to
|
|
850
|
+
// enable debugging of the static shell.
|
|
851
|
+
const hasDebugStaticShellQuery = false && 0;
|
|
852
|
+
// When enabled, this will allow the use of the `?__nextppronly` query
|
|
853
|
+
// to enable debugging of the fallback shell.
|
|
854
|
+
const hasDebugFallbackShellQuery = hasDebugStaticShellQuery && query.__nextppronly === 'fallback';
|
|
855
|
+
// Whether the testing API is exposed (dev mode or explicit flag)
|
|
856
|
+
const exposeTestingApi = routeModule.isDev === true || nextConfig.experimental.exposeTestingApiInProductionBuild === true;
|
|
857
|
+
// Enable the Instant Navigation Testing API. Renders only the prefetched
|
|
858
|
+
// portion of the page, excluding dynamic content. This allows tests to
|
|
859
|
+
// assert on the prefetched UI state deterministically.
|
|
860
|
+
// - Header: Used for client-side navigations where we can set request headers
|
|
861
|
+
// - Cookie: Used for MPA navigations (page reload, full page load) where we
|
|
862
|
+
// can't set request headers. Only applies to document requests (no RSC
|
|
863
|
+
// header) - RSC requests should proceed normally even during a locked scope,
|
|
864
|
+
// with blocking happening on the client side.
|
|
865
|
+
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 + '='));
|
|
866
|
+
// This page supports PPR if it is marked as being `PARTIALLY_STATIC` in the
|
|
867
|
+
// prerender manifest and this is an app page.
|
|
868
|
+
const isRoutePPREnabled = // When the instant navigation testing API is active, enable the PPR
|
|
869
|
+
// prerender path even without Cache Components. In dev mode without CC,
|
|
870
|
+
// static pages need this path to produce buffered segment data (the
|
|
871
|
+
// legacy prerender path hangs in dev mode).
|
|
872
|
+
(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
|
|
873
|
+
// enabled or not, but that would require plumbing the appConfig through
|
|
874
|
+
// to the server during development. We assume that the page supports it
|
|
875
|
+
// but only during development or when the testing API is exposed.
|
|
876
|
+
(hasDebugStaticShellQuery || isInstantNavigationTest) && (exposeTestingApi || (routerServerContext == null ? void 0 : routerServerContext.experimentalTestProxy) === true));
|
|
877
|
+
const isDebugStaticShell = (hasDebugStaticShellQuery || isInstantNavigationTest) && isRoutePPREnabled;
|
|
878
|
+
// We should enable debugging dynamic accesses when the static shell
|
|
879
|
+
// debugging has been enabled and we're also in development mode.
|
|
880
|
+
const isDebugDynamicAccesses = isDebugStaticShell && routeModule.isDev === true;
|
|
881
|
+
const isDebugFallbackShell = hasDebugFallbackShellQuery && isRoutePPREnabled;
|
|
882
|
+
// If we're in minimal mode, then try to get the postponed information from
|
|
883
|
+
// the request metadata. If available, use it for resuming the postponed
|
|
884
|
+
// render.
|
|
885
|
+
const minimalPostponed = isRoutePPREnabled ? (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'postponed') : undefined;
|
|
886
|
+
// If PPR is enabled, and this is a RSC request (but not a prefetch), then
|
|
887
|
+
// we can use this fact to only generate the flight data for the request
|
|
888
|
+
// because we can't cache the HTML (as it's also dynamic).
|
|
889
|
+
const staticPrefetchDataRoute = (_prerenderManifest_routes_resolvedPathname = prerenderManifest.routes[resolvedPathname]) == null ? void 0 : _prerenderManifest_routes_resolvedPathname.prefetchDataRoute;
|
|
890
|
+
let isDynamicRSCRequest = isRoutePPREnabled && isRSCRequest && !isPrefetchRSCRequest && // If generated at build time, treat the RSC request as static
|
|
891
|
+
// so we can serve the prebuilt .rsc without a dynamic render.
|
|
892
|
+
// Only do this for routes that have a concrete prefetchDataRoute.
|
|
893
|
+
!staticPrefetchDataRoute;
|
|
894
|
+
// During a PPR revalidation, the RSC request is not dynamic if we do not have the postponed data.
|
|
895
|
+
// We only attach the postponed data during a resume. If there's no postponed data, then it must be a revalidation.
|
|
896
|
+
// This is to ensure that we don't bypass the cache during a revalidation.
|
|
897
|
+
if (isMinimalMode) {
|
|
898
|
+
isDynamicRSCRequest = isDynamicRSCRequest && !!minimalPostponed;
|
|
899
|
+
}
|
|
900
|
+
// Need to read this before it's stripped by stripFlightHeaders. We don't
|
|
901
|
+
// need to transfer it to the request meta because it's only read
|
|
902
|
+
// within this function; the static segment data should have already been
|
|
903
|
+
// generated, so we will always either return a static response or a 404.
|
|
904
|
+
const segmentPrefetchHeader = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'segmentPrefetchRSCRequest');
|
|
905
|
+
// TODO: investigate existing bug with shouldServeStreamingMetadata always
|
|
906
|
+
// being true for a revalidate due to modifying the base-server this.renderOpts
|
|
907
|
+
// when fixing this to correct logic it causes hydration issue since we set
|
|
908
|
+
// serveStreamingMetadata to true during export
|
|
909
|
+
const serveStreamingMetadata = botType && isRoutePPREnabled ? false : !userAgent ? true : (0,next_dist_server_lib_streaming_metadata__WEBPACK_IMPORTED_MODULE_12__.shouldServeStreamingMetadata)(userAgent, nextConfig.htmlLimitedBots);
|
|
910
|
+
const isSSG = Boolean((prerenderInfo || isPrerendered || prerenderManifest.routes[normalizedSrcPage]) && // If this is a bot request and PPR is enabled, then we don't want
|
|
911
|
+
// to serve a static response. This applies to both DOM bots (like Googlebot)
|
|
912
|
+
// and HTML-limited bots.
|
|
913
|
+
!(botType && isRoutePPREnabled));
|
|
914
|
+
// When a page supports cacheComponents, we can support RDC for Navigations
|
|
915
|
+
const supportsRDCForNavigations = isRoutePPREnabled && nextConfig.cacheComponents === true;
|
|
916
|
+
// In development, we always want to generate dynamic HTML.
|
|
917
|
+
const supportsDynamicResponse = // If we're in development, we always support dynamic HTML, unless it's
|
|
918
|
+
// a data request, in which case we only produce static HTML.
|
|
919
|
+
routeModule.isDev === true || // If this is not SSG or does not have static paths, then it supports
|
|
920
|
+
// dynamic HTML.
|
|
921
|
+
!isSSG || // If this request has provided postponed data, it supports dynamic
|
|
922
|
+
// HTML.
|
|
923
|
+
typeof minimalPostponed === 'string' || // If this handler supports onCacheEntryV2, then we can only support
|
|
924
|
+
// dynamic responses if it's a dynamic RSC request and not in minimal mode. If it
|
|
925
|
+
// doesn't support it we must fallback to the default behavior.
|
|
926
|
+
(supportsRDCForNavigations && (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'onCacheEntryV2') ? // which will generate the RDC for the route. When resuming a Dynamic
|
|
927
|
+
// RSC request, we'll pass the minimal postponed data to the render
|
|
928
|
+
// which will trigger the `supportsDynamicResponse` to be true.
|
|
929
|
+
isDynamicRSCRequest && !isMinimalMode : isDynamicRSCRequest);
|
|
930
|
+
// When bots request PPR page, perform the full dynamic rendering.
|
|
931
|
+
// This applies to both DOM bots (like Googlebot) and HTML-limited bots.
|
|
932
|
+
const shouldWaitOnAllReady = Boolean(botType) && isRoutePPREnabled;
|
|
933
|
+
const remainingPrerenderableParams = (prerenderInfo == null ? void 0 : prerenderInfo.remainingPrerenderableParams) ?? [];
|
|
934
|
+
const hasUnresolvedRootFallbackParams = (prerenderInfo == null ? void 0 : prerenderInfo.fallback) === null && (((_prerenderInfo_fallbackRootParams = prerenderInfo.fallbackRootParams) == null ? void 0 : _prerenderInfo_fallbackRootParams.length) ?? 0) > 0;
|
|
935
|
+
let ssgCacheKey = null;
|
|
936
|
+
if (!isDraftMode && isSSG && !supportsDynamicResponse && !isPossibleServerAction && !minimalPostponed && !isDynamicRSCRequest) {
|
|
937
|
+
// For normal SSG routes we cache by the fully resolved pathname. For
|
|
938
|
+
// partial fallbacks we instead derive the cache key from the shell
|
|
939
|
+
// that matched this request so `/prefix/[one]/[two]` can specialize into
|
|
940
|
+
// `/prefix/c/[two]` without promoting all the way to `/prefix/c/foo`.
|
|
941
|
+
const fallbackPathname = prerenderMatch ? typeof (prerenderInfo == null ? void 0 : prerenderInfo.fallback) === 'string' ? prerenderInfo.fallback : prerenderMatch.source : null;
|
|
942
|
+
if (nextConfig.experimental.partialFallbacks === true && fallbackPathname && (prerenderInfo == null ? void 0 : prerenderInfo.fallbackRouteParams) && !hasUnresolvedRootFallbackParams) {
|
|
943
|
+
if (remainingPrerenderableParams.length > 0) {
|
|
944
|
+
const completedShellCacheKey = buildCompletedShellCacheKey(fallbackPathname, remainingPrerenderableParams, params);
|
|
945
|
+
// If applying the current request params doesn't make the shell any
|
|
946
|
+
// more complete, then this shell is already at its most complete
|
|
947
|
+
// form and should remain shared rather than creating a new cache entry.
|
|
948
|
+
ssgCacheKey = completedShellCacheKey !== fallbackPathname ? completedShellCacheKey : null;
|
|
949
|
+
}
|
|
950
|
+
} else {
|
|
951
|
+
ssgCacheKey = resolvedPathname;
|
|
1346
952
|
}
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
//
|
|
1371
|
-
|
|
1372
|
-
//
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
953
|
+
}
|
|
954
|
+
// the staticPathKey differs from ssgCacheKey since
|
|
955
|
+
// ssgCacheKey is null in dev since we're always in "dynamic"
|
|
956
|
+
// mode in dev to bypass the cache. It can also be null for partial
|
|
957
|
+
// fallback shells that should remain shared and must not create a
|
|
958
|
+
// param-specific ISR entry, but we still need to honor fallback handling.
|
|
959
|
+
let staticPathKey = ssgCacheKey;
|
|
960
|
+
if (!staticPathKey && (routeModule.isDev || isSSG && pageIsDynamic && (prerenderInfo == null ? void 0 : prerenderInfo.fallbackRouteParams))) {
|
|
961
|
+
staticPathKey = resolvedPathname;
|
|
962
|
+
}
|
|
963
|
+
// If this is a request for an app path that should be statically generated
|
|
964
|
+
// and we aren't in the edge runtime, strip the flight headers so it will
|
|
965
|
+
// generate the static response.
|
|
966
|
+
if (!routeModule.isDev && !isDraftMode && isSSG && isRSCRequest && !isDynamicRSCRequest) {
|
|
967
|
+
(0,next_dist_server_app_render_strip_flight_headers__WEBPACK_IMPORTED_MODULE_7__/* .stripFlightHeaders */ .d)(req.headers);
|
|
968
|
+
}
|
|
969
|
+
const ComponentMod = {
|
|
970
|
+
...next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_27__,
|
|
971
|
+
tree,
|
|
972
|
+
handler,
|
|
973
|
+
routeModule,
|
|
974
|
+
__next_app__
|
|
975
|
+
};
|
|
976
|
+
// Before rendering (which initializes component tree modules), we have to
|
|
977
|
+
// set the reference manifests to our global store so Server Action's
|
|
978
|
+
// encryption util can access to them at the top level of the page module.
|
|
979
|
+
if (serverActionsManifest && clientReferenceManifest) {
|
|
980
|
+
(0,next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_11__.setManifestsSingleton)({
|
|
981
|
+
page: srcPage,
|
|
982
|
+
clientReferenceManifest,
|
|
983
|
+
serverActionsManifest
|
|
984
|
+
});
|
|
985
|
+
}
|
|
986
|
+
const method = req.method || 'GET';
|
|
987
|
+
const tracer = (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_3__.getTracer)();
|
|
988
|
+
const activeSpan = tracer.getActiveScopeSpan();
|
|
989
|
+
const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);
|
|
990
|
+
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))) ?? [] : [];
|
|
991
|
+
const render404 = async ()=>{
|
|
992
|
+
// TODO: should route-module itself handle rendering the 404
|
|
993
|
+
if (routerServerContext == null ? void 0 : routerServerContext.render404) {
|
|
994
|
+
await routerServerContext.render404(req, res, parsedUrl, false);
|
|
995
|
+
} else {
|
|
996
|
+
res.end('This page could not be found');
|
|
997
|
+
}
|
|
998
|
+
return null;
|
|
999
|
+
};
|
|
1000
|
+
try {
|
|
1001
|
+
const varyHeader = routeModule.getVaryHeader(resolvedPathname, interceptionRoutePatterns);
|
|
1002
|
+
res.setHeader('Vary', varyHeader);
|
|
1003
|
+
let parentSpan;
|
|
1004
|
+
const invokeRouteModule = async (span, context)=>{
|
|
1005
|
+
const nextReq = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_8__.NodeNextRequest(req);
|
|
1006
|
+
const nextRes = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_8__.NodeNextResponse(res);
|
|
1007
|
+
return routeModule.render(nextReq, nextRes, context).finally(()=>{
|
|
1008
|
+
if (!span) return;
|
|
1009
|
+
span.setAttributes({
|
|
1010
|
+
'http.status_code': res.statusCode,
|
|
1011
|
+
'next.rsc': false
|
|
1012
|
+
});
|
|
1013
|
+
const rootSpanAttributes = tracer.getRootSpanAttributes();
|
|
1014
|
+
// We were unable to get attributes, probably OTEL is not enabled
|
|
1015
|
+
if (!rootSpanAttributes) {
|
|
1016
|
+
return;
|
|
1017
|
+
}
|
|
1018
|
+
if (rootSpanAttributes.get('next.span_type') !== next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_5__.BaseServerSpan.handleRequest) {
|
|
1019
|
+
console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);
|
|
1020
|
+
return;
|
|
1021
|
+
}
|
|
1022
|
+
const route = rootSpanAttributes.get('next.route');
|
|
1023
|
+
if (route) {
|
|
1024
|
+
const name = `${method} ${route}`;
|
|
1025
|
+
span.setAttributes({
|
|
1026
|
+
'next.route': route,
|
|
1027
|
+
'http.route': route,
|
|
1028
|
+
'next.span_name': name
|
|
1029
|
+
});
|
|
1030
|
+
span.updateName(name);
|
|
1031
|
+
// Propagate http.route to the parent span if one exists (e.g.
|
|
1032
|
+
// a platform-created HTTP span in adapter deployments).
|
|
1033
|
+
if (parentSpan && parentSpan !== span) {
|
|
1034
|
+
parentSpan.setAttribute('http.route', route);
|
|
1035
|
+
parentSpan.updateName(name);
|
|
1036
|
+
}
|
|
1037
|
+
} else {
|
|
1038
|
+
span.updateName(`${method} ${srcPage}`);
|
|
1039
|
+
}
|
|
1040
|
+
});
|
|
1041
|
+
};
|
|
1042
|
+
const incrementalCache = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, prerenderManifest, isMinimalMode);
|
|
1043
|
+
incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();
|
|
1044
|
+
globalThis.__incrementalCache = incrementalCache;
|
|
1045
|
+
const doRender = async ({ span, postponed, fallbackRouteParams, forceStaticRender })=>{
|
|
1046
|
+
const context = {
|
|
1047
|
+
query,
|
|
1048
|
+
params,
|
|
1049
|
+
page: normalizedSrcPage,
|
|
1050
|
+
sharedContext: {
|
|
1051
|
+
buildId,
|
|
1052
|
+
deploymentId,
|
|
1053
|
+
clientAssetToken
|
|
1054
|
+
},
|
|
1055
|
+
serverComponentsHmrCache: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'serverComponentsHmrCache'),
|
|
1056
|
+
fallbackRouteParams,
|
|
1057
|
+
renderOpts: {
|
|
1058
|
+
App: ()=>null,
|
|
1059
|
+
Document: ()=>null,
|
|
1060
|
+
pageConfig: {},
|
|
1061
|
+
ComponentMod,
|
|
1062
|
+
Component: (0,next_dist_server_app_render_interop_default__WEBPACK_IMPORTED_MODULE_6__/* .interopDefault */ .T)(ComponentMod),
|
|
1063
|
+
params,
|
|
1064
|
+
routeModule,
|
|
1065
|
+
page: srcPage,
|
|
1066
|
+
postponed,
|
|
1067
|
+
shouldWaitOnAllReady,
|
|
1068
|
+
serveStreamingMetadata,
|
|
1069
|
+
supportsDynamicResponse: typeof postponed === 'string' || supportsDynamicResponse,
|
|
1070
|
+
buildManifest,
|
|
1071
|
+
nextFontManifest,
|
|
1072
|
+
reactLoadableManifest,
|
|
1073
|
+
subresourceIntegrityManifest,
|
|
1074
|
+
setCacheStatus: routerServerContext == null ? void 0 : routerServerContext.setCacheStatus,
|
|
1075
|
+
setIsrStatus: routerServerContext == null ? void 0 : routerServerContext.setIsrStatus,
|
|
1076
|
+
setReactDebugChannel: routerServerContext == null ? void 0 : routerServerContext.setReactDebugChannel,
|
|
1077
|
+
sendErrorsToBrowser: routerServerContext == null ? void 0 : routerServerContext.sendErrorsToBrowser,
|
|
1078
|
+
dir: true ? (__webpack_require__(33873).join)(/* turbopackIgnore: true */ process.cwd(), routeModule.relativeProjectDir) : 0,
|
|
1079
|
+
isDraftMode,
|
|
1080
|
+
botType,
|
|
1081
|
+
isOnDemandRevalidate,
|
|
1082
|
+
isPossibleServerAction,
|
|
1083
|
+
assetPrefix: nextConfig.assetPrefix,
|
|
1084
|
+
nextConfigOutput: nextConfig.output,
|
|
1085
|
+
crossOrigin: nextConfig.crossOrigin,
|
|
1086
|
+
trailingSlash: nextConfig.trailingSlash,
|
|
1087
|
+
images: nextConfig.images,
|
|
1088
|
+
previewProps: prerenderManifest.preview,
|
|
1089
|
+
enableTainting: nextConfig.experimental.taint,
|
|
1090
|
+
htmlLimitedBots: nextConfig.htmlLimitedBots,
|
|
1091
|
+
reactMaxHeadersLength: nextConfig.reactMaxHeadersLength,
|
|
1092
|
+
multiZoneDraftMode,
|
|
1093
|
+
incrementalCache,
|
|
1094
|
+
cacheLifeProfiles: nextConfig.cacheLife,
|
|
1095
|
+
basePath: nextConfig.basePath,
|
|
1096
|
+
serverActions: nextConfig.experimental.serverActions,
|
|
1097
|
+
logServerFunctions: typeof nextConfig.logging === 'object' && Boolean(nextConfig.logging.serverFunctions),
|
|
1098
|
+
...isDebugStaticShell || isDebugDynamicAccesses || isDebugFallbackShell ? {
|
|
1099
|
+
isBuildTimePrerendering: true,
|
|
1100
|
+
supportsDynamicResponse: false,
|
|
1101
|
+
isStaticGeneration: true,
|
|
1102
|
+
isDebugDynamicAccesses: isDebugDynamicAccesses
|
|
1103
|
+
} : {},
|
|
1104
|
+
cacheComponents: Boolean(nextConfig.cacheComponents),
|
|
1105
|
+
experimental: {
|
|
1106
|
+
isRoutePPREnabled,
|
|
1107
|
+
expireTime: nextConfig.expireTime,
|
|
1108
|
+
staleTimes: nextConfig.experimental.staleTimes,
|
|
1109
|
+
dynamicOnHover: Boolean(nextConfig.experimental.dynamicOnHover),
|
|
1110
|
+
optimisticRouting: Boolean(nextConfig.experimental.optimisticRouting),
|
|
1111
|
+
inlineCss: Boolean(nextConfig.experimental.inlineCss),
|
|
1112
|
+
prefetchInlining: nextConfig.experimental.prefetchInlining ?? false,
|
|
1113
|
+
authInterrupts: Boolean(nextConfig.experimental.authInterrupts),
|
|
1114
|
+
cachedNavigations: Boolean(nextConfig.experimental.cachedNavigations),
|
|
1115
|
+
clientTraceMetadata: nextConfig.experimental.clientTraceMetadata || [],
|
|
1116
|
+
clientParamParsingOrigins: nextConfig.experimental.clientParamParsingOrigins,
|
|
1117
|
+
maxPostponedStateSizeBytes: (0,next_dist_shared_lib_size_limit__WEBPACK_IMPORTED_MODULE_25__.parseMaxPostponedStateSize)(nextConfig.experimental.maxPostponedStateSize)
|
|
1118
|
+
},
|
|
1119
|
+
waitUntil: ctx.waitUntil,
|
|
1120
|
+
onClose: (cb)=>{
|
|
1121
|
+
res.on('close', cb);
|
|
1122
|
+
},
|
|
1123
|
+
onAfterTaskError: ()=>{},
|
|
1124
|
+
onInstrumentationRequestError: (error, _request, errorContext, silenceLog)=>routeModule.onRequestError(req, error, errorContext, silenceLog, routerServerContext),
|
|
1125
|
+
err: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'invokeError')
|
|
1126
|
+
}
|
|
1127
|
+
};
|
|
1128
|
+
// When we're revalidating in the background, we should not allow dynamic
|
|
1129
|
+
// responses.
|
|
1130
|
+
if (forceStaticRender) {
|
|
1131
|
+
context.renderOpts.supportsDynamicResponse = false;
|
|
1132
|
+
}
|
|
1133
|
+
const result = await invokeRouteModule(span, context);
|
|
1134
|
+
const { metadata } = result;
|
|
1135
|
+
const { cacheControl, headers = {}, // Add any fetch tags that were on the page to the response headers.
|
|
1136
|
+
fetchTags: cacheTags, fetchMetrics } = metadata;
|
|
1137
|
+
if (cacheTags) {
|
|
1138
|
+
headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_CACHE_TAGS_HEADER] = cacheTags;
|
|
1139
|
+
}
|
|
1140
|
+
// Pull any fetch metrics from the render onto the request.
|
|
1141
|
+
;
|
|
1142
|
+
req.fetchMetrics = fetchMetrics;
|
|
1143
|
+
// we don't throw static to dynamic errors in dev as isSSG
|
|
1144
|
+
// is a best guess in dev since we don't have the prerender pass
|
|
1145
|
+
// to know whether the path is actually static or not
|
|
1146
|
+
if (isSSG && (cacheControl == null ? void 0 : cacheControl.revalidate) === 0 && !routeModule.isDev && !isRoutePPREnabled) {
|
|
1147
|
+
const staticBailoutInfo = metadata.staticBailoutInfo;
|
|
1148
|
+
const err = Object.defineProperty(new Error(`Page changed from static to dynamic at runtime ${resolvedPathname}${(staticBailoutInfo == null ? void 0 : staticBailoutInfo.description) ? `, reason: ${staticBailoutInfo.description}` : ``}` + `\nsee more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`), "__NEXT_ERROR_CODE", {
|
|
1149
|
+
value: "E132",
|
|
1150
|
+
enumerable: false,
|
|
1151
|
+
configurable: true
|
|
1152
|
+
});
|
|
1153
|
+
if (staticBailoutInfo == null ? void 0 : staticBailoutInfo.stack) {
|
|
1154
|
+
const stack = staticBailoutInfo.stack;
|
|
1155
|
+
err.stack = err.message + stack.substring(stack.indexOf('\n'));
|
|
1156
|
+
}
|
|
1157
|
+
throw err;
|
|
1158
|
+
}
|
|
1159
|
+
return {
|
|
1160
|
+
value: {
|
|
1161
|
+
kind: next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_PAGE,
|
|
1162
|
+
html: result,
|
|
1163
|
+
headers,
|
|
1164
|
+
rscData: metadata.flightData,
|
|
1165
|
+
postponed: metadata.postponed,
|
|
1166
|
+
status: metadata.statusCode,
|
|
1167
|
+
segmentData: metadata.segmentData
|
|
1168
|
+
},
|
|
1169
|
+
cacheControl
|
|
1170
|
+
};
|
|
1171
|
+
};
|
|
1172
|
+
const responseGenerator = async ({ hasResolved, previousCacheEntry: previousIncrementalCacheEntry, isRevalidating, span, forceStaticRender = false })=>{
|
|
1173
|
+
const isProduction = routeModule.isDev === false;
|
|
1174
|
+
const didRespond = hasResolved || res.writableEnded;
|
|
1175
|
+
// skip on-demand revalidate if cache is not present and
|
|
1176
|
+
// revalidate-if-generated is set
|
|
1177
|
+
if (isOnDemandRevalidate && revalidateOnlyGenerated && !previousIncrementalCacheEntry && !isMinimalMode) {
|
|
1178
|
+
if (routerServerContext == null ? void 0 : routerServerContext.render404) {
|
|
1179
|
+
await routerServerContext.render404(req, res);
|
|
1180
|
+
} else {
|
|
1181
|
+
res.statusCode = 404;
|
|
1182
|
+
res.end('This page could not be found');
|
|
1183
|
+
}
|
|
1184
|
+
return null;
|
|
1185
|
+
}
|
|
1186
|
+
let fallbackMode;
|
|
1187
|
+
if (prerenderInfo) {
|
|
1188
|
+
fallbackMode = (0,next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.parseFallbackField)(prerenderInfo.fallback);
|
|
1189
|
+
}
|
|
1190
|
+
if (nextConfig.experimental.partialFallbacks === true && (prerenderInfo == null ? void 0 : prerenderInfo.fallback) === null && !hasUnresolvedRootFallbackParams && remainingPrerenderableParams.length > 0) {
|
|
1191
|
+
// Generic source shells without unresolved root params don't have a
|
|
1192
|
+
// concrete fallback file of their own, so they're marked as blocking.
|
|
1193
|
+
// When we can complete the shell into a more specific
|
|
1194
|
+
// prerendered shell for this request, treat it like a prerender
|
|
1195
|
+
// fallback so we can serve that shell instead of blocking on the full
|
|
1196
|
+
// route. Root-param shells stay blocking, since unknown root branches
|
|
1197
|
+
// should not inherit a shell from another generated branch.
|
|
1198
|
+
fallbackMode = next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.FallbackMode.PRERENDER;
|
|
1199
|
+
}
|
|
1200
|
+
// When serving a HTML bot request, we want to serve a blocking render and
|
|
1201
|
+
// not the prerendered page. This ensures that the correct content is served
|
|
1202
|
+
// to the bot in the head.
|
|
1203
|
+
if (fallbackMode === next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.FallbackMode.PRERENDER && (0,next_dist_shared_lib_router_utils_is_bot__WEBPACK_IMPORTED_MODULE_16__.isBot)(userAgent)) {
|
|
1204
|
+
if (!isRoutePPREnabled || isHtmlBot) {
|
|
1205
|
+
fallbackMode = next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.FallbackMode.BLOCKING_STATIC_RENDER;
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
if ((previousIncrementalCacheEntry == null ? void 0 : previousIncrementalCacheEntry.isStale) === -1) {
|
|
1209
|
+
isOnDemandRevalidate = true;
|
|
1210
|
+
}
|
|
1211
|
+
// TODO: adapt for PPR
|
|
1212
|
+
// only allow on-demand revalidate for fallback: true/blocking
|
|
1213
|
+
// or for prerendered fallback: false paths
|
|
1214
|
+
if (isOnDemandRevalidate && (fallbackMode !== next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.FallbackMode.NOT_FOUND || previousIncrementalCacheEntry)) {
|
|
1215
|
+
fallbackMode = next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.FallbackMode.BLOCKING_STATIC_RENDER;
|
|
1216
|
+
}
|
|
1217
|
+
if (!isMinimalMode && fallbackMode !== next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.FallbackMode.BLOCKING_STATIC_RENDER && staticPathKey && !didRespond && !isDraftMode && pageIsDynamic && (isProduction || !isPrerendered)) {
|
|
1218
|
+
// if the page has dynamicParams: false and this pathname wasn't
|
|
1219
|
+
// prerendered trigger the no fallback handling
|
|
1220
|
+
if (// In development, fall through to render to handle missing
|
|
1221
|
+
// getStaticPaths.
|
|
1222
|
+
(isProduction || prerenderInfo) && // When fallback isn't present, abort this render so we 404
|
|
1223
|
+
fallbackMode === next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.FallbackMode.NOT_FOUND) {
|
|
1224
|
+
if (nextConfig.adapterPath) {
|
|
1225
|
+
return await render404();
|
|
1226
|
+
}
|
|
1227
|
+
throw new next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_24__.NoFallbackError();
|
|
1228
|
+
}
|
|
1229
|
+
// When cacheComponents is enabled, we can use the fallback
|
|
1230
|
+
// response if the request is not a dynamic RSC request because the
|
|
1231
|
+
// RSC data when this feature flag is enabled does not contain any
|
|
1232
|
+
// param references. Without this feature flag enabled, the RSC data
|
|
1233
|
+
// contains param references, and therefore we can't use the fallback.
|
|
1234
|
+
if (isRoutePPREnabled && (nextConfig.cacheComponents ? !isDynamicRSCRequest : !isRSCRequest)) {
|
|
1235
|
+
const cacheKey = isProduction && typeof (prerenderInfo == null ? void 0 : prerenderInfo.fallback) === 'string' ? prerenderInfo.fallback : normalizedSrcPage;
|
|
1236
|
+
const fallbackRouteParams = // In production or when debugging the static shell (e.g. instant
|
|
1237
|
+
// navigation testing), use the prerender manifest's fallback
|
|
1238
|
+
// route params which correctly identifies which params are
|
|
1239
|
+
// unknown. Note: in dev, this block is only entered for
|
|
1240
|
+
// non-prerendered URLs (guarded by the outer condition).
|
|
1241
|
+
(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).
|
|
1242
|
+
isDebugFallbackShell ? (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.getFallbackRouteParams)(normalizedSrcPage, routeModule) : null;
|
|
1243
|
+
// When rendering a debug static shell, override the fallback
|
|
1244
|
+
// params on the request so that the staged rendering correctly
|
|
1245
|
+
// defers params that are not statically known.
|
|
1246
|
+
if (isDebugStaticShell && fallbackRouteParams) {
|
|
1247
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.addRequestMeta)(req, 'fallbackParams', fallbackRouteParams);
|
|
1248
|
+
}
|
|
1249
|
+
// We use the response cache here to handle the revalidation and
|
|
1250
|
+
// management of the fallback shell.
|
|
1251
|
+
const fallbackResponse = await routeModule.handleResponse({
|
|
1252
|
+
cacheKey,
|
|
1253
|
+
req,
|
|
1254
|
+
nextConfig,
|
|
1255
|
+
routeKind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_PAGE,
|
|
1256
|
+
isFallback: true,
|
|
1257
|
+
prerenderManifest,
|
|
1258
|
+
isRoutePPREnabled,
|
|
1259
|
+
responseGenerator: async ()=>doRender({
|
|
1260
|
+
span,
|
|
1261
|
+
// We pass `undefined` as rendering a fallback isn't resumed
|
|
1262
|
+
// here.
|
|
1263
|
+
postponed: undefined,
|
|
1264
|
+
// Always serve the shell that matched this request
|
|
1265
|
+
// immediately. If there are still prerenderable params left,
|
|
1266
|
+
// the background path below will complete the shell into a
|
|
1267
|
+
// more specific cache entry for later requests.
|
|
1268
|
+
fallbackRouteParams,
|
|
1269
|
+
forceStaticRender: true
|
|
1425
1270
|
}),
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1271
|
+
waitUntil: ctx.waitUntil,
|
|
1272
|
+
isMinimalMode
|
|
1273
|
+
});
|
|
1274
|
+
// If the fallback response was set to null, then we should return null.
|
|
1275
|
+
if (fallbackResponse === null) return null;
|
|
1276
|
+
// Otherwise, if we did get a fallback response, we should return it.
|
|
1277
|
+
if (fallbackResponse) {
|
|
1278
|
+
if (!isMinimalMode && isRoutePPREnabled && // Match the build-time contract: only fallback shells that can
|
|
1279
|
+
// still be completed with prerenderable params should upgrade.
|
|
1280
|
+
remainingPrerenderableParams.length > 0 && nextConfig.experimental.partialFallbacks === true && ssgCacheKey && incrementalCache && !isOnDemandRevalidate && !isDebugFallbackShell && // The testing API relies on deterministic shell behavior, so
|
|
1281
|
+
// don't upgrade fallback shells in the background when it's
|
|
1282
|
+
// exposed.
|
|
1283
|
+
!exposeTestingApi && // Instant Navigation Testing API requests intentionally keep
|
|
1284
|
+
// the route in shell mode; don't upgrade these in background.
|
|
1285
|
+
!isInstantNavigationTest && // Avoid background revalidate during prefetches; this can trigger
|
|
1286
|
+
// static prerender errors that surface as 500s for the prefetch
|
|
1287
|
+
// request itself.
|
|
1288
|
+
!isPrefetchRSCRequest) {
|
|
1289
|
+
(0,next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_30__.scheduleOnNextTick)(async ()=>{
|
|
1290
|
+
const responseCache = routeModule.getResponseCache(req);
|
|
1291
|
+
try {
|
|
1292
|
+
// Only the params that were just specialized should be
|
|
1293
|
+
// removed from the fallback render. Any remaining fallback
|
|
1294
|
+
// params stay deferred so the revalidated result is a more
|
|
1295
|
+
// specific shell (e.g. `/prefix/c/[two]`), not a fully
|
|
1296
|
+
// concrete route (`/prefix/c/foo`).
|
|
1297
|
+
await responseCache.revalidate(ssgCacheKey, incrementalCache, isRoutePPREnabled, false, (c)=>{
|
|
1298
|
+
return doRender({
|
|
1299
|
+
span: c.span,
|
|
1300
|
+
postponed: undefined,
|
|
1301
|
+
fallbackRouteParams: remainingFallbackRouteParams.length > 0 ? (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.createOpaqueFallbackRouteParams)(remainingFallbackRouteParams) : null,
|
|
1302
|
+
forceStaticRender: true
|
|
1303
|
+
});
|
|
1304
|
+
}, // We don't have a prior entry for this param-specific shell.
|
|
1305
|
+
null, hasResolved, ctx.waitUntil);
|
|
1306
|
+
} catch (err) {
|
|
1307
|
+
console.error('Error revalidating the page in the background', err);
|
|
1308
|
+
}
|
|
1309
|
+
});
|
|
1442
1310
|
}
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
}
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
//
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
//
|
|
1464
|
-
|
|
1465
|
-
//
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1311
|
+
// Remove the cache control from the response to prevent it from being
|
|
1312
|
+
// used in the surrounding cache.
|
|
1313
|
+
delete fallbackResponse.cacheControl;
|
|
1314
|
+
return fallbackResponse;
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
1317
|
+
}
|
|
1318
|
+
// Only requests that aren't revalidating can be resumed. If we have the
|
|
1319
|
+
// minimal postponed data, then we should resume the render with it.
|
|
1320
|
+
let postponed = !isOnDemandRevalidate && !isRevalidating && minimalPostponed ? minimalPostponed : undefined;
|
|
1321
|
+
// If this is a dynamic RSC request or a server action request, we should
|
|
1322
|
+
// use the postponed data from the static render (if available). This
|
|
1323
|
+
// ensures that we can utilize the resume data cache (RDC) from the static
|
|
1324
|
+
// render to ensure that the data is consistent between the static and
|
|
1325
|
+
// dynamic renders (for navigations) or when re-rendering after a server
|
|
1326
|
+
// action.
|
|
1327
|
+
if (// Only enable RDC for Navigations if the feature is enabled.
|
|
1328
|
+
supportsRDCForNavigations && "nodejs" !== 'edge' && !isMinimalMode && incrementalCache && // Include both dynamic RSC requests (navigations) and server actions
|
|
1329
|
+
(isDynamicRSCRequest || isPossibleServerAction) && // We don't typically trigger an on-demand revalidation for dynamic RSC
|
|
1330
|
+
// requests, as we're typically revalidating the page in the background
|
|
1331
|
+
// instead. However, if the cache entry is stale, we should trigger a
|
|
1332
|
+
// background revalidation on dynamic RSC requests. This prevents us
|
|
1333
|
+
// from entering an infinite loop of revalidations.
|
|
1334
|
+
!forceStaticRender) {
|
|
1335
|
+
const incrementalCacheEntry = await incrementalCache.get(resolvedPathname, {
|
|
1336
|
+
kind: next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.IncrementalCacheKind.APP_PAGE,
|
|
1337
|
+
isRoutePPREnabled: true,
|
|
1338
|
+
isFallback: false
|
|
1339
|
+
});
|
|
1340
|
+
// If the cache entry is found, we should use the postponed data from
|
|
1341
|
+
// the cache.
|
|
1342
|
+
if (incrementalCacheEntry && incrementalCacheEntry.value && incrementalCacheEntry.value.kind === next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_PAGE) {
|
|
1343
|
+
// CRITICAL: we're assigning the postponed data from the cache entry
|
|
1344
|
+
// here as we're using the RDC to resume the render.
|
|
1345
|
+
postponed = incrementalCacheEntry.value.postponed;
|
|
1346
|
+
// If the cache entry is stale, we should trigger a background
|
|
1347
|
+
// revalidation so that subsequent requests will get a fresh response.
|
|
1348
|
+
if (incrementalCacheEntry && // We want to trigger this flow if the cache entry is stale and if
|
|
1349
|
+
// the requested revalidation flow is either foreground or
|
|
1350
|
+
// background.
|
|
1351
|
+
(incrementalCacheEntry.isStale === -1 || incrementalCacheEntry.isStale === true)) {
|
|
1352
|
+
// We want to schedule this on the next tick to ensure that the
|
|
1353
|
+
// render is not blocked on it.
|
|
1354
|
+
(0,next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_30__.scheduleOnNextTick)(async ()=>{
|
|
1355
|
+
const responseCache = routeModule.getResponseCache(req);
|
|
1356
|
+
try {
|
|
1357
|
+
await responseCache.revalidate(resolvedPathname, incrementalCache, isRoutePPREnabled, false, (c)=>responseGenerator({
|
|
1358
|
+
...c,
|
|
1359
|
+
// CRITICAL: we need to set this to true as we're
|
|
1360
|
+
// revalidating in the background and typically this dynamic
|
|
1361
|
+
// RSC request is not treated as static.
|
|
1362
|
+
forceStaticRender: true
|
|
1363
|
+
}), // CRITICAL: we need to pass null here because passing the
|
|
1364
|
+
// previous cache entry here (which is stale) will switch on
|
|
1365
|
+
// isOnDemandRevalidate and break the prerendering.
|
|
1366
|
+
null, hasResolved, ctx.waitUntil);
|
|
1367
|
+
} catch (err) {
|
|
1368
|
+
console.error('Error revalidating the page in the background', err);
|
|
1369
|
+
}
|
|
1370
|
+
});
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
}
|
|
1374
|
+
// When we're in minimal mode, if we're trying to debug the static shell,
|
|
1375
|
+
// we should just return nothing instead of resuming the dynamic render.
|
|
1376
|
+
if ((isDebugStaticShell || isDebugDynamicAccesses) && typeof postponed !== 'undefined') {
|
|
1377
|
+
return {
|
|
1378
|
+
cacheControl: {
|
|
1379
|
+
revalidate: 1,
|
|
1380
|
+
expire: undefined
|
|
1381
|
+
},
|
|
1382
|
+
value: {
|
|
1383
|
+
kind: next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.PAGES,
|
|
1384
|
+
html: next_dist_server_render_result__WEBPACK_IMPORTED_MODULE_19__["default"].EMPTY,
|
|
1385
|
+
pageData: {},
|
|
1386
|
+
headers: undefined,
|
|
1387
|
+
status: undefined
|
|
1388
|
+
}
|
|
1389
|
+
};
|
|
1390
|
+
}
|
|
1391
|
+
const fallbackRouteParams = // In production or when debugging the static shell for a
|
|
1392
|
+
// non-prerendered URL, use the prerender manifest's fallback route
|
|
1393
|
+
// params which correctly identifies which params are unknown.
|
|
1394
|
+
(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;
|
|
1395
|
+
// For staged dynamic rendering (Cached Navigations) and debug static
|
|
1396
|
+
// shell rendering, pass the fallback params via request meta so the
|
|
1397
|
+
// RequestStore knows which params to defer. We don't pass them as
|
|
1398
|
+
// fallbackRouteParams because that would replace actual param values
|
|
1399
|
+
// with opaque placeholders during segment resolution.
|
|
1400
|
+
if ((isProduction || isDebugStaticShell) && nextConfig.cacheComponents && !isPrerendered && (prerenderInfo == null ? void 0 : prerenderInfo.fallbackRouteParams)) {
|
|
1401
|
+
const fallbackParams = (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.createOpaqueFallbackRouteParams)(prerenderInfo.fallbackRouteParams);
|
|
1402
|
+
if (fallbackParams) {
|
|
1403
|
+
(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.addRequestMeta)(req, 'fallbackParams', fallbackParams);
|
|
1404
|
+
}
|
|
1405
|
+
}
|
|
1406
|
+
// Perform the render.
|
|
1407
|
+
return doRender({
|
|
1408
|
+
span,
|
|
1409
|
+
postponed,
|
|
1410
|
+
fallbackRouteParams,
|
|
1411
|
+
forceStaticRender
|
|
1412
|
+
});
|
|
1504
1413
|
};
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1414
|
+
const handleResponse = async (span)=>{
|
|
1415
|
+
var _cacheEntry_value, _cachedData_headers;
|
|
1416
|
+
const cacheEntry = await routeModule.handleResponse({
|
|
1417
|
+
cacheKey: ssgCacheKey,
|
|
1418
|
+
responseGenerator: (c)=>responseGenerator({
|
|
1419
|
+
span,
|
|
1420
|
+
...c
|
|
1421
|
+
}),
|
|
1422
|
+
routeKind: next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.APP_PAGE,
|
|
1423
|
+
isOnDemandRevalidate,
|
|
1424
|
+
isRoutePPREnabled,
|
|
1425
|
+
req,
|
|
1426
|
+
nextConfig,
|
|
1427
|
+
prerenderManifest,
|
|
1428
|
+
waitUntil: ctx.waitUntil,
|
|
1429
|
+
isMinimalMode
|
|
1430
|
+
});
|
|
1431
|
+
if (isDraftMode) {
|
|
1432
|
+
res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');
|
|
1433
|
+
}
|
|
1434
|
+
// In dev, we should not cache pages for any reason.
|
|
1435
|
+
if (routeModule.isDev) {
|
|
1436
|
+
res.setHeader('Cache-Control', 'no-cache, must-revalidate');
|
|
1437
|
+
}
|
|
1438
|
+
if (!cacheEntry) {
|
|
1439
|
+
if (ssgCacheKey) {
|
|
1440
|
+
// A cache entry might not be generated if a response is written
|
|
1441
|
+
// in `getInitialProps` or `getServerSideProps`, but those shouldn't
|
|
1442
|
+
// have a cache key. If we do have a cache key but we don't end up
|
|
1443
|
+
// with a cache entry, then either Next.js or the application has a
|
|
1444
|
+
// bug that needs fixing.
|
|
1445
|
+
throw Object.defineProperty(new Error('invariant: cache entry required but not generated'), "__NEXT_ERROR_CODE", {
|
|
1446
|
+
value: "E62",
|
|
1447
|
+
enumerable: false,
|
|
1448
|
+
configurable: true
|
|
1449
|
+
});
|
|
1450
|
+
}
|
|
1451
|
+
return null;
|
|
1452
|
+
}
|
|
1453
|
+
if (((_cacheEntry_value = cacheEntry.value) == null ? void 0 : _cacheEntry_value.kind) !== next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_PAGE) {
|
|
1454
|
+
var _cacheEntry_value1;
|
|
1455
|
+
throw Object.defineProperty(new Error(`Invariant app-page handler received invalid cache entry ${(_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`), "__NEXT_ERROR_CODE", {
|
|
1456
|
+
value: "E707",
|
|
1457
|
+
enumerable: false,
|
|
1458
|
+
configurable: true
|
|
1459
|
+
});
|
|
1460
|
+
}
|
|
1461
|
+
const didPostpone = typeof cacheEntry.value.postponed === 'string';
|
|
1462
|
+
// Set the build ID header for RSC navigation requests when deploymentId is configured. This
|
|
1463
|
+
// corresponds with maybeAppendBuildIdToRSCPayload in app-render.tsx which omits the build ID
|
|
1464
|
+
// from the RSC payload when deploymentId is set (relying on this header instead). Server
|
|
1465
|
+
// actions are excluded here because action redirect responses get the deployment ID header
|
|
1466
|
+
// from the pre-fetched redirect target (via createRedirectRenderResult in action-handler.ts
|
|
1467
|
+
// which copies headers from the internal RSC fetch).
|
|
1468
|
+
// For static prerenders served from CDN, routes-manifest.json adds a header.
|
|
1469
|
+
if (isRSCRequest && !isPossibleServerAction && deploymentId) {
|
|
1470
|
+
res.setHeader(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_NAV_DEPLOYMENT_ID_HEADER, deploymentId);
|
|
1471
|
+
}
|
|
1472
|
+
if (isSSG && // We don't want to send a cache header for requests that contain dynamic
|
|
1473
|
+
// data. If this is a Dynamic RSC request or wasn't a Prefetch RSC
|
|
1474
|
+
// request, then we should set the cache header.
|
|
1475
|
+
!isDynamicRSCRequest && (!didPostpone || isPrefetchRSCRequest)) {
|
|
1476
|
+
if (!isMinimalMode) {
|
|
1477
|
+
// set x-nextjs-cache header to match the header
|
|
1478
|
+
// we set for the image-optimizer
|
|
1479
|
+
res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');
|
|
1480
|
+
}
|
|
1481
|
+
// Set a header used by the client router to signal the response is static
|
|
1482
|
+
// and should respect the `static` cache staleTime value.
|
|
1483
|
+
res.setHeader(next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.NEXT_IS_PRERENDER_HEADER, '1');
|
|
1484
|
+
}
|
|
1485
|
+
const { value: cachedData } = cacheEntry;
|
|
1486
|
+
// Coerce the cache control parameter from the render.
|
|
1487
|
+
let cacheControl;
|
|
1488
|
+
// If this is a resume request in minimal mode it is streamed with dynamic
|
|
1489
|
+
// content and should not be cached.
|
|
1490
|
+
if (minimalPostponed) {
|
|
1491
|
+
cacheControl = {
|
|
1492
|
+
revalidate: 0,
|
|
1493
|
+
expire: undefined
|
|
1494
|
+
};
|
|
1495
|
+
} else if (isDynamicRSCRequest) {
|
|
1496
|
+
cacheControl = {
|
|
1497
|
+
revalidate: 0,
|
|
1498
|
+
expire: undefined
|
|
1499
|
+
};
|
|
1500
|
+
} else if (!routeModule.isDev) {
|
|
1501
|
+
// If this is a preview mode request, we shouldn't cache it
|
|
1502
|
+
if (isDraftMode) {
|
|
1503
|
+
cacheControl = {
|
|
1504
|
+
revalidate: 0,
|
|
1505
|
+
expire: undefined
|
|
1506
|
+
};
|
|
1507
|
+
} else if (!isSSG) {
|
|
1508
|
+
if (!res.getHeader('Cache-Control')) {
|
|
1509
|
+
cacheControl = {
|
|
1510
|
+
revalidate: 0,
|
|
1511
|
+
expire: undefined
|
|
1512
|
+
};
|
|
1513
|
+
}
|
|
1514
|
+
} else if (cacheEntry.cacheControl) {
|
|
1515
|
+
// If the cache entry has a cache control with a revalidate value that's
|
|
1516
|
+
// a number, use it.
|
|
1517
|
+
if (typeof cacheEntry.cacheControl.revalidate === 'number') {
|
|
1518
|
+
var _cacheEntry_cacheControl;
|
|
1519
|
+
if (cacheEntry.cacheControl.revalidate < 1) {
|
|
1520
|
+
throw Object.defineProperty(new Error(`Invalid revalidate configuration provided: ${cacheEntry.cacheControl.revalidate} < 1`), "__NEXT_ERROR_CODE", {
|
|
1521
|
+
value: "E22",
|
|
1522
|
+
enumerable: false,
|
|
1523
|
+
configurable: true
|
|
1524
|
+
});
|
|
1525
|
+
}
|
|
1526
|
+
cacheControl = {
|
|
1527
|
+
revalidate: cacheEntry.cacheControl.revalidate,
|
|
1528
|
+
expire: ((_cacheEntry_cacheControl = cacheEntry.cacheControl) == null ? void 0 : _cacheEntry_cacheControl.expire) ?? nextConfig.expireTime
|
|
1529
|
+
};
|
|
1530
|
+
} else {
|
|
1531
|
+
cacheControl = {
|
|
1532
|
+
revalidate: next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.CACHE_ONE_YEAR_SECONDS,
|
|
1533
|
+
expire: undefined
|
|
1534
|
+
};
|
|
1535
|
+
}
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1538
|
+
cacheEntry.cacheControl = cacheControl;
|
|
1539
|
+
if (typeof segmentPrefetchHeader === 'string' && (cachedData == null ? void 0 : cachedData.kind) === next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_PAGE && cachedData.segmentData) {
|
|
1540
|
+
var _cachedData_headers1;
|
|
1541
|
+
// This is a prefetch request issued by the client Segment Cache. These
|
|
1542
|
+
// should never reach the application layer (lambda). We should either
|
|
1543
|
+
// respond from the cache (HIT) or respond with 204 No Content (MISS).
|
|
1544
|
+
// Set a header to indicate that PPR is enabled for this route. This
|
|
1545
|
+
// lets the client distinguish between a regular cache miss and a cache
|
|
1546
|
+
// miss due to PPR being disabled. In other contexts this header is used
|
|
1547
|
+
// to indicate that the response contains dynamic data, but here we're
|
|
1548
|
+
// only using it to indicate that the feature is enabled — the segment
|
|
1549
|
+
// response itself contains whether the data is dynamic.
|
|
1550
|
+
res.setHeader(next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.NEXT_DID_POSTPONE_HEADER, '2');
|
|
1551
|
+
// Add the cache tags header to the response if it exists and we're in
|
|
1552
|
+
// minimal mode while rendering a static page.
|
|
1553
|
+
const tags = (_cachedData_headers1 = cachedData.headers) == null ? void 0 : _cachedData_headers1[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_CACHE_TAGS_HEADER];
|
|
1554
|
+
if (isMinimalMode && isSSG && tags && typeof tags === 'string') {
|
|
1555
|
+
res.setHeader(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_CACHE_TAGS_HEADER, tags);
|
|
1556
|
+
}
|
|
1557
|
+
const matchedSegment = cachedData.segmentData.get(segmentPrefetchHeader);
|
|
1558
|
+
if (matchedSegment !== undefined) {
|
|
1559
|
+
// Cache hit
|
|
1560
|
+
return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
|
|
1561
|
+
req,
|
|
1562
|
+
res,
|
|
1563
|
+
generateEtags: nextConfig.generateEtags,
|
|
1564
|
+
poweredByHeader: nextConfig.poweredByHeader,
|
|
1565
|
+
result: next_dist_server_render_result__WEBPACK_IMPORTED_MODULE_19__["default"].fromStatic(matchedSegment, next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.RSC_CONTENT_TYPE_HEADER),
|
|
1566
|
+
cacheControl: cacheEntry.cacheControl
|
|
1567
|
+
});
|
|
1568
|
+
}
|
|
1569
|
+
// Cache miss. Either a cache entry for this route has not been generated
|
|
1570
|
+
// (which technically should not be possible when PPR is enabled, because
|
|
1571
|
+
// at a minimum there should always be a fallback entry) or there's no
|
|
1572
|
+
// match for the requested segment. Respond with a 204 No Content. We
|
|
1573
|
+
// don't bother to respond with 404, because these requests are only
|
|
1574
|
+
// issued as part of a prefetch.
|
|
1575
|
+
res.statusCode = 204;
|
|
1576
|
+
return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
|
|
1577
|
+
req,
|
|
1578
|
+
res,
|
|
1579
|
+
generateEtags: nextConfig.generateEtags,
|
|
1580
|
+
poweredByHeader: nextConfig.poweredByHeader,
|
|
1581
|
+
result: next_dist_server_render_result__WEBPACK_IMPORTED_MODULE_19__["default"].EMPTY,
|
|
1582
|
+
cacheControl: cacheEntry.cacheControl
|
|
1583
|
+
});
|
|
1584
|
+
}
|
|
1585
|
+
// If there's a callback for `onCacheEntry`, call it with the cache entry
|
|
1586
|
+
// and the revalidate options. If we support RDC for Navigations, we
|
|
1587
|
+
// prefer the `onCacheEntryV2` callback. Once RDC for Navigations is the
|
|
1588
|
+
// default, we can remove the fallback to `onCacheEntry` as
|
|
1589
|
+
// `onCacheEntryV2` is now fully supported.
|
|
1590
|
+
const onCacheEntry = supportsRDCForNavigations ? (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'onCacheEntryV2') ?? (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'onCacheEntry') : (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'onCacheEntry');
|
|
1591
|
+
if (onCacheEntry) {
|
|
1592
|
+
const finished = await onCacheEntry(cacheEntry, {
|
|
1593
|
+
url: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'initURL') ?? req.url
|
|
1594
|
+
});
|
|
1595
|
+
if (finished) return null;
|
|
1596
|
+
}
|
|
1597
|
+
if (cachedData.headers) {
|
|
1598
|
+
const headers = {
|
|
1599
|
+
...cachedData.headers
|
|
1600
|
+
};
|
|
1601
|
+
if (!isMinimalMode || !isSSG) {
|
|
1602
|
+
delete headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_CACHE_TAGS_HEADER];
|
|
1603
|
+
}
|
|
1604
|
+
for (let [key, value] of Object.entries(headers)){
|
|
1605
|
+
if (typeof value === 'undefined') continue;
|
|
1606
|
+
if (Array.isArray(value)) {
|
|
1607
|
+
for (const v of value){
|
|
1608
|
+
res.appendHeader(key, v);
|
|
1609
|
+
}
|
|
1610
|
+
} else if (typeof value === 'number') {
|
|
1611
|
+
value = value.toString();
|
|
1612
|
+
res.appendHeader(key, value);
|
|
1613
|
+
} else {
|
|
1614
|
+
res.appendHeader(key, value);
|
|
1615
|
+
}
|
|
1616
|
+
}
|
|
1617
|
+
}
|
|
1618
|
+
// Add the cache tags header to the response if it exists and we're in
|
|
1619
|
+
// minimal mode while rendering a static page.
|
|
1620
|
+
const tags = (_cachedData_headers = cachedData.headers) == null ? void 0 : _cachedData_headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_CACHE_TAGS_HEADER];
|
|
1621
|
+
if (isMinimalMode && isSSG && tags && typeof tags === 'string') {
|
|
1622
|
+
res.setHeader(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_CACHE_TAGS_HEADER, tags);
|
|
1623
|
+
}
|
|
1624
|
+
// If the request is a data request, then we shouldn't set the status code
|
|
1625
|
+
// from the response because it should always be 200. This should be gated
|
|
1626
|
+
// behind the experimental PPR flag.
|
|
1627
|
+
if (cachedData.status && (!isRSCRequest || !isRoutePPREnabled)) {
|
|
1628
|
+
res.statusCode = cachedData.status;
|
|
1629
|
+
}
|
|
1630
|
+
// Redirect information is encoded in RSC payload, so we don't need to use redirect status codes
|
|
1631
|
+
if (!isMinimalMode && cachedData.status && next_dist_client_components_redirect_status_code__WEBPACK_IMPORTED_MODULE_28__.RedirectStatusCode[cachedData.status] && isRSCRequest) {
|
|
1632
|
+
res.statusCode = 200;
|
|
1633
|
+
}
|
|
1634
|
+
// Mark that the request did postpone.
|
|
1635
|
+
if (didPostpone && !isDynamicRSCRequest) {
|
|
1636
|
+
res.setHeader(next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.NEXT_DID_POSTPONE_HEADER, '1');
|
|
1637
|
+
}
|
|
1638
|
+
// we don't go through this block when preview mode is true
|
|
1639
|
+
// as preview mode is a dynamic request (bypasses cache) and doesn't
|
|
1640
|
+
// generate both HTML and payloads in the same request so continue to just
|
|
1641
|
+
// return the generated payload
|
|
1642
|
+
if (isRSCRequest && !isDraftMode) {
|
|
1643
|
+
// If this is a dynamic RSC request, then stream the response.
|
|
1644
|
+
if (typeof cachedData.rscData === 'undefined') {
|
|
1645
|
+
// If the response is not an RSC response, then we can't serve it.
|
|
1646
|
+
if (cachedData.html.contentType !== next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.RSC_CONTENT_TYPE_HEADER) {
|
|
1647
|
+
if (nextConfig.cacheComponents) {
|
|
1648
|
+
res.statusCode = 404;
|
|
1649
|
+
return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
|
|
1650
|
+
req,
|
|
1651
|
+
res,
|
|
1652
|
+
generateEtags: nextConfig.generateEtags,
|
|
1653
|
+
poweredByHeader: nextConfig.poweredByHeader,
|
|
1654
|
+
result: next_dist_server_render_result__WEBPACK_IMPORTED_MODULE_19__["default"].EMPTY,
|
|
1655
|
+
cacheControl: cacheEntry.cacheControl
|
|
1656
|
+
});
|
|
1657
|
+
} else {
|
|
1658
|
+
// Otherwise this case is not expected.
|
|
1659
|
+
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", {
|
|
1660
|
+
value: "E789",
|
|
1661
|
+
enumerable: false,
|
|
1662
|
+
configurable: true
|
|
1663
|
+
});
|
|
1664
|
+
}
|
|
1665
|
+
}
|
|
1666
|
+
return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
|
|
1667
|
+
req,
|
|
1668
|
+
res,
|
|
1669
|
+
generateEtags: nextConfig.generateEtags,
|
|
1670
|
+
poweredByHeader: nextConfig.poweredByHeader,
|
|
1671
|
+
result: cachedData.html,
|
|
1672
|
+
cacheControl: cacheEntry.cacheControl
|
|
1673
|
+
});
|
|
1674
|
+
}
|
|
1675
|
+
// As this isn't a prefetch request, we should serve the static flight
|
|
1676
|
+
// data.
|
|
1677
|
+
return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
|
|
1678
|
+
req,
|
|
1679
|
+
res,
|
|
1680
|
+
generateEtags: nextConfig.generateEtags,
|
|
1681
|
+
poweredByHeader: nextConfig.poweredByHeader,
|
|
1682
|
+
result: next_dist_server_render_result__WEBPACK_IMPORTED_MODULE_19__["default"].fromStatic(cachedData.rscData, next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.RSC_CONTENT_TYPE_HEADER),
|
|
1683
|
+
cacheControl: cacheEntry.cacheControl
|
|
1684
|
+
});
|
|
1685
|
+
}
|
|
1686
|
+
// This is a request for HTML data.
|
|
1687
|
+
const body = cachedData.html;
|
|
1688
|
+
// Instant Navigation Testing API: serve the static shell with an
|
|
1689
|
+
// injected script that sets self.__next_instant_test and kicks off a
|
|
1690
|
+
// static RSC fetch for hydration. The transform stream also appends
|
|
1691
|
+
// closing </body></html> tags so the browser can parse the full document.
|
|
1692
|
+
// In dev mode, also inject self.__next_r so the HMR WebSocket and
|
|
1693
|
+
// debug channel can initialize.
|
|
1694
|
+
if (isInstantNavigationTest && isDebugStaticShell) {
|
|
1695
|
+
const instantTestRequestId = routeModule.isDev === true ? crypto.randomUUID() : null;
|
|
1696
|
+
body.pipeThrough((0,next_dist_server_stream_utils_node_web_streams_helper__WEBPACK_IMPORTED_MODULE_22__.createInstantTestScriptInsertionTransformStream)(instantTestRequestId));
|
|
1697
|
+
return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
|
|
1698
|
+
req,
|
|
1699
|
+
res,
|
|
1700
|
+
generateEtags: nextConfig.generateEtags,
|
|
1701
|
+
poweredByHeader: nextConfig.poweredByHeader,
|
|
1702
|
+
result: body,
|
|
1703
|
+
cacheControl: {
|
|
1704
|
+
revalidate: 0,
|
|
1705
|
+
expire: undefined
|
|
1706
|
+
}
|
|
1707
|
+
});
|
|
1708
|
+
}
|
|
1709
|
+
// If there's no postponed state, we should just serve the HTML. This
|
|
1710
|
+
// should also be the case for a resume request because it's completed
|
|
1711
|
+
// as a server render (rather than a static render).
|
|
1712
|
+
if (!didPostpone || isMinimalMode || isRSCRequest) {
|
|
1713
|
+
// If we're in test mode, we should add a sentinel chunk to the response
|
|
1714
|
+
// that's between the static and dynamic parts so we can compare the
|
|
1715
|
+
// chunks and add assertions.
|
|
1716
|
+
if (false) {}
|
|
1717
|
+
return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
|
|
1718
|
+
req,
|
|
1719
|
+
res,
|
|
1720
|
+
generateEtags: nextConfig.generateEtags,
|
|
1721
|
+
poweredByHeader: nextConfig.poweredByHeader,
|
|
1722
|
+
result: body,
|
|
1723
|
+
cacheControl: cacheEntry.cacheControl
|
|
1724
|
+
});
|
|
1725
|
+
}
|
|
1726
|
+
// If we're debugging the static shell or the dynamic API accesses, we
|
|
1727
|
+
// should just serve the HTML without resuming the render. The returned
|
|
1728
|
+
// HTML will be the static shell so all the Dynamic API's will be used
|
|
1729
|
+
// during static generation.
|
|
1730
|
+
if (isDebugStaticShell || isDebugDynamicAccesses) {
|
|
1731
|
+
// Since we're not resuming the render, we need to at least add the
|
|
1732
|
+
// closing body and html tags to create valid HTML.
|
|
1733
|
+
body.push(new ReadableStream({
|
|
1734
|
+
start (controller) {
|
|
1735
|
+
controller.enqueue(next_dist_server_stream_utils_encoded_tags__WEBPACK_IMPORTED_MODULE_21__.ENCODED_TAGS.CLOSED.BODY_AND_HTML);
|
|
1736
|
+
controller.close();
|
|
1737
|
+
}
|
|
1738
|
+
}));
|
|
1739
|
+
return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
|
|
1740
|
+
req,
|
|
1741
|
+
res,
|
|
1742
|
+
generateEtags: nextConfig.generateEtags,
|
|
1743
|
+
poweredByHeader: nextConfig.poweredByHeader,
|
|
1744
|
+
result: body,
|
|
1745
|
+
cacheControl: {
|
|
1746
|
+
revalidate: 0,
|
|
1747
|
+
expire: undefined
|
|
1748
|
+
}
|
|
1749
|
+
});
|
|
1750
|
+
}
|
|
1751
|
+
// If we're in test mode, we should add a sentinel chunk to the response
|
|
1752
|
+
// that's between the static and dynamic parts so we can compare the
|
|
1753
|
+
// chunks and add assertions.
|
|
1754
|
+
if (false) {}
|
|
1755
|
+
// This request has postponed, so let's create a new transformer that the
|
|
1756
|
+
// dynamic data can pipe to that will attach the dynamic data to the end
|
|
1757
|
+
// of the response.
|
|
1758
|
+
const transformer = new TransformStream();
|
|
1759
|
+
body.push(transformer.readable);
|
|
1760
|
+
// Perform the render again, but this time, provide the postponed state.
|
|
1761
|
+
// We don't await because we want the result to start streaming now, and
|
|
1762
|
+
// we've already chained the transformer's readable to the render result.
|
|
1763
|
+
doRender({
|
|
1764
|
+
span,
|
|
1765
|
+
postponed: cachedData.postponed,
|
|
1766
|
+
// This is a resume render, not a fallback render, so we don't need to
|
|
1767
|
+
// set this.
|
|
1768
|
+
fallbackRouteParams: null,
|
|
1769
|
+
forceStaticRender: false
|
|
1770
|
+
}).then(async (result)=>{
|
|
1771
|
+
var _result_value;
|
|
1772
|
+
if (!result) {
|
|
1773
|
+
throw Object.defineProperty(new Error('Invariant: expected a result to be returned'), "__NEXT_ERROR_CODE", {
|
|
1774
|
+
value: "E463",
|
|
1775
|
+
enumerable: false,
|
|
1776
|
+
configurable: true
|
|
1777
|
+
});
|
|
1778
|
+
}
|
|
1779
|
+
if (((_result_value = result.value) == null ? void 0 : _result_value.kind) !== next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__.CachedRouteKind.APP_PAGE) {
|
|
1780
|
+
var _result_value1;
|
|
1781
|
+
throw Object.defineProperty(new Error(`Invariant: expected a page response, got ${(_result_value1 = result.value) == null ? void 0 : _result_value1.kind}`), "__NEXT_ERROR_CODE", {
|
|
1782
|
+
value: "E305",
|
|
1783
|
+
enumerable: false,
|
|
1784
|
+
configurable: true
|
|
1785
|
+
});
|
|
1786
|
+
}
|
|
1787
|
+
// Pipe the resume result to the transformer.
|
|
1788
|
+
await result.value.html.pipeTo(transformer.writable);
|
|
1789
|
+
}).catch((err)=>{
|
|
1790
|
+
// An error occurred during piping or preparing the render, abort
|
|
1791
|
+
// the transformers writer so we can terminate the stream.
|
|
1792
|
+
transformer.writable.abort(err).catch((e)=>{
|
|
1793
|
+
console.error("couldn't abort transformer", e);
|
|
1794
|
+
});
|
|
1795
|
+
});
|
|
1796
|
+
return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
|
|
1797
|
+
req,
|
|
1798
|
+
res,
|
|
1799
|
+
generateEtags: nextConfig.generateEtags,
|
|
1800
|
+
poweredByHeader: nextConfig.poweredByHeader,
|
|
1801
|
+
result: body,
|
|
1802
|
+
// We don't want to cache the response if it has postponed data because
|
|
1803
|
+
// the response being sent to the client it's dynamic parts are streamed
|
|
1804
|
+
// to the client on the same request.
|
|
1805
|
+
cacheControl: {
|
|
1806
|
+
revalidate: 0,
|
|
1807
|
+
expire: undefined
|
|
1808
|
+
}
|
|
1809
|
+
});
|
|
1523
1810
|
};
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1811
|
+
// TODO: activeSpan code path is for when wrapped by
|
|
1812
|
+
// next-server can be removed when this is no longer used
|
|
1813
|
+
if (isWrappedByNextServer && activeSpan) {
|
|
1814
|
+
await handleResponse(activeSpan);
|
|
1815
|
+
} else {
|
|
1816
|
+
parentSpan = tracer.getActiveScopeSpan();
|
|
1817
|
+
return await tracer.withPropagatedContext(req.headers, ()=>tracer.trace(next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_5__.BaseServerSpan.handleRequest, {
|
|
1818
|
+
spanName: `${method} ${srcPage}`,
|
|
1819
|
+
kind: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_3__.SpanKind.SERVER,
|
|
1820
|
+
attributes: {
|
|
1821
|
+
'http.method': method,
|
|
1822
|
+
'http.target': req.url
|
|
1823
|
+
}
|
|
1824
|
+
}, handleResponse), undefined, !isWrappedByNextServer);
|
|
1825
|
+
}
|
|
1826
|
+
} catch (err) {
|
|
1827
|
+
if (!(err instanceof next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_24__.NoFallbackError)) {
|
|
1828
|
+
const silenceLog = false;
|
|
1829
|
+
await routeModule.onRequestError(req, err, {
|
|
1830
|
+
routerKind: 'App Router',
|
|
1831
|
+
routePath: srcPage,
|
|
1832
|
+
routeType: 'render',
|
|
1833
|
+
revalidateReason: (0,next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_2__/* .getRevalidateReason */ .c)({
|
|
1834
|
+
isStaticGeneration: isSSG,
|
|
1835
|
+
isOnDemandRevalidate
|
|
1836
|
+
})
|
|
1837
|
+
}, silenceLog, routerServerContext);
|
|
1838
|
+
}
|
|
1839
|
+
// rethrow so that we can handle serving error page
|
|
1840
|
+
throw err;
|
|
1841
|
+
}
|
|
1527
1842
|
}
|
|
1843
|
+
// TODO: omit this from production builds, only test builds should include it
|
|
1528
1844
|
/**
|
|
1529
|
-
*
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
canAdmin: false,
|
|
1538
|
-
canManageUsers: false
|
|
1539
|
-
};
|
|
1845
|
+
* Creates a readable stream that emits a PPR boundary sentinel.
|
|
1846
|
+
*
|
|
1847
|
+
* @returns A readable stream that emits a PPR boundary sentinel.
|
|
1848
|
+
*/ function createPPRBoundarySentinel() {
|
|
1849
|
+
return new ReadableStream({
|
|
1850
|
+
start (controller) {
|
|
1851
|
+
controller.enqueue(new TextEncoder().encode('<!-- PPR_BOUNDARY_SENTINEL -->'));
|
|
1852
|
+
controller.close();
|
|
1540
1853
|
}
|
|
1541
|
-
|
|
1542
|
-
return {
|
|
1543
|
-
canRead: true,
|
|
1544
|
-
canWrite: true,
|
|
1545
|
-
canAdmin: false,
|
|
1546
|
-
canManageUsers: false
|
|
1547
|
-
};
|
|
1548
|
-
}, [
|
|
1549
|
-
backendUser,
|
|
1550
|
-
isFullyAuthenticated
|
|
1551
|
-
]);
|
|
1552
|
-
}
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
/***/ }),
|
|
1556
|
-
|
|
1557
|
-
/***/ 32037:
|
|
1558
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1559
|
-
|
|
1560
|
-
"use strict";
|
|
1561
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1562
|
-
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1563
|
-
/* harmony export */ });
|
|
1564
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71277);
|
|
1565
|
-
|
|
1566
|
-
function ArrowsRightLeftIcon({ title, titleId, ...props }, svgRef) {
|
|
1567
|
-
return /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg", Object.assign({
|
|
1568
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1569
|
-
fill: "none",
|
|
1570
|
-
viewBox: "0 0 24 24",
|
|
1571
|
-
strokeWidth: 1.5,
|
|
1572
|
-
stroke: "currentColor",
|
|
1573
|
-
"aria-hidden": "true",
|
|
1574
|
-
"data-slot": "icon",
|
|
1575
|
-
ref: svgRef,
|
|
1576
|
-
"aria-labelledby": titleId
|
|
1577
|
-
}, props), title ? /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement("title", {
|
|
1578
|
-
id: titleId
|
|
1579
|
-
}, title) : null, /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
|
|
1580
|
-
strokeLinecap: "round",
|
|
1581
|
-
strokeLinejoin: "round",
|
|
1582
|
-
d: "M7.5 21 3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5"
|
|
1583
|
-
}));
|
|
1854
|
+
});
|
|
1584
1855
|
}
|
|
1585
|
-
const ForwardRef = /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(ArrowsRightLeftIcon);
|
|
1586
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ForwardRef);
|
|
1587
1856
|
|
|
1857
|
+
//# sourceMappingURL=app-page.js.map
|
|
1588
1858
|
|
|
1589
|
-
/***/ }),
|
|
1590
|
-
|
|
1591
|
-
/***/ 33873:
|
|
1592
|
-
/***/ ((module) => {
|
|
1593
|
-
|
|
1594
|
-
"use strict";
|
|
1595
|
-
module.exports = require("path");
|
|
1596
1859
|
|
|
1597
1860
|
/***/ }),
|
|
1598
1861
|
|
|
@@ -2209,7 +2472,7 @@ Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_re
|
|
|
2209
2472
|
var __webpack_require__ = require("../../../../webpack-runtime.js");
|
|
2210
2473
|
__webpack_require__.C(exports);
|
|
2211
2474
|
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
|
|
2212
|
-
var __webpack_exports__ = __webpack_require__.X(0, [
|
|
2475
|
+
var __webpack_exports__ = __webpack_require__.X(0, [8569,4741,9927,7420,2617,3144,8255,9988], () => (__webpack_exec__(35299)));
|
|
2213
2476
|
module.exports = __webpack_exports__;
|
|
2214
2477
|
|
|
2215
2478
|
})();
|