@vectorize-io/hindsight-control-plane 0.2.0 → 0.3.0
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/.next/BUILD_ID +1 -1
- package/standalone/.next/app-path-routes-manifest.json +2 -0
- package/standalone/.next/build-manifest.json +7 -8
- package/standalone/.next/prerender-manifest.json +3 -7
- package/standalone/.next/required-server-files.json +40 -193
- package/standalone/.next/routes-manifest.json +17 -1
- package/standalone/.next/server/app/_global-error/page/build-manifest.json +5 -6
- package/standalone/.next/server/app/_global-error/page.js +2 -2
- package/standalone/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/standalone/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/_global-error.html +2 -2
- package/standalone/.next/server/app/_global-error.rsc +8 -8
- package/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +2 -2
- package/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +8 -8
- package/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +4 -6
- package/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +3 -3
- package/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/standalone/.next/server/app/_not-found/page/build-manifest.json +5 -6
- package/standalone/.next/server/app/_not-found/page.js +2 -2
- package/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/_not-found.html +1 -1
- package/standalone/.next/server/app/_not-found.rsc +12 -12
- package/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +12 -12
- package/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +5 -7
- package/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +6 -6
- package/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
- package/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/standalone/.next/server/app/api/banks/[bankId]/route/app-paths-manifest.json +3 -0
- package/standalone/.next/server/app/api/banks/[bankId]/route/build-manifest.json +11 -0
- package/standalone/.next/server/app/api/banks/[bankId]/route/server-reference-manifest.json +4 -0
- package/standalone/.next/server/app/api/banks/[bankId]/route.js +7 -0
- package/standalone/.next/server/app/api/banks/[bankId]/route.js.map +5 -0
- package/standalone/.next/server/app/api/banks/[bankId]/route.js.nft.json +1 -0
- package/standalone/.next/server/app/api/banks/[bankId]/route_client-reference-manifest.js +2 -0
- package/standalone/.next/server/app/api/banks/route.js +3 -2
- package/standalone/.next/server/app/api/banks/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/chunks/[chunkId]/route.js +3 -2
- package/standalone/.next/server/app/api/chunks/[chunkId]/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/documents/[documentId]/route.js +3 -2
- package/standalone/.next/server/app/api/documents/[documentId]/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/documents/route.js +3 -2
- package/standalone/.next/server/app/api/documents/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/entities/[entityId]/regenerate/route.js +3 -2
- package/standalone/.next/server/app/api/entities/[entityId]/regenerate/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/entities/[entityId]/route.js +3 -2
- package/standalone/.next/server/app/api/entities/[entityId]/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/entities/route.js +3 -2
- package/standalone/.next/server/app/api/entities/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/graph/route.js +3 -2
- package/standalone/.next/server/app/api/graph/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/health/route.js +2 -1
- package/standalone/.next/server/app/api/health/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/list/route.js +3 -2
- package/standalone/.next/server/app/api/list/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/memories/[memoryId]/route/app-paths-manifest.json +3 -0
- package/standalone/.next/server/app/api/memories/[memoryId]/route/build-manifest.json +11 -0
- package/standalone/.next/server/app/api/memories/[memoryId]/route/server-reference-manifest.json +4 -0
- package/standalone/.next/server/app/api/memories/[memoryId]/route.js +6 -0
- package/standalone/.next/server/app/api/memories/[memoryId]/route.js.map +5 -0
- package/standalone/.next/server/app/api/memories/[memoryId]/route.js.nft.json +1 -0
- package/standalone/.next/server/app/api/memories/[memoryId]/route_client-reference-manifest.js +2 -0
- package/standalone/.next/server/app/api/memories/retain/route.js +3 -2
- package/standalone/.next/server/app/api/memories/retain/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/memories/retain_async/route.js +3 -2
- package/standalone/.next/server/app/api/memories/retain_async/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/operations/[agentId]/route.js +3 -2
- package/standalone/.next/server/app/api/operations/[agentId]/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/profile/[bankId]/route.js +3 -2
- package/standalone/.next/server/app/api/profile/[bankId]/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/recall/route.js +3 -2
- package/standalone/.next/server/app/api/recall/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/reflect/route.js +3 -2
- package/standalone/.next/server/app/api/reflect/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/stats/[agentId]/route.js +3 -2
- package/standalone/.next/server/app/api/stats/[agentId]/route.js.nft.json +1 -1
- package/standalone/.next/server/app/banks/[bankId]/page/build-manifest.json +5 -6
- package/standalone/.next/server/app/banks/[bankId]/page.js +2 -2
- package/standalone/.next/server/app/banks/[bankId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/banks/[bankId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/dashboard/page/build-manifest.json +5 -6
- package/standalone/.next/server/app/dashboard/page.js +2 -2
- package/standalone/.next/server/app/dashboard/page.js.nft.json +1 -1
- package/standalone/.next/server/app/dashboard/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/dashboard.html +1 -1
- package/standalone/.next/server/app/dashboard.rsc +14 -14
- package/standalone/.next/server/app/dashboard.segments/_full.segment.rsc +14 -14
- package/standalone/.next/server/app/dashboard.segments/_head.segment.rsc +5 -7
- package/standalone/.next/server/app/dashboard.segments/_index.segment.rsc +6 -6
- package/standalone/.next/server/app/dashboard.segments/_tree.segment.rsc +2 -2
- package/standalone/.next/server/app/dashboard.segments/dashboard/__PAGE__.segment.rsc +4 -4
- package/standalone/.next/server/app/dashboard.segments/dashboard.segment.rsc +3 -3
- package/standalone/.next/server/app/index.html +1 -1
- package/standalone/.next/server/app/index.rsc +12 -12
- package/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/standalone/.next/server/app/index.segments/_full.segment.rsc +12 -12
- package/standalone/.next/server/app/index.segments/_head.segment.rsc +5 -7
- package/standalone/.next/server/app/index.segments/_index.segment.rsc +6 -6
- package/standalone/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/standalone/.next/server/app/page/build-manifest.json +5 -6
- package/standalone/.next/server/app/page.js +3 -3
- package/standalone/.next/server/app/page.js.nft.json +1 -1
- package/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app-paths-manifest.json +2 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__116b0d31._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__296b95db._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__356491b1._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__37560d9a._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__478d7304._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__51072426._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__517fcb62._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__57dac9c2._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__6872cebd._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__687469c1._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__71e0e3b9._.js +21 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__8241ce67._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__85fada80._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__9a7529ab._.js +1 -1
- package/standalone/.next/server/chunks/[root-of-the-server]__9af3dcb2._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__ab5df0f3._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__b9387f6f._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__e4e9fd7e._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__ef34dcbb._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__fd2d4ac3._.js +3 -0
- package/standalone/.next/server/chunks/[turbopack]_runtime.js +32 -7
- package/standalone/.next/server/chunks/e51bf__next-internal_server_app_api_banks_[bankId]_route_actions_e35b026c.js +3 -0
- package/standalone/.next/server/chunks/e51bf__next-internal_server_app_api_memories_[memoryId]_route_actions_461fd16c.js +3 -0
- package/standalone/.next/server/chunks/hindsight-clients_typescript_dist_79330c4c._.js +3 -0
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__3f6f18bb._.js +1 -1
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__655f8d11._.js +6 -2
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__8dd83d7a._.js +1 -1
- package/standalone/.next/server/chunks/ssr/[turbopack]_runtime.js +32 -7
- package/standalone/.next/server/chunks/ssr/_04b70dca._.js +6 -0
- package/standalone/.next/server/chunks/ssr/_26df66d0._.js +2 -2
- package/standalone/.next/server/chunks/ssr/_407ede86._.js +9 -0
- package/standalone/.next/server/chunks/ssr/_53a4aa41._.js +2 -2
- package/standalone/.next/server/chunks/ssr/_6f1a7a53._.js +6 -0
- package/standalone/.next/server/chunks/ssr/_944e56a6._.js +2 -2
- package/standalone/.next/server/chunks/ssr/_e3307836._.js +9 -0
- package/standalone/.next/server/chunks/ssr/hindsight-control-plane_src_fe96d618._.js +1 -1
- package/standalone/.next/server/chunks/ssr/node_modules_256e9ddd._.js +3 -0
- package/standalone/.next/server/chunks/ssr/node_modules_next_dist_08570d7f._.js +2 -2
- package/standalone/.next/server/chunks/ssr/node_modules_next_dist_4b9a0874._.js +3 -0
- package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_89742413.js +2 -2
- package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js +6 -0
- package/standalone/.next/server/middleware-build-manifest.js +5 -6
- package/standalone/.next/server/pages/404.html +1 -1
- package/standalone/.next/server/pages/500.html +2 -2
- package/standalone/.next/server/server-reference-manifest.js +1 -1
- package/standalone/.next/server/server-reference-manifest.json +1 -1
- package/standalone/.next/static/chunks/068dff78c3e35897.css +2 -0
- package/standalone/.next/static/chunks/30ea11065999f7ac.js +1 -0
- package/standalone/.next/static/chunks/5777bc08048e2edc.js +4 -0
- package/standalone/.next/static/chunks/5d60d221a60086fb.js +1 -0
- package/standalone/.next/static/chunks/7340adf74ff47ec0.js +1 -0
- package/standalone/.next/static/chunks/8ca05de898c11578.js +1 -0
- package/standalone/.next/static/chunks/9b12d8cc6a26cbbc.js +7 -0
- package/standalone/.next/static/chunks/a6dad97d9634a72d.js.map +1 -0
- package/standalone/.next/static/chunks/c1c4c028479eeb7d.js +7 -0
- package/standalone/.next/static/chunks/eef1ea5ced749e04.js +2 -0
- package/standalone/.next/static/chunks/f37acefc5ba19606.js +1 -0
- package/standalone/.next/static/chunks/turbopack-59d7bb1a28984373.js +4 -0
- package/standalone/node_modules/@img/sharp-libvips-linux-x64/README.md +46 -0
- package/standalone/node_modules/@img/sharp-libvips-linux-x64/lib/glib-2.0/include/glibconfig.h +221 -0
- package/standalone/node_modules/@img/sharp-libvips-linux-x64/lib/index.js +1 -0
- package/standalone/node_modules/@img/sharp-libvips-linux-x64/lib/libvips-cpp.so.8.17.3 +0 -0
- package/standalone/node_modules/@img/sharp-libvips-linux-x64/package.json +42 -0
- package/standalone/node_modules/@img/sharp-libvips-linux-x64/versions.json +30 -0
- package/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/README.md +46 -0
- package/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/glib-2.0/include/glibconfig.h +221 -0
- package/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/index.js +1 -0
- package/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.8.17.3 +0 -0
- package/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/package.json +42 -0
- package/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json +30 -0
- package/standalone/node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64.node +0 -0
- package/standalone/node_modules/@img/sharp-linux-x64/package.json +46 -0
- package/standalone/node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node +0 -0
- package/standalone/node_modules/@img/sharp-linuxmusl-x64/package.json +46 -0
- package/standalone/node_modules/@next/env/package.json +4 -4
- package/standalone/node_modules/next/dist/build/analyze/index.js +242 -0
- package/standalone/node_modules/next/dist/build/define-env.js +22 -13
- package/standalone/node_modules/next/dist/build/entries.js +5 -5
- package/standalone/node_modules/next/dist/build/generate-routes-manifest.js +91 -0
- package/standalone/node_modules/next/dist/build/index.js +172 -223
- package/standalone/node_modules/next/dist/build/output/log.js +4 -7
- package/standalone/node_modules/next/dist/build/segment-config/app/app-segments.js +23 -99
- package/standalone/node_modules/next/dist/build/segment-config/app/collect-root-param-keys.js +3 -3
- package/standalone/node_modules/next/dist/build/spinner.js +3 -3
- package/standalone/node_modules/next/dist/build/static-paths/app/extract-pathname-route-param-segments-from-loader-tree.js +137 -0
- package/standalone/node_modules/next/dist/build/static-paths/app.js +69 -210
- package/standalone/node_modules/next/dist/build/static-paths/utils.js +83 -11
- package/standalone/node_modules/next/dist/build/swc/index.js +10 -6
- package/standalone/node_modules/next/dist/build/templates/app-page.js +21 -14
- package/standalone/node_modules/next/dist/build/templates/app-route.js +8 -10
- package/standalone/node_modules/next/dist/build/templates/edge-app-route.js +7 -10
- package/standalone/node_modules/next/dist/build/templates/edge-ssr-app.js +16 -20
- package/standalone/node_modules/next/dist/build/templates/edge-ssr.js +20 -14
- package/standalone/node_modules/next/dist/build/templates/edge-wrapper.js +24 -0
- package/standalone/node_modules/next/dist/build/templates/middleware.js +7 -6
- package/standalone/node_modules/next/dist/build/templates/pages-edge-api.js +3 -2
- package/standalone/node_modules/next/dist/build/turbopack-analyze/index.js +116 -0
- package/standalone/node_modules/next/dist/build/turbopack-build/impl.js +2 -1
- package/standalone/node_modules/next/dist/build/type-check.js +7 -8
- package/standalone/node_modules/next/dist/build/utils.js +45 -4
- package/standalone/node_modules/next/dist/build/validate-app-paths.js +242 -0
- package/standalone/node_modules/next/dist/build/webpack/loaders/next-app-loader/index.js +20 -2
- package/standalone/node_modules/next/dist/build/webpack/loaders/next-edge-app-route-loader/index.js +2 -5
- package/standalone/node_modules/next/dist/build/webpack/loaders/next-edge-ssr-loader/index.js +4 -11
- package/standalone/node_modules/next/dist/build/webpack/loaders/next-root-params-loader.js +1 -1
- package/standalone/node_modules/next/dist/build/webpack/plugins/flight-manifest-plugin.js +1 -1
- package/standalone/node_modules/next/dist/build/webpack/plugins/middleware-plugin.js +3 -0
- package/standalone/node_modules/next/dist/build/webpack-build/impl.js +1 -0
- package/standalone/node_modules/next/dist/build/webpack-config.js +35 -3
- package/standalone/node_modules/next/dist/cli/next-test.js +3 -5
- package/standalone/node_modules/next/dist/client/components/app-router-headers.js +5 -0
- package/standalone/node_modules/next/dist/client/components/app-router-instance.js +3 -11
- package/standalone/node_modules/next/dist/client/components/app-router.js +8 -28
- package/standalone/node_modules/next/dist/client/components/navigation-devtools.js +5 -7
- package/standalone/node_modules/next/dist/client/components/navigation.js +4 -3
- package/standalone/node_modules/next/dist/client/components/router-reducer/create-initial-router-state.js +3 -22
- package/standalone/node_modules/next/dist/client/components/router-reducer/fetch-server-response.js +6 -18
- package/standalone/node_modules/next/dist/client/components/router-reducer/ppr-navigations.js +844 -590
- package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/hmr-refresh-reducer.js +4 -76
- package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/navigate-reducer.js +21 -18
- package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/refresh-reducer.js +48 -85
- package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/restore-reducer.js +25 -10
- package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/server-action-reducer.js +126 -113
- package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/server-patch-reducer.js +30 -39
- package/standalone/node_modules/next/dist/client/components/router-reducer/router-reducer-types.js +0 -1
- package/standalone/node_modules/next/dist/client/components/router-reducer/router-reducer.js +2 -2
- package/standalone/node_modules/next/dist/client/components/segment-cache/cache-map.js +13 -18
- package/standalone/node_modules/next/dist/client/components/segment-cache/cache.js +27 -14
- package/standalone/node_modules/next/dist/client/components/segment-cache/lru.js +3 -1
- package/standalone/node_modules/next/dist/client/components/segment-cache/navigation.js +176 -133
- package/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +12 -12
- package/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js +12 -12
- package/standalone/node_modules/next/dist/compiled/next-server/app-route-turbo.runtime.prod.js +3 -3
- package/standalone/node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js +10 -10
- package/standalone/node_modules/next/dist/compiled/react-is/package.json +1 -1
- package/standalone/node_modules/next/dist/lib/build-custom-route.js +4 -4
- package/standalone/node_modules/next/dist/lib/constants.js +0 -5
- package/standalone/node_modules/next/dist/lib/generate-interception-routes-rewrites.js +0 -1
- package/standalone/node_modules/next/dist/lib/helpers/get-npx-command.js +3 -3
- package/standalone/node_modules/next/dist/lib/inline-static-env.js +1 -1
- package/standalone/node_modules/next/dist/lib/metadata/metadata.js +17 -11
- package/standalone/node_modules/next/dist/lib/needs-experimental-react.js +2 -2
- package/standalone/node_modules/next/dist/lib/resolve-build-paths.js +44 -76
- package/standalone/node_modules/next/dist/lib/server-external-packages.jsonc +103 -0
- package/standalone/node_modules/next/dist/lib/static-env.js +6 -6
- package/standalone/node_modules/next/dist/lib/turbopack-warning.js +3 -5
- package/standalone/node_modules/next/dist/lib/typescript/runTypeCheck.js +61 -5
- package/standalone/node_modules/next/dist/lib/typescript/type-paths.js +56 -0
- package/standalone/node_modules/next/dist/lib/typescript/writeConfigurationDefaults.js +6 -17
- package/standalone/node_modules/next/dist/lib/verify-typescript-setup.js +10 -2
- package/standalone/node_modules/next/dist/lib/worker.js +17 -9
- package/standalone/node_modules/next/dist/server/app-render/action-handler.js +113 -77
- package/standalone/node_modules/next/dist/server/app-render/app-render-prerender-utils.js +36 -15
- package/standalone/node_modules/next/dist/server/app-render/app-render-render-utils.js +36 -15
- package/standalone/node_modules/next/dist/server/app-render/app-render-scheduling.js +188 -0
- package/standalone/node_modules/next/dist/server/app-render/app-render.js +804 -748
- package/standalone/node_modules/next/dist/server/app-render/collect-segment-data.js +8 -2
- package/standalone/node_modules/next/dist/server/app-render/create-component-styles-and-scripts.js +1 -1
- package/standalone/node_modules/next/dist/server/app-render/create-error-handler.js +42 -75
- package/standalone/node_modules/next/dist/server/app-render/dynamic-rendering.js +127 -14
- package/standalone/node_modules/next/dist/server/app-render/encryption-utils.js +3 -108
- package/standalone/node_modules/next/dist/server/app-render/encryption.js +4 -3
- package/standalone/node_modules/next/dist/server/app-render/flight-render-result.js +3 -2
- package/standalone/node_modules/next/dist/server/app-render/get-css-inlined-link-tags.js +9 -8
- package/standalone/node_modules/next/dist/server/app-render/get-layer-assets.js +1 -1
- package/standalone/node_modules/next/dist/server/app-render/manifests-singleton.js +257 -0
- package/standalone/node_modules/next/dist/server/app-render/prospective-render-utils.js +25 -8
- package/standalone/node_modules/next/dist/server/app-render/staged-rendering.js +161 -15
- package/standalone/node_modules/next/dist/server/app-render/use-flight-response.js +67 -20
- package/standalone/node_modules/next/dist/server/app-render/walk-tree-with-flight-router-state.js +2 -2
- package/standalone/node_modules/next/dist/server/async-storage/work-store.js +2 -1
- package/standalone/node_modules/next/dist/server/base-server.js +32 -23
- package/standalone/node_modules/next/dist/server/config-schema.js +8 -1
- package/standalone/node_modules/next/dist/server/config-shared.js +83 -2
- package/standalone/node_modules/next/dist/server/config.js +24 -17
- package/standalone/node_modules/next/dist/server/dev/hot-reloader-rspack.js +171 -0
- package/standalone/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +37 -25
- package/standalone/node_modules/next/dist/server/dev/hot-reloader-types.js +1 -0
- package/standalone/node_modules/next/dist/server/dev/hot-reloader-webpack.js +62 -57
- package/standalone/node_modules/next/dist/server/dev/log-requests.js +11 -3
- package/standalone/node_modules/next/dist/server/dev/messages.js +10 -0
- package/standalone/node_modules/next/dist/server/dev/serialized-errors.js +67 -0
- package/standalone/node_modules/next/dist/server/dev/static-paths-worker.js +10 -0
- package/standalone/node_modules/next/dist/server/lib/app-info-log.js +1 -1
- package/standalone/node_modules/next/dist/server/lib/chrome-devtools-workspace.js +2 -2
- package/standalone/node_modules/next/dist/server/lib/dev-bundler-service.js +6 -10
- package/standalone/node_modules/next/dist/server/lib/incremental-cache/file-system-cache.js +4 -4
- package/standalone/node_modules/next/dist/server/lib/lazy-result.js +1 -1
- package/standalone/node_modules/next/dist/server/lib/patch-fetch.js +9 -9
- package/standalone/node_modules/next/dist/server/lib/router-server.js +43 -29
- package/standalone/node_modules/next/dist/server/lib/router-utils/build-prefetch-segment-data-route.js +0 -21
- package/standalone/node_modules/next/dist/server/lib/router-utils/filesystem.js +2 -7
- package/standalone/node_modules/next/dist/server/lib/router-utils/resolve-routes.js +8 -4
- package/standalone/node_modules/next/dist/server/lib/start-server.js +3 -3
- package/standalone/node_modules/next/dist/server/lib/trace/tracer.js +4 -0
- package/standalone/node_modules/next/dist/server/load-components.js +3 -9
- package/standalone/node_modules/next/dist/server/next-server.js +19 -18
- package/standalone/node_modules/next/dist/server/next.js +1 -1
- package/standalone/node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js +570 -0
- package/standalone/node_modules/next/dist/server/node-environment-extensions/utils.js +60 -3
- package/standalone/node_modules/next/dist/server/node-environment.js +1 -0
- package/standalone/node_modules/next/dist/server/patch-error-inspect.js +7 -4
- package/standalone/node_modules/next/dist/server/request/fallback-params.js +23 -66
- package/standalone/node_modules/next/dist/server/route-modules/app-route/module.js +2 -2
- package/standalone/node_modules/next/dist/server/route-modules/pages/pages-handler.js +6 -3
- package/standalone/node_modules/next/dist/server/route-modules/route-module.js +79 -18
- package/standalone/node_modules/next/dist/server/stream-utils/node-web-streams-helper.js +28 -4
- package/standalone/node_modules/next/dist/server/typescript/rules/config.js +50 -6
- package/standalone/node_modules/next/dist/server/use-cache/use-cache-wrapper.js +68 -23
- package/standalone/node_modules/next/dist/server/web/edge-route-module-wrapper.js +7 -5
- package/standalone/node_modules/next/dist/server/web/sandbox/context.js +8 -9
- package/standalone/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js +2 -1
- package/standalone/node_modules/next/dist/server/web/spec-extension/revalidate.js +7 -3
- package/standalone/node_modules/next/dist/shared/lib/action-revalidation-kind.js +31 -0
- package/standalone/node_modules/next/dist/shared/lib/constants.js +6 -1
- package/standalone/node_modules/next/dist/shared/lib/deployment-id.js +36 -0
- package/standalone/node_modules/next/dist/shared/lib/errors/canary-only-config-error.js +1 -1
- package/standalone/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js +5 -0
- package/standalone/node_modules/next/dist/shared/lib/router/routes/app.js +122 -0
- package/standalone/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +20 -49
- package/standalone/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +6 -6
- package/standalone/node_modules/next/dist/shared/lib/router/utils/interception-prefix-from-param-type.js +33 -0
- package/standalone/node_modules/next/dist/shared/lib/router/utils/resolve-param-value.js +116 -0
- package/standalone/node_modules/next/dist/shared/lib/segment-cache/output-export-prefetch-encoding.js +3 -24
- package/standalone/node_modules/next/dist/shared/lib/segment.js +5 -0
- package/standalone/node_modules/next/dist/shared/lib/turbopack/utils.js +6 -5
- package/standalone/node_modules/next/dist/telemetry/anonymous-meta.js +1 -1
- package/standalone/node_modules/next/dist/telemetry/events/build.js +11 -0
- package/standalone/node_modules/next/dist/telemetry/events/version.js +2 -2
- package/standalone/node_modules/next/package.json +20 -18
- package/standalone/node_modules/react/cjs/react.production.js +1 -1
- package/standalone/node_modules/react/package.json +1 -1
- package/standalone/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.js +1 -1
- package/standalone/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.js +1 -1
- package/standalone/node_modules/react-dom/cjs/react-dom-server.browser.production.js +3 -3
- package/standalone/node_modules/react-dom/cjs/react-dom-server.edge.production.js +3 -3
- package/standalone/node_modules/react-dom/cjs/react-dom-server.node.production.js +3 -3
- package/standalone/node_modules/react-dom/cjs/react-dom.production.js +1 -1
- package/standalone/node_modules/react-dom/package.json +2 -2
- package/standalone/package.json +1 -1
- package/standalone/server.js +1 -1
- package/standalone/.next/server/chunks/[root-of-the-server]__02a1e7f7._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0f1b189c._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__228c769f._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__317b54d0._.js +0 -21
- package/standalone/.next/server/chunks/[root-of-the-server]__464d3847._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__5e1d146d._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__6ee44ea3._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__73093267._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__81c0d784._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__9c3dd746._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__bae0f53c._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__be9afc00._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__d2485edb._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__d4b39930._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__d4f9d631._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__e5a6b81d._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__f318615b._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_3476210c._.js +0 -6
- package/standalone/.next/server/chunks/ssr/_5e906836._.js +0 -9
- package/standalone/.next/server/chunks/ssr/_8362f37b._.js +0 -6
- package/standalone/.next/server/chunks/ssr/_e8cbc2be._.js +0 -9
- package/standalone/.next/server/chunks/ssr/node_modules_5363a9de._.js +0 -3
- package/standalone/.next/server/chunks/ssr/node_modules_next_dist_cc88faaa._.js +0 -3
- package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_3fe9760a._.js +0 -6
- package/standalone/.next/static/chunks/023d923a37d494fc.js +0 -1
- package/standalone/.next/static/chunks/0e1b9f3295e06ab1.js +0 -1
- package/standalone/.next/static/chunks/0e662c07abb2cacd.js +0 -1
- package/standalone/.next/static/chunks/247eb132b7f7b574.js +0 -1
- package/standalone/.next/static/chunks/497f7b5edc7d3fce.js +0 -1
- package/standalone/.next/static/chunks/4a2e6ca9bc162ffe.js +0 -4
- package/standalone/.next/static/chunks/9bc5002cc495aadf.js +0 -7
- package/standalone/.next/static/chunks/9eef728357965f0b.js +0 -7
- package/standalone/.next/static/chunks/c0409be3e0eda16b.js +0 -1
- package/standalone/.next/static/chunks/d0cdc56d06040c69.js +0 -2
- package/standalone/.next/static/chunks/f3b9062eed4c1661.css +0 -2
- package/standalone/.next/static/chunks/turbopack-030018f439265ea0.js +0 -3
- package/standalone/node_modules/next/dist/build/deployment-id.js +0 -18
- package/standalone/node_modules/next/dist/client/components/router-reducer/apply-flight-data.js +0 -53
- package/standalone/node_modules/next/dist/client/components/router-reducer/apply-router-state-patch-to-tree.js +0 -105
- package/standalone/node_modules/next/dist/client/components/router-reducer/fill-cache-with-new-subtree-data.js +0 -110
- package/standalone/node_modules/next/dist/client/components/router-reducer/fill-lazy-items-till-leaf-with-head.js +0 -131
- package/standalone/node_modules/next/dist/client/components/router-reducer/handle-segment-mismatch.js +0 -25
- package/standalone/node_modules/next/dist/client/components/router-reducer/invalidate-cache-by-router-state.js +0 -32
- package/standalone/node_modules/next/dist/client/components/router-reducer/refetch-inactive-parallel-segments.js +0 -104
- package/standalone/node_modules/next/dist/lib/server-external-packages.json +0 -75
- package/standalone/node_modules/next/dist/server/app-render/action-utils.js +0 -90
- package/standalone/node_modules/next/dist/server/normalizers/request/prefetch-rsc.js +0 -31
- /package/standalone/.next/static/{49bdaGRmDVYO0WSBsNFA3 → FoyZVJhqn8jToZ2jQdT4e}/_buildManifest.js +0 -0
- /package/standalone/.next/static/{49bdaGRmDVYO0WSBsNFA3 → FoyZVJhqn8jToZ2jQdT4e}/_clientMiddlewareManifest.json +0 -0
- /package/standalone/.next/static/{49bdaGRmDVYO0WSBsNFA3 → FoyZVJhqn8jToZ2jQdT4e}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
0 && (module.exports = {
|
|
6
|
+
deleteErrorsRscStreamForHtmlRequest: null,
|
|
7
|
+
sendSerializedErrorsToClient: null,
|
|
8
|
+
sendSerializedErrorsToClientForHtmlRequest: null,
|
|
9
|
+
setErrorsRscStreamForHtmlRequest: null
|
|
10
|
+
});
|
|
11
|
+
function _export(target, all) {
|
|
12
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: all[name]
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
_export(exports, {
|
|
18
|
+
deleteErrorsRscStreamForHtmlRequest: function() {
|
|
19
|
+
return deleteErrorsRscStreamForHtmlRequest;
|
|
20
|
+
},
|
|
21
|
+
sendSerializedErrorsToClient: function() {
|
|
22
|
+
return sendSerializedErrorsToClient;
|
|
23
|
+
},
|
|
24
|
+
sendSerializedErrorsToClientForHtmlRequest: function() {
|
|
25
|
+
return sendSerializedErrorsToClientForHtmlRequest;
|
|
26
|
+
},
|
|
27
|
+
setErrorsRscStreamForHtmlRequest: function() {
|
|
28
|
+
return setErrorsRscStreamForHtmlRequest;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
const _nodewebstreamshelper = require("../stream-utils/node-web-streams-helper");
|
|
32
|
+
const _hotreloadertypes = require("./hot-reloader-types");
|
|
33
|
+
const errorsRscStreamsByHtmlRequestId = new Map();
|
|
34
|
+
function sendSerializedErrorsToClient(errorsRscStream, sendToClient) {
|
|
35
|
+
(0, _nodewebstreamshelper.streamToUint8Array)(errorsRscStream).then((serializedErrors)=>{
|
|
36
|
+
sendToClient({
|
|
37
|
+
type: _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.ERRORS_TO_SHOW_IN_BROWSER,
|
|
38
|
+
serializedErrors
|
|
39
|
+
});
|
|
40
|
+
}, (err)=>{
|
|
41
|
+
console.error(Object.defineProperty(new Error('Failed to serialize errors.', {
|
|
42
|
+
cause: err
|
|
43
|
+
}), "__NEXT_ERROR_CODE", {
|
|
44
|
+
value: "E948",
|
|
45
|
+
enumerable: false,
|
|
46
|
+
configurable: true
|
|
47
|
+
}));
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
function sendSerializedErrorsToClientForHtmlRequest(htmlRequestId, sendToClient) {
|
|
51
|
+
const errorsRscStream = errorsRscStreamsByHtmlRequestId.get(htmlRequestId);
|
|
52
|
+
if (!errorsRscStream) {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
errorsRscStreamsByHtmlRequestId.delete(htmlRequestId);
|
|
56
|
+
sendSerializedErrorsToClient(errorsRscStream, sendToClient);
|
|
57
|
+
}
|
|
58
|
+
function setErrorsRscStreamForHtmlRequest(htmlRequestId, errorsRscStream) {
|
|
59
|
+
// TODO: Clean up after a timeout, in case the client never connects, e.g.
|
|
60
|
+
// when CURL'ing the page, or loading the page with JavaScript disabled etc.
|
|
61
|
+
errorsRscStreamsByHtmlRequestId.set(htmlRequestId, errorsRscStream);
|
|
62
|
+
}
|
|
63
|
+
function deleteErrorsRscStreamForHtmlRequest(htmlRequestId) {
|
|
64
|
+
errorsRscStreamsByHtmlRequestId.delete(htmlRequestId);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
//# sourceMappingURL=serialized-errors.js.map
|
|
@@ -20,6 +20,7 @@ const _collectrootparamkeys = require("../../build/segment-config/app/collect-ro
|
|
|
20
20
|
const _app = require("../../build/static-paths/app");
|
|
21
21
|
const _pages = require("../../build/static-paths/pages");
|
|
22
22
|
const _createincrementalcache = require("../../export/helpers/create-incremental-cache");
|
|
23
|
+
const _app1 = require("../../shared/lib/router/routes/app");
|
|
23
24
|
async function loadStaticPaths({ dir, distDir, pathname, config, httpAgentOptions, locales, defaultLocale, isAppPath, page, isrFlushToDisk, fetchCacheKeyPrefix, cacheMaxMemorySize, requestHeaders, cacheHandler, cacheHandlers, cacheLifeProfiles, nextConfigOutput, buildId, authInterrupts, sriEnabled }) {
|
|
24
25
|
// this needs to be initialized before loadComponents otherwise
|
|
25
26
|
// "use cache" could be missing it's cache handlers
|
|
@@ -51,11 +52,20 @@ async function loadStaticPaths({ dir, distDir, pathname, config, httpAgentOption
|
|
|
51
52
|
const segments = await (0, _appsegments.collectSegments)(// We know this is an app page or app route module because we checked
|
|
52
53
|
// above that the page type is 'app'.
|
|
53
54
|
routeModule);
|
|
55
|
+
const route = (0, _app1.parseAppRoute)(pathname, true);
|
|
56
|
+
if (route.dynamicSegments.length === 0) {
|
|
57
|
+
throw Object.defineProperty(new _invarianterror.InvariantError(`Expected a dynamic route, but got a static route: ${pathname}`), "__NEXT_ERROR_CODE", {
|
|
58
|
+
value: "E930",
|
|
59
|
+
enumerable: false,
|
|
60
|
+
configurable: true
|
|
61
|
+
});
|
|
62
|
+
}
|
|
54
63
|
const isRoutePPREnabled = (0, _checks.isAppPageRouteModule)(routeModule) && (0, _ppr.checkIsRoutePPREnabled)(config.pprConfig);
|
|
55
64
|
const rootParamKeys = (0, _collectrootparamkeys.collectRootParamKeys)(routeModule);
|
|
56
65
|
return (0, _app.buildAppStaticPaths)({
|
|
57
66
|
dir,
|
|
58
67
|
page: pathname,
|
|
68
|
+
route,
|
|
59
69
|
cacheComponents: config.cacheComponents,
|
|
60
70
|
segments,
|
|
61
71
|
distDir,
|
|
@@ -91,7 +91,7 @@ function logStartInfo({ networkUrl, appUrl, envInfo, experimentalFeatures, logBu
|
|
|
91
91
|
if (parts.length > 0) {
|
|
92
92
|
versionSuffix = ` (${parts.join(', ')})`;
|
|
93
93
|
}
|
|
94
|
-
_log.bootstrap(`${(0, _picocolors.bold)((0, _picocolors.purple)(`${_log.prefixes.ready} Next.js ${"16.
|
|
94
|
+
_log.bootstrap(`${(0, _picocolors.bold)((0, _picocolors.purple)(`${_log.prefixes.ready} Next.js ${"16.1.1"}`))}${versionSuffix}`);
|
|
95
95
|
if (appUrl) {
|
|
96
96
|
_log.bootstrap(`- Local: ${appUrl}`);
|
|
97
97
|
}
|
|
@@ -67,8 +67,8 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
67
67
|
}
|
|
68
68
|
// Keep the uuid in memory as it should never change during the lifetime of the server.
|
|
69
69
|
let workspaceUUID = null;
|
|
70
|
-
function isChromeDevtoolsWorkspaceUrl(
|
|
71
|
-
return
|
|
70
|
+
function isChromeDevtoolsWorkspaceUrl(pathname) {
|
|
71
|
+
return pathname === '/.well-known/appspecific/com.chrome.devtools.json';
|
|
72
72
|
}
|
|
73
73
|
async function handleChromeDevtoolsWorkspaceRequest(response, opts, config) {
|
|
74
74
|
response.setHeader('Content-Type', 'application/json');
|
|
@@ -23,6 +23,11 @@ class DevBundlerService {
|
|
|
23
23
|
this.appIsrManifestInner = new _lrucache.LRUCache(8000, function length() {
|
|
24
24
|
return 16;
|
|
25
25
|
});
|
|
26
|
+
const { hotReloader } = bundler;
|
|
27
|
+
this.close = hotReloader.close.bind(hotReloader);
|
|
28
|
+
this.setCacheStatus = hotReloader.setCacheStatus.bind(hotReloader);
|
|
29
|
+
this.setReactDebugChannel = hotReloader.setReactDebugChannel.bind(hotReloader);
|
|
30
|
+
this.sendErrorsToBrowser = hotReloader.sendErrorsToBrowser.bind(hotReloader);
|
|
26
31
|
}
|
|
27
32
|
async getFallbackErrorComponents(url) {
|
|
28
33
|
await this.bundler.hotReloader.buildFallbackError();
|
|
@@ -64,9 +69,6 @@ class DevBundlerService {
|
|
|
64
69
|
}
|
|
65
70
|
return serializableManifest;
|
|
66
71
|
}
|
|
67
|
-
setCacheStatus(status, htmlRequestId) {
|
|
68
|
-
this.bundler.hotReloader.setCacheStatus(status, htmlRequestId);
|
|
69
|
-
}
|
|
70
72
|
setIsrStatus(key, value) {
|
|
71
73
|
var // Only send the ISR manifest to legacy clients, i.e. Pages Router clients,
|
|
72
74
|
// or App Router clients that have Cache Components disabled. The ISR
|
|
@@ -85,13 +87,7 @@ class DevBundlerService {
|
|
|
85
87
|
data: this.appIsrManifest
|
|
86
88
|
});
|
|
87
89
|
}
|
|
88
|
-
|
|
89
|
-
this.bundler.hotReloader.setReactDebugChannel(debugChannel, htmlRequestId, requestId);
|
|
90
|
-
}
|
|
91
|
-
close() {
|
|
92
|
-
this.bundler.hotReloader.close();
|
|
93
|
-
}
|
|
94
|
-
triggerHMR(message) {
|
|
90
|
+
sendHmrMessage(message) {
|
|
95
91
|
this.bundler.hotReloader.send(message);
|
|
96
92
|
}
|
|
97
93
|
}
|
|
@@ -164,8 +164,8 @@ class FileSystemCache {
|
|
|
164
164
|
}));
|
|
165
165
|
}
|
|
166
166
|
let rscData;
|
|
167
|
-
if (!ctx.isFallback) {
|
|
168
|
-
rscData = await this.fs.readFile(this.getFilePath(`${key}${
|
|
167
|
+
if (!ctx.isFallback && !ctx.isRoutePPREnabled) {
|
|
168
|
+
rscData = await this.fs.readFile(this.getFilePath(`${key}${_constants.RSC_SUFFIX}`, _responsecache.IncrementalCacheKind.APP_PAGE));
|
|
169
169
|
}
|
|
170
170
|
data = {
|
|
171
171
|
lastModified: mtime.getTime(),
|
|
@@ -276,8 +276,8 @@ class FileSystemCache {
|
|
|
276
276
|
const htmlPath = this.getFilePath(`${key}.html`, isAppPath ? _responsecache.IncrementalCacheKind.APP_PAGE : _responsecache.IncrementalCacheKind.PAGES);
|
|
277
277
|
writer.append(htmlPath, data.html);
|
|
278
278
|
// Fallbacks don't generate a data file.
|
|
279
|
-
if (!ctx.fetchCache && !ctx.isFallback) {
|
|
280
|
-
writer.append(this.getFilePath(`${key}${isAppPath ?
|
|
279
|
+
if (!ctx.fetchCache && !ctx.isFallback && !ctx.isRoutePPREnabled) {
|
|
280
|
+
writer.append(this.getFilePath(`${key}${isAppPath ? _constants.RSC_SUFFIX : _constants.NEXT_DATA_SUFFIX}`, isAppPath ? _responsecache.IncrementalCacheKind.APP_PAGE : _responsecache.IncrementalCacheKind.PAGES), isAppPath ? data.rscData : JSON.stringify(data.pageData));
|
|
281
281
|
}
|
|
282
282
|
if ((data == null ? void 0 : data.kind) === _responsecache.CachedRouteKind.APP_PAGE) {
|
|
283
283
|
let segmentPaths;
|
|
@@ -166,20 +166,20 @@ async function createCachedDynamicResponse(workStore, res, cacheKey, incremental
|
|
|
166
166
|
}
|
|
167
167
|
}).catch((error)=>console.warn(`Failed to set fetch cache`, input, error)).finally(handleUnlock);
|
|
168
168
|
const pendingRevalidateKey = `cache-set-${cacheKey}`;
|
|
169
|
-
workStore.pendingRevalidates ??= {};
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
//
|
|
173
|
-
|
|
169
|
+
const pendingRevalidates = workStore.pendingRevalidates ??= {};
|
|
170
|
+
let pendingRevalidatePromise = Promise.resolve();
|
|
171
|
+
if (pendingRevalidateKey in pendingRevalidates) {
|
|
172
|
+
// There is already a pending revalidate entry that we need to await to
|
|
173
|
+
// avoid race conditions.
|
|
174
|
+
pendingRevalidatePromise = pendingRevalidates[pendingRevalidateKey];
|
|
174
175
|
}
|
|
175
|
-
|
|
176
|
-
var _workStore_pendingRevalidates;
|
|
176
|
+
pendingRevalidates[pendingRevalidateKey] = pendingRevalidatePromise.then(()=>cacheSetPromise).finally(()=>{
|
|
177
177
|
// If the pending revalidate is not present in the store, then we have
|
|
178
178
|
// nothing to delete.
|
|
179
|
-
if (!(
|
|
179
|
+
if (!(pendingRevalidates == null ? void 0 : pendingRevalidates[pendingRevalidateKey])) {
|
|
180
180
|
return;
|
|
181
181
|
}
|
|
182
|
-
delete
|
|
182
|
+
delete pendingRevalidates[pendingRevalidateKey];
|
|
183
183
|
});
|
|
184
184
|
return cloned2;
|
|
185
185
|
}
|
|
@@ -48,6 +48,7 @@ const _shared = require("../../trace/shared");
|
|
|
48
48
|
const _nofallbackerrorexternal = require("../../shared/lib/no-fallback-error.external");
|
|
49
49
|
const _routerservercontext = require("./router-utils/router-server-context");
|
|
50
50
|
const _chromedevtoolsworkspace = require("./chrome-devtools-workspace");
|
|
51
|
+
const _configshared = require("../config-shared");
|
|
51
52
|
function _interop_require_default(obj) {
|
|
52
53
|
return obj && obj.__esModule ? obj : {
|
|
53
54
|
default: obj
|
|
@@ -98,6 +99,7 @@ const debug = (0, _debug.default)('next:router-server:main');
|
|
|
98
99
|
const isNextFont = (pathname)=>pathname && /\/media\/[^/]+\.(woff|woff2|eot|ttf|otf)$/.test(pathname);
|
|
99
100
|
const requestHandlers = {};
|
|
100
101
|
async function initialize(opts) {
|
|
102
|
+
var _development_bundler, _development_service, _development_service1, _development_service2, _development_service3, _development_service4, _development_bundler1;
|
|
101
103
|
if (!process.env.NODE_ENV) {
|
|
102
104
|
// @ts-ignore not readonly
|
|
103
105
|
process.env.NODE_ENV = opts.dev ? 'development' : 'production';
|
|
@@ -116,8 +118,7 @@ async function initialize(opts) {
|
|
|
116
118
|
minimalMode: opts.minimalMode
|
|
117
119
|
});
|
|
118
120
|
const renderServer = {};
|
|
119
|
-
let
|
|
120
|
-
let devBundlerService;
|
|
121
|
+
let development = undefined;
|
|
121
122
|
let originalFetch = globalThis.fetch;
|
|
122
123
|
if (opts.dev) {
|
|
123
124
|
const { Telemetry } = require('../../telemetry/storage');
|
|
@@ -132,7 +133,9 @@ async function initialize(opts) {
|
|
|
132
133
|
globalThis[_patchfetch.NEXT_PATCH_SYMBOL] = false;
|
|
133
134
|
};
|
|
134
135
|
const setupDevBundlerSpan = opts.startServerSpan ? opts.startServerSpan.traceChild('setup-dev-bundler') : (0, _trace.trace)('setup-dev-bundler');
|
|
135
|
-
|
|
136
|
+
// In development, it's always the complete config.
|
|
137
|
+
let developmentConfig = config;
|
|
138
|
+
let developmentBundler = await setupDevBundlerSpan.traceAsyncFn(()=>setupDevBundler({
|
|
136
139
|
// Passed here but the initialization of this object happens below, doing the initialization before the setupDev call breaks.
|
|
137
140
|
renderServer,
|
|
138
141
|
appDir,
|
|
@@ -140,18 +143,23 @@ async function initialize(opts) {
|
|
|
140
143
|
telemetry,
|
|
141
144
|
fsChecker,
|
|
142
145
|
dir: opts.dir,
|
|
143
|
-
nextConfig:
|
|
146
|
+
nextConfig: developmentConfig,
|
|
144
147
|
isCustomServer: opts.customServer,
|
|
145
148
|
turbo: !!process.env.TURBOPACK,
|
|
146
149
|
port: opts.port,
|
|
147
150
|
onDevServerCleanup: opts.onDevServerCleanup,
|
|
148
151
|
resetFetch
|
|
149
152
|
}));
|
|
150
|
-
devBundlerService = new _devbundlerservice.DevBundlerService(developmentBundler, // The request handler is assigned below, this allows us to create a lazy
|
|
153
|
+
let devBundlerService = new _devbundlerservice.DevBundlerService(developmentBundler, // The request handler is assigned below, this allows us to create a lazy
|
|
151
154
|
// reference to it.
|
|
152
155
|
(req, res)=>{
|
|
153
156
|
return requestHandlers[opts.dir](req, res);
|
|
154
157
|
});
|
|
158
|
+
development = {
|
|
159
|
+
bundler: developmentBundler,
|
|
160
|
+
service: devBundlerService,
|
|
161
|
+
config: developmentConfig
|
|
162
|
+
};
|
|
155
163
|
}
|
|
156
164
|
renderServer.instance = require('./render-server');
|
|
157
165
|
const requestHandlerImpl = async (req, res)=>{
|
|
@@ -257,6 +265,7 @@ async function initialize(opts) {
|
|
|
257
265
|
}
|
|
258
266
|
}
|
|
259
267
|
const handleRequest = async (handleIndex)=>{
|
|
268
|
+
var _development_bundler;
|
|
260
269
|
if (handleIndex > 5) {
|
|
261
270
|
throw Object.defineProperty(new Error(`Attempted to handle request too many times ${req.url}`), "__NEXT_ERROR_CODE", {
|
|
262
271
|
value: "E283",
|
|
@@ -265,8 +274,8 @@ async function initialize(opts) {
|
|
|
265
274
|
});
|
|
266
275
|
}
|
|
267
276
|
// handle hot-reloader first
|
|
268
|
-
if (
|
|
269
|
-
if ((0, _blockcrosssite.blockCrossSite)(req, res, config.allowedDevOrigins, opts.hostname)) {
|
|
277
|
+
if (development) {
|
|
278
|
+
if ((0, _blockcrosssite.blockCrossSite)(req, res, development.config.allowedDevOrigins, opts.hostname)) {
|
|
270
279
|
return;
|
|
271
280
|
}
|
|
272
281
|
const origUrl = req.url || '/';
|
|
@@ -278,7 +287,7 @@ async function initialize(opts) {
|
|
|
278
287
|
req.url = (0, _removepathprefix.removePathPrefix)(origUrl, config.assetPrefix);
|
|
279
288
|
}
|
|
280
289
|
const parsedUrl = _url.default.parse(req.url || '/');
|
|
281
|
-
const hotReloaderResult = await
|
|
290
|
+
const hotReloaderResult = await development.bundler.hotReloader.run(req, res, parsedUrl);
|
|
282
291
|
if (hotReloaderResult.finished) {
|
|
283
292
|
return hotReloaderResult;
|
|
284
293
|
}
|
|
@@ -294,19 +303,19 @@ async function initialize(opts) {
|
|
|
294
303
|
if (res.closed || res.finished) {
|
|
295
304
|
return;
|
|
296
305
|
}
|
|
297
|
-
if (
|
|
306
|
+
if (development && (matchedOutput == null ? void 0 : matchedOutput.type) === 'devVirtualFsItem') {
|
|
298
307
|
const origUrl = req.url || '/';
|
|
299
308
|
if (config.basePath && (0, _pathhasprefix.pathHasPrefix)(origUrl, config.basePath)) {
|
|
300
309
|
req.url = (0, _removepathprefix.removePathPrefix)(origUrl, config.basePath);
|
|
301
310
|
} else if (config.assetPrefix && (0, _pathhasprefix.pathHasPrefix)(origUrl, config.assetPrefix)) {
|
|
302
311
|
req.url = (0, _removepathprefix.removePathPrefix)(origUrl, config.assetPrefix);
|
|
303
312
|
}
|
|
304
|
-
if (resHeaders) {
|
|
313
|
+
if (resHeaders !== null) {
|
|
305
314
|
for (const key of Object.keys(resHeaders)){
|
|
306
315
|
res.setHeader(key, resHeaders[key]);
|
|
307
316
|
}
|
|
308
317
|
}
|
|
309
|
-
const result = await
|
|
318
|
+
const result = await development.bundler.requestHandler(req, res);
|
|
310
319
|
if (result.finished) {
|
|
311
320
|
return;
|
|
312
321
|
}
|
|
@@ -325,8 +334,10 @@ async function initialize(opts) {
|
|
|
325
334
|
finished
|
|
326
335
|
});
|
|
327
336
|
// apply any response headers from routing
|
|
328
|
-
|
|
329
|
-
|
|
337
|
+
if (resHeaders !== null) {
|
|
338
|
+
for (const key of Object.keys(resHeaders)){
|
|
339
|
+
res.setHeader(key, resHeaders[key]);
|
|
340
|
+
}
|
|
330
341
|
}
|
|
331
342
|
// handle redirect
|
|
332
343
|
if (!bodyStream && statusCode && statusCode > 300 && statusCode < 400) {
|
|
@@ -437,7 +448,8 @@ async function initialize(opts) {
|
|
|
437
448
|
invokeOutput: matchedOutput.itemPath
|
|
438
449
|
});
|
|
439
450
|
}
|
|
440
|
-
|
|
451
|
+
// We want the original pathname without any basePath or proxy rewrites.
|
|
452
|
+
if (development && (0, _chromedevtoolsworkspace.isChromeDevtoolsWorkspaceUrl)(req.url)) {
|
|
441
453
|
await (0, _chromedevtoolsworkspace.handleChromeDevtoolsWorkspaceRequest)(res, opts, config);
|
|
442
454
|
return;
|
|
443
455
|
}
|
|
@@ -469,7 +481,7 @@ async function initialize(opts) {
|
|
|
469
481
|
res.end('');
|
|
470
482
|
return null;
|
|
471
483
|
}
|
|
472
|
-
const appNotFound = opts.dev ?
|
|
484
|
+
const appNotFound = opts.dev ? development == null ? void 0 : (_development_bundler = development.bundler) == null ? void 0 : _development_bundler.serverFields.hasAppNotFound : await fsChecker.getItem(_constants.UNDERSCORE_NOT_FOUND_ROUTE);
|
|
473
485
|
res.statusCode = 404;
|
|
474
486
|
if (appNotFound) {
|
|
475
487
|
return await invokeRender(parsedUrl, _constants.UNDERSCORE_NOT_FOUND_ROUTE, handleIndex, {
|
|
@@ -522,12 +534,12 @@ async function initialize(opts) {
|
|
|
522
534
|
dev: !!opts.dev,
|
|
523
535
|
server: opts.server,
|
|
524
536
|
serverFields: {
|
|
525
|
-
...(
|
|
526
|
-
setIsrStatus:
|
|
537
|
+
...(development == null ? void 0 : (_development_bundler = development.bundler) == null ? void 0 : _development_bundler.serverFields) || {},
|
|
538
|
+
setIsrStatus: development == null ? void 0 : (_development_service = development.service) == null ? void 0 : _development_service.setIsrStatus.bind(development == null ? void 0 : development.service)
|
|
527
539
|
},
|
|
528
540
|
experimentalTestProxy: !!config.experimental.testProxy,
|
|
529
541
|
experimentalHttpsServer: !!opts.experimentalHttpsServer,
|
|
530
|
-
bundlerService:
|
|
542
|
+
bundlerService: development == null ? void 0 : development.service,
|
|
531
543
|
startServerSpan: opts.startServerSpan,
|
|
532
544
|
quiet: opts.quiet,
|
|
533
545
|
onDevServerCleanup: opts.onDevServerCleanup
|
|
@@ -542,15 +554,16 @@ async function initialize(opts) {
|
|
|
542
554
|
}
|
|
543
555
|
const relativeProjectDir = _path.default.relative(process.cwd(), opts.dir);
|
|
544
556
|
_routerservercontext.routerServerGlobal[_routerservercontext.RouterServerContextSymbol][relativeProjectDir] = {
|
|
545
|
-
nextConfig: config,
|
|
557
|
+
nextConfig: (0, _configshared.getNextConfigRuntime)(config),
|
|
546
558
|
hostname: handlers.server.hostname,
|
|
547
559
|
revalidate: handlers.server.revalidate.bind(handlers.server),
|
|
548
560
|
render404: handlers.server.render404.bind(handlers.server),
|
|
549
561
|
experimentalTestProxy: renderServerOpts.experimentalTestProxy,
|
|
550
562
|
logErrorWithOriginalStack: opts.dev ? handlers.server.logErrorWithOriginalStack.bind(handlers.server) : (err)=>!opts.quiet && _log.error(err),
|
|
551
|
-
setCacheStatus: config.cacheComponents ?
|
|
552
|
-
setIsrStatus:
|
|
553
|
-
setReactDebugChannel: config.experimental.reactDebugChannel ?
|
|
563
|
+
setCacheStatus: config.cacheComponents ? development == null ? void 0 : (_development_service1 = development.service) == null ? void 0 : _development_service1.setCacheStatus.bind(development == null ? void 0 : development.service) : undefined,
|
|
564
|
+
setIsrStatus: development == null ? void 0 : (_development_service2 = development.service) == null ? void 0 : _development_service2.setIsrStatus.bind(development == null ? void 0 : development.service),
|
|
565
|
+
setReactDebugChannel: (development == null ? void 0 : development.config.experimental.reactDebugChannel) ? development == null ? void 0 : (_development_service3 = development.service) == null ? void 0 : _development_service3.setReactDebugChannel.bind(development == null ? void 0 : development.service) : undefined,
|
|
566
|
+
sendErrorsToBrowser: development == null ? void 0 : (_development_service4 = development.service) == null ? void 0 : _development_service4.sendErrorsToBrowser.bind(development == null ? void 0 : development.service)
|
|
554
567
|
};
|
|
555
568
|
const logError = async (type, err)=>{
|
|
556
569
|
if ((0, _ispostpone.isPostpone)(err)) {
|
|
@@ -566,7 +579,7 @@ async function initialize(opts) {
|
|
|
566
579
|
};
|
|
567
580
|
process.on('uncaughtException', logError.bind(null, 'uncaughtException'));
|
|
568
581
|
process.on('unhandledRejection', logError.bind(null, 'unhandledRejection'));
|
|
569
|
-
const resolveRoutes = (0, _resolveroutes.getResolveRoutes)(fsChecker, config, opts, renderServer.instance, renderServerOpts,
|
|
582
|
+
const resolveRoutes = (0, _resolveroutes.getResolveRoutes)(fsChecker, config, opts, renderServer.instance, renderServerOpts, development == null ? void 0 : (_development_bundler1 = development.bundler) == null ? void 0 : _development_bundler1.ensureMiddleware);
|
|
570
583
|
const upgradeHandler = async (req, socket, head)=>{
|
|
571
584
|
try {
|
|
572
585
|
req.on('error', (_err)=>{
|
|
@@ -577,8 +590,8 @@ async function initialize(opts) {
|
|
|
577
590
|
// TODO: log socket errors?
|
|
578
591
|
// console.error(_err);
|
|
579
592
|
});
|
|
580
|
-
if (opts.dev &&
|
|
581
|
-
if ((0, _blockcrosssite.blockCrossSite)(req, socket, config.allowedDevOrigins, opts.hostname)) {
|
|
593
|
+
if (opts.dev && development && req.url) {
|
|
594
|
+
if ((0, _blockcrosssite.blockCrossSite)(req, socket, development.config.allowedDevOrigins, opts.hostname)) {
|
|
582
595
|
return;
|
|
583
596
|
}
|
|
584
597
|
const { basePath, assetPrefix } = config;
|
|
@@ -597,8 +610,9 @@ async function initialize(opts) {
|
|
|
597
610
|
// only handle HMR requests if the basePath in the request
|
|
598
611
|
// matches the basePath for the handler responding to the request
|
|
599
612
|
if (isHMRRequest) {
|
|
600
|
-
return
|
|
613
|
+
return development.bundler.hotReloader.onHMR(req, socket, head, (client, { isLegacyClient })=>{
|
|
601
614
|
if (isLegacyClient) {
|
|
615
|
+
var _development_service;
|
|
602
616
|
// Only send the ISR manifest to legacy clients, i.e. Pages
|
|
603
617
|
// Router clients, or App Router clients that have Cache
|
|
604
618
|
// Components disabled. The ISR manifest is only used to inform
|
|
@@ -608,7 +622,7 @@ async function initialize(opts) {
|
|
|
608
622
|
// static pages).
|
|
609
623
|
client.send(JSON.stringify({
|
|
610
624
|
type: _hotreloadertypes.HMR_MESSAGE_SENT_TO_BROWSER.ISR_MANIFEST,
|
|
611
|
-
data: (
|
|
625
|
+
data: ((_development_service = development.service) == null ? void 0 : _development_service.appIsrManifest) || {}
|
|
612
626
|
}));
|
|
613
627
|
}
|
|
614
628
|
});
|
|
@@ -649,8 +663,8 @@ async function initialize(opts) {
|
|
|
649
663
|
upgradeHandler,
|
|
650
664
|
server: handlers.server,
|
|
651
665
|
closeUpgraded () {
|
|
652
|
-
var
|
|
653
|
-
|
|
666
|
+
var _development_bundler_hotReloader, _development_bundler;
|
|
667
|
+
development == null ? void 0 : (_development_bundler = development.bundler) == null ? void 0 : (_development_bundler_hotReloader = _development_bundler.hotReloader) == null ? void 0 : _development_bundler_hotReloader.close();
|
|
654
668
|
}
|
|
655
669
|
};
|
|
656
670
|
}
|
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
0 && (module.exports = {
|
|
6
6
|
SEGMENT_PATH_KEY: null,
|
|
7
|
-
buildInversePrefetchSegmentDataRoute: null,
|
|
8
7
|
buildPrefetchSegmentDataRoute: null
|
|
9
8
|
});
|
|
10
9
|
function _export(target, all) {
|
|
@@ -17,9 +16,6 @@ _export(exports, {
|
|
|
17
16
|
SEGMENT_PATH_KEY: function() {
|
|
18
17
|
return SEGMENT_PATH_KEY;
|
|
19
18
|
},
|
|
20
|
-
buildInversePrefetchSegmentDataRoute: function() {
|
|
21
|
-
return buildInversePrefetchSegmentDataRoute;
|
|
22
|
-
},
|
|
23
19
|
buildPrefetchSegmentDataRoute: function() {
|
|
24
20
|
return buildPrefetchSegmentDataRoute;
|
|
25
21
|
}
|
|
@@ -50,22 +46,5 @@ function buildPrefetchSegmentDataRoute(page, segmentPath) {
|
|
|
50
46
|
routeKeys
|
|
51
47
|
};
|
|
52
48
|
}
|
|
53
|
-
function buildInversePrefetchSegmentDataRoute(page, segmentPath) {
|
|
54
|
-
const pagePath = (0, _normalizepagepath.normalizePagePath)(page);
|
|
55
|
-
const source = _path.default.posix.join(`${pagePath}${_constants.RSC_SEGMENTS_DIR_SUFFIX}`, `${segmentPath}${_constants.RSC_SEGMENT_SUFFIX}`);
|
|
56
|
-
const { namedRegex, routeKeys } = (0, _routeregex.getNamedRouteRegex)(source, {
|
|
57
|
-
prefixRouteKeys: true,
|
|
58
|
-
includePrefix: true,
|
|
59
|
-
includeSuffix: true,
|
|
60
|
-
excludeOptionalTrailingSlash: true,
|
|
61
|
-
backreferenceDuplicateKeys: true
|
|
62
|
-
});
|
|
63
|
-
const destination = _path.default.posix.join(`${pagePath}${_constants.RSC_PREFETCH_SUFFIX}`);
|
|
64
|
-
return {
|
|
65
|
-
source: namedRegex,
|
|
66
|
-
destination,
|
|
67
|
-
routeKeys
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
49
|
|
|
71
50
|
//# sourceMappingURL=build-prefetch-segment-data-route.js.map
|
|
@@ -42,7 +42,6 @@ const _constants = require("../../../shared/lib/constants");
|
|
|
42
42
|
const _normalizepathsep = require("../../../shared/lib/page-path/normalize-path-sep");
|
|
43
43
|
const _getmetadataroute = require("../../../lib/metadata/get-metadata-route");
|
|
44
44
|
const _rsc = require("../../normalizers/request/rsc");
|
|
45
|
-
const _prefetchrsc = require("../../normalizers/request/prefetch-rsc");
|
|
46
45
|
const _encodeuripath = require("../../../shared/lib/encode-uri-path");
|
|
47
46
|
const _ismetadataroute = require("../../../lib/metadata/is-metadata-route");
|
|
48
47
|
function _interop_require_default(obj) {
|
|
@@ -323,8 +322,7 @@ async function setupFsCheck(opts) {
|
|
|
323
322
|
const normalizers = {
|
|
324
323
|
// Because we can't know if the app directory is enabled or not at this
|
|
325
324
|
// stage, we assume that it is.
|
|
326
|
-
rsc: new _rsc.RSCPathnameNormalizer()
|
|
327
|
-
prefetchRSC: opts.config.experimental.ppr ? new _prefetchrsc.PrefetchRSCPathnameNormalizer() : undefined
|
|
325
|
+
rsc: new _rsc.RSCPathnameNormalizer()
|
|
328
326
|
};
|
|
329
327
|
return {
|
|
330
328
|
headers,
|
|
@@ -364,10 +362,7 @@ async function setupFsCheck(opts) {
|
|
|
364
362
|
// Simulate minimal mode requests by normalizing RSC and postponed
|
|
365
363
|
// requests.
|
|
366
364
|
if (opts.minimalMode) {
|
|
367
|
-
|
|
368
|
-
if ((_normalizers_prefetchRSC = normalizers.prefetchRSC) == null ? void 0 : _normalizers_prefetchRSC.match(itemPath)) {
|
|
369
|
-
itemPath = normalizers.prefetchRSC.normalize(itemPath, true);
|
|
370
|
-
} else if (normalizers.rsc.match(itemPath)) {
|
|
365
|
+
if (normalizers.rsc.match(itemPath)) {
|
|
371
366
|
itemPath = normalizers.rsc.normalize(itemPath, true);
|
|
372
367
|
}
|
|
373
368
|
}
|
|
@@ -497,10 +497,12 @@ function getResolveRoutes(fsChecker, config, opts, renderServer, renderServerOpt
|
|
|
497
497
|
delete parsedDestination.query;
|
|
498
498
|
parsedDestination.search = (0, _serverrouteutils.stringifyQuery)(req, query);
|
|
499
499
|
parsedDestination.pathname = (0, _utils2.normalizeRepeatedSlashes)(parsedDestination.pathname);
|
|
500
|
+
// @ts-expect-error // custom ParsedUrl
|
|
501
|
+
const unsafeParsedUrl = parsedDestination;
|
|
500
502
|
return {
|
|
501
503
|
finished: true,
|
|
502
|
-
|
|
503
|
-
|
|
504
|
+
parsedUrl: unsafeParsedUrl,
|
|
505
|
+
resHeaders: null,
|
|
504
506
|
statusCode: (0, _redirectstatus.getRedirectStatus)(route)
|
|
505
507
|
};
|
|
506
508
|
}
|
|
@@ -555,9 +557,11 @@ function getResolveRoutes(fsChecker, config, opts, renderServer, renderServerOpt
|
|
|
555
557
|
}
|
|
556
558
|
}
|
|
557
559
|
if (parsedDestination.protocol) {
|
|
560
|
+
// @ts-expect-error // custom ParsedUrl
|
|
561
|
+
const unsafeParsedUrl = parsedDestination;
|
|
558
562
|
return {
|
|
559
|
-
|
|
560
|
-
|
|
563
|
+
parsedUrl: unsafeParsedUrl,
|
|
564
|
+
resHeaders: null,
|
|
561
565
|
finished: true
|
|
562
566
|
};
|
|
563
567
|
}
|
|
@@ -179,7 +179,7 @@ async function getRequestHandlers({ dir, port, isDev, onDevServerCleanup, server
|
|
|
179
179
|
async function startServer(serverOptions) {
|
|
180
180
|
const { dir, isDev, hostname, minimalMode, allowRetry, keepAliveTimeout, selfSignedCertificate } = serverOptions;
|
|
181
181
|
let { port } = serverOptions;
|
|
182
|
-
process.title = `next-server (v${"16.
|
|
182
|
+
process.title = `next-server (v${"16.1.1"})`;
|
|
183
183
|
let handlersReady = ()=>{};
|
|
184
184
|
let handlersError = ()=>{};
|
|
185
185
|
let handlersPromise = new Promise((resolve, reject)=>{
|
|
@@ -397,10 +397,10 @@ async function startServer(serverOptions) {
|
|
|
397
397
|
handlersReady();
|
|
398
398
|
const formatDurationText = startServerProcessDuration > 2000 ? `${Math.round(startServerProcessDuration / 100) / 10}s` : `${Math.round(startServerProcessDuration)}ms`;
|
|
399
399
|
_log.event(`Ready in ${formatDurationText}`);
|
|
400
|
-
if (process.env.TURBOPACK) {
|
|
400
|
+
if (process.env.TURBOPACK && isDev) {
|
|
401
401
|
await (0, _turbopackwarning.validateTurboNextConfig)({
|
|
402
402
|
dir: serverOptions.dir,
|
|
403
|
-
|
|
403
|
+
configPhase: _constants.PHASE_DEVELOPMENT_SERVER
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
406
|
} catch (err) {
|
|
@@ -257,6 +257,10 @@ class NextTracerImpl {
|
|
|
257
257
|
attributes.set(key, value);
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
|
+
withSpan(span, fn) {
|
|
261
|
+
const spanContext = trace.setSpan(context.active(), span);
|
|
262
|
+
return context.with(spanContext, fn);
|
|
263
|
+
}
|
|
260
264
|
}
|
|
261
265
|
const getTracer = (()=>{
|
|
262
266
|
const tracer = new NextTracerImpl();
|
|
@@ -36,8 +36,7 @@ const _tracer = require("./lib/trace/tracer");
|
|
|
36
36
|
const _constants1 = require("./lib/trace/constants");
|
|
37
37
|
const _loadmanifestexternal = require("./load-manifest.external");
|
|
38
38
|
const _wait = require("../lib/wait");
|
|
39
|
-
const
|
|
40
|
-
const _actionutils = require("./app-render/action-utils");
|
|
39
|
+
const _manifestssingleton = require("./app-render/manifests-singleton");
|
|
41
40
|
const _normalizepagepath = require("../shared/lib/page-path/normalize-page-path");
|
|
42
41
|
const _ismetadataroute = require("../lib/metadata/is-metadata-route");
|
|
43
42
|
async function loadManifestWithRetries(manifestPath, attempts = 3) {
|
|
@@ -124,13 +123,10 @@ needsManifestsForLegacyReasons }) {
|
|
|
124
123
|
// manifests to our global store so Server Action's encryption util can access
|
|
125
124
|
// to them at the top level of the page module.
|
|
126
125
|
if (serverActionsManifest && clientReferenceManifest) {
|
|
127
|
-
(0,
|
|
126
|
+
(0, _manifestssingleton.setManifestsSingleton)({
|
|
128
127
|
page,
|
|
129
128
|
clientReferenceManifest,
|
|
130
|
-
serverActionsManifest
|
|
131
|
-
serverModuleMap: (0, _actionutils.createServerModuleMap)({
|
|
132
|
-
serverActionsManifest
|
|
133
|
-
})
|
|
129
|
+
serverActionsManifest
|
|
134
130
|
});
|
|
135
131
|
}
|
|
136
132
|
const ComponentMod = await (0, _require.requirePage)(page, distDir, isAppPath);
|
|
@@ -151,8 +147,6 @@ needsManifestsForLegacyReasons }) {
|
|
|
151
147
|
getServerSideProps,
|
|
152
148
|
getStaticProps,
|
|
153
149
|
getStaticPaths,
|
|
154
|
-
clientReferenceManifest,
|
|
155
|
-
serverActionsManifest,
|
|
156
150
|
isAppPath,
|
|
157
151
|
page,
|
|
158
152
|
routeModule
|