@oqura/wisdom 0.0.0-stage → 0.3.1-beta.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/LICENSE +202 -0
- package/NOTICE +4 -0
- package/README.md +150 -3
- package/dist/src/bin.js +13 -0
- package/dist/src/captures.js +866 -0
- package/dist/src/cli.js +577 -0
- package/dist/src/client.js +116 -0
- package/dist/src/clone.js +72 -0
- package/dist/src/connect.js +87 -0
- package/dist/src/content.js +27 -0
- package/dist/src/conversation.js +254 -0
- package/dist/src/daemon.js +178 -0
- package/dist/src/dashboard.js +32 -0
- package/dist/src/database.js +101 -0
- package/dist/src/discovery.js +525 -0
- package/dist/src/doctor.js +145 -0
- package/dist/src/evidence.js +37 -0
- package/dist/src/handoff.js +60 -0
- package/dist/src/harnesses/claude-code/adapter.js +79 -0
- package/dist/src/harnesses/claude-code/hook.js +63 -0
- package/dist/src/harnesses/claude-code/launch.js +58 -0
- package/dist/src/harnesses/codex/adapter.js +144 -0
- package/dist/src/harnesses/codex/hook.js +102 -0
- package/dist/src/harnesses/codex/launch.js +194 -0
- package/dist/src/harnesses/index.js +53 -0
- package/dist/src/harnesses/launch.js +217 -0
- package/dist/src/harnesses/pi/adapter.js +44 -0
- package/dist/src/harnesses/pi/extension.js +119 -0
- package/dist/src/harnesses/pi/launch.js +82 -0
- package/dist/src/harnesses/types.js +42 -0
- package/dist/src/ledger.js +277 -0
- package/dist/src/markdown.js +173 -0
- package/dist/src/mcp.js +32 -0
- package/dist/src/paths.js +109 -0
- package/dist/src/prices.js +40 -0
- package/dist/src/schema.js +64 -0
- package/dist/src/secrets.js +62 -0
- package/dist/src/share.js +243 -0
- package/dist/src/shared.js +179 -0
- package/dist/src/stats.js +171 -0
- package/dist/src/store.js +2 -0
- package/dist/src/views.js +98 -0
- package/dist/src/workspace.js +294 -0
- package/dist-dashboard/.next/BUILD_ID +1 -0
- package/dist-dashboard/.next/app-path-routes-manifest.json +7 -0
- package/dist-dashboard/.next/build-manifest.json +54 -0
- package/dist-dashboard/.next/package.json +1 -0
- package/dist-dashboard/.next/prerender-manifest.json +69 -0
- package/dist-dashboard/.next/required-server-files.json +374 -0
- package/dist-dashboard/.next/routes-manifest.json +75 -0
- package/dist-dashboard/.next/server/app/_global-error/page/app-paths-manifest.json +3 -0
- package/dist-dashboard/.next/server/app/_global-error/page/build-manifest.json +21 -0
- package/dist-dashboard/.next/server/app/_global-error/page/next-font-manifest.json +6 -0
- package/dist-dashboard/.next/server/app/_global-error/page/react-loadable-manifest.json +1 -0
- package/dist-dashboard/.next/server/app/_global-error/page/server-reference-manifest.json +4 -0
- package/dist-dashboard/.next/server/app/_global-error/page.js +10 -0
- package/dist-dashboard/.next/server/app/_global-error/page.js.map +5 -0
- package/dist-dashboard/.next/server/app/_global-error/page.js.nft.json +1 -0
- package/dist-dashboard/.next/server/app/_global-error/page_client-reference-manifest.js +3 -0
- package/dist-dashboard/.next/server/app/_global-error.html +1 -0
- package/dist-dashboard/.next/server/app/_global-error.meta +30 -0
- package/dist-dashboard/.next/server/app/_global-error.rsc +18 -0
- package/dist-dashboard/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +23 -0
- package/dist-dashboard/.next/server/app/_global-error.segments/_full.segment.rsc +18 -0
- package/dist-dashboard/.next/server/app/_global-error.segments/_tree.segment.rsc +2 -0
- package/dist-dashboard/.next/server/app/_not-found/page/app-paths-manifest.json +3 -0
- package/dist-dashboard/.next/server/app/_not-found/page/build-manifest.json +21 -0
- package/dist-dashboard/.next/server/app/_not-found/page/next-font-manifest.json +6 -0
- package/dist-dashboard/.next/server/app/_not-found/page/react-loadable-manifest.json +1 -0
- package/dist-dashboard/.next/server/app/_not-found/page/server-reference-manifest.json +4 -0
- package/dist-dashboard/.next/server/app/_not-found/page.js +12 -0
- package/dist-dashboard/.next/server/app/_not-found/page.js.map +5 -0
- package/dist-dashboard/.next/server/app/_not-found/page.js.nft.json +1 -0
- package/dist-dashboard/.next/server/app/_not-found/page_client-reference-manifest.js +3 -0
- package/dist-dashboard/.next/server/app/_not-found.html +4 -0
- package/dist-dashboard/.next/server/app/_not-found.meta +35 -0
- package/dist-dashboard/.next/server/app/_not-found.rsc +20 -0
- package/dist-dashboard/.next/server/app/_not-found.segments/_full.segment.rsc +20 -0
- package/dist-dashboard/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +26 -0
- package/dist-dashboard/.next/server/app/_not-found.segments/_tree.segment.rsc +4 -0
- package/dist-dashboard/.next/server/app/api/live/route/app-paths-manifest.json +3 -0
- package/dist-dashboard/.next/server/app/api/live/route/build-manifest.json +12 -0
- package/dist-dashboard/.next/server/app/api/live/route/server-reference-manifest.json +4 -0
- package/dist-dashboard/.next/server/app/api/live/route.js +7 -0
- package/dist-dashboard/.next/server/app/api/live/route.js.map +5 -0
- package/dist-dashboard/.next/server/app/api/live/route.js.nft.json +1 -0
- package/dist-dashboard/.next/server/app/api/live/route_client-reference-manifest.js +3 -0
- package/dist-dashboard/.next/server/app/api/view/route/app-paths-manifest.json +3 -0
- package/dist-dashboard/.next/server/app/api/view/route/build-manifest.json +12 -0
- package/dist-dashboard/.next/server/app/api/view/route/server-reference-manifest.json +4 -0
- package/dist-dashboard/.next/server/app/api/view/route.js +7 -0
- package/dist-dashboard/.next/server/app/api/view/route.js.map +5 -0
- package/dist-dashboard/.next/server/app/api/view/route.js.nft.json +1 -0
- package/dist-dashboard/.next/server/app/api/view/route_client-reference-manifest.js +3 -0
- package/dist-dashboard/.next/server/app/page/app-paths-manifest.json +3 -0
- package/dist-dashboard/.next/server/app/page/build-manifest.json +21 -0
- package/dist-dashboard/.next/server/app/page/next-font-manifest.json +6 -0
- package/dist-dashboard/.next/server/app/page/react-loadable-manifest.json +1 -0
- package/dist-dashboard/.next/server/app/page/server-reference-manifest.json +4 -0
- package/dist-dashboard/.next/server/app/page.js +13 -0
- package/dist-dashboard/.next/server/app/page.js.map +5 -0
- package/dist-dashboard/.next/server/app/page.js.nft.json +1 -0
- package/dist-dashboard/.next/server/app/page_client-reference-manifest.js +3 -0
- package/dist-dashboard/.next/server/app-paths-manifest.json +7 -0
- package/dist-dashboard/.next/server/chunks/[externals]__0bwf06g0pqv3h._.js +3 -0
- package/dist-dashboard/.next/server/chunks/[root-of-the-server]__17sjqi0dthgwf._.js +5 -0
- package/dist-dashboard/.next/server/chunks/[turbopack]_runtime.js +937 -0
- package/dist-dashboard/.next/server/chunks/_0ak64smt0plep._.js +3 -0
- package/dist-dashboard/.next/server/chunks/_17wd0do43vgms._.js +3 -0
- package/dist-dashboard/.next/server/chunks/_1cstru0a1pgds._.js +6 -0
- package/dist-dashboard/.next/server/chunks/_next-internal_server_app_api_live_route_actions_0dk5m02naz6qd.js +3 -0
- package/dist-dashboard/.next/server/chunks/_next-internal_server_app_api_view_route_actions_1xagbxi05m8ul.js +3 -0
- package/dist-dashboard/.next/server/chunks/lib_watchdog_ts_0ica6d9fc6bpo._.js +3 -0
- package/dist-dashboard/.next/server/chunks/ssr/[root-of-the-server]__0m5uvupnpkk3r._.js +3 -0
- package/dist-dashboard/.next/server/chunks/ssr/[root-of-the-server]__0py1t7q9ntzgc._.js +3 -0
- package/dist-dashboard/.next/server/chunks/ssr/[root-of-the-server]__1_44ly6o596ao._.js +3 -0
- package/dist-dashboard/.next/server/chunks/ssr/[root-of-the-server]__1cf6qt9agg_9-._.js +14 -0
- package/dist-dashboard/.next/server/chunks/ssr/[root-of-the-server]__1ireqd10pl8it._.js +6 -0
- package/dist-dashboard/.next/server/chunks/ssr/[root-of-the-server]__1jhlq20oy3-ee._.js +3 -0
- package/dist-dashboard/.next/server/chunks/ssr/[root-of-the-server]__1ru_-wpbt025r._.js +3 -0
- package/dist-dashboard/.next/server/chunks/ssr/[turbopack]_runtime.js +937 -0
- package/dist-dashboard/.next/server/chunks/ssr/_next-internal_server_app__global-error_page_actions_0zi5s8-psc_d2.js +3 -0
- package/dist-dashboard/.next/server/chunks/ssr/_next-internal_server_app__not-found_page_actions_0pt47yrisjoev.js +3 -0
- package/dist-dashboard/.next/server/chunks/ssr/_next-internal_server_app_page_actions_0hhsz1jew5ls7.js +3 -0
- package/dist-dashboard/.next/server/chunks/ssr/components_Dashboard_tsx_1o2cg2bz5flxn._.js +3 -0
- package/dist-dashboard/.next/server/chunks/ssr/node_modules_01xbj_9zg44kw._.js +33 -0
- package/dist-dashboard/.next/server/chunks/ssr/node_modules_0gxlxpuufujz9._.js +33 -0
- package/dist-dashboard/.next/server/chunks/ssr/node_modules_next_dist_0janj0i6dqko7._.js +6 -0
- package/dist-dashboard/.next/server/chunks/ssr/node_modules_next_dist_1c5t_vsn6u8fr._.js +3 -0
- package/dist-dashboard/.next/server/chunks/ssr/node_modules_next_dist_1hgv5i-pr1hza._.js +3 -0
- package/dist-dashboard/.next/server/chunks/ssr/node_modules_next_dist_client_components_0wpq8j32_ibz4._.js +3 -0
- package/dist-dashboard/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_0symwr9mbf-fh.js +3 -0
- package/dist-dashboard/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_0l_sp0xky89qu.js +3 -0
- package/dist-dashboard/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_12cvwrhav8wvb.js +3 -0
- package/dist-dashboard/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_19--w_z4y02i7.js +3 -0
- package/dist-dashboard/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1nazowj1bdbgt.js +3 -0
- package/dist-dashboard/.next/server/functions-config-manifest.json +4 -0
- package/dist-dashboard/.next/server/instrumentation.js +4 -0
- package/dist-dashboard/.next/server/middleware-build-manifest.js +54 -0
- package/dist-dashboard/.next/server/middleware-manifest.json +6 -0
- package/dist-dashboard/.next/server/next-font-manifest.js +1 -0
- package/dist-dashboard/.next/server/next-font-manifest.json +6 -0
- package/dist-dashboard/.next/server/pages/404.html +4 -0
- package/dist-dashboard/.next/server/pages/500.html +1 -0
- package/dist-dashboard/.next/server/pages-manifest.json +4 -0
- package/dist-dashboard/.next/server/prefetch-hints.json +25 -0
- package/dist-dashboard/.next/server/preview-props.json +5 -0
- package/dist-dashboard/.next/server/server-reference-manifest.js +1 -0
- package/dist-dashboard/.next/server/server-reference-manifest.json +5 -0
- package/dist-dashboard/.next/static/V_Lu58_YNtYKUueKtqIh7/_buildManifest.js +11 -0
- package/dist-dashboard/.next/static/V_Lu58_YNtYKUueKtqIh7/_clientMiddlewareManifest.js +1 -0
- package/dist-dashboard/.next/static/V_Lu58_YNtYKUueKtqIh7/_ssgManifest.js +1 -0
- package/dist-dashboard/.next/static/chunks/0cz1d0mv5g_q7.js +1 -0
- package/dist-dashboard/.next/static/chunks/0nwv0w1bwzuep.css +1 -0
- package/dist-dashboard/.next/static/chunks/0r-yur70-ku2o.js +22 -0
- package/dist-dashboard/.next/static/chunks/0umf92h1sb77c.js +1 -0
- package/dist-dashboard/.next/static/chunks/2bmsncssm91b5.js +1 -0
- package/dist-dashboard/.next/static/chunks/2khxl0v1q4i6n.js +1 -0
- package/dist-dashboard/.next/static/chunks/3cfn99dbrcvvp.js +31 -0
- package/dist-dashboard/.next/static/chunks/turbopack-3-ry682tkyiqk.js +1 -0
- package/dist-dashboard/node_modules/@next/env/dist/index.js +1 -0
- package/dist-dashboard/node_modules/@next/env/package.json +36 -0
- package/dist-dashboard/node_modules/@swc/helpers/LICENSE +201 -0
- package/dist-dashboard/node_modules/@swc/helpers/cjs/_interop_require_default.cjs +6 -0
- package/dist-dashboard/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs +38 -0
- package/dist-dashboard/node_modules/@swc/helpers/esm/_interop_require_default.js +4 -0
- package/dist-dashboard/node_modules/@swc/helpers/esm/_interop_require_wildcard.js +36 -0
- package/dist-dashboard/node_modules/@swc/helpers/package.json +705 -0
- package/dist-dashboard/node_modules/client-only/index.js +0 -0
- package/dist-dashboard/node_modules/client-only/package.json +19 -0
- package/dist-dashboard/node_modules/next/dist/build/adapter/build-complete.js +1648 -0
- package/dist-dashboard/node_modules/next/dist/build/adapter/fallback-shell-runs.js +140 -0
- package/dist-dashboard/node_modules/next/dist/build/adapter/setup-node-env.external.js +15 -0
- package/dist-dashboard/node_modules/next/dist/build/adapter/synthetic-symlinks.js +85 -0
- package/dist-dashboard/node_modules/next/dist/build/after-production-compile.js +96 -0
- package/dist-dashboard/node_modules/next/dist/build/analysis/extract-const-value.js +229 -0
- package/dist-dashboard/node_modules/next/dist/build/analysis/get-page-static-info.js +646 -0
- package/dist-dashboard/node_modules/next/dist/build/analysis/parse-module.js +20 -0
- package/dist-dashboard/node_modules/next/dist/build/analyze/graph-dump.js +291 -0
- package/dist-dashboard/node_modules/next/dist/build/analyze/index.js +259 -0
- package/dist-dashboard/node_modules/next/dist/build/analyze/snapshot.js +199 -0
- package/dist-dashboard/node_modules/next/dist/build/babel/loader/get-config.js +420 -0
- package/dist-dashboard/node_modules/next/dist/build/babel/loader/index.js +56 -0
- package/dist-dashboard/node_modules/next/dist/build/babel/loader/transform.js +103 -0
- package/dist-dashboard/node_modules/next/dist/build/babel/loader/util.js +20 -0
- package/dist-dashboard/node_modules/next/dist/build/babel/plugins/commonjs.js +42 -0
- package/dist-dashboard/node_modules/next/dist/build/babel/plugins/jsx-pragma.js +74 -0
- package/dist-dashboard/node_modules/next/dist/build/babel/plugins/next-font-unsupported.js +32 -0
- package/dist-dashboard/node_modules/next/dist/build/babel/plugins/next-page-config.js +84 -0
- package/dist-dashboard/node_modules/next/dist/build/babel/plugins/next-page-disallow-re-export-all-exports.js +25 -0
- package/dist-dashboard/node_modules/next/dist/build/babel/plugins/next-ssg-transform.js +329 -0
- package/dist-dashboard/node_modules/next/dist/build/babel/plugins/optimize-hook-destructuring.js +60 -0
- package/dist-dashboard/node_modules/next/dist/build/babel/plugins/react-loadable-plugin.js +145 -0
- package/dist-dashboard/node_modules/next/dist/build/babel/preset.js +250 -0
- package/dist-dashboard/node_modules/next/dist/build/browser-variant-modules.js +28 -0
- package/dist-dashboard/node_modules/next/dist/build/build-context.js +58 -0
- package/dist-dashboard/node_modules/next/dist/build/collect-build-traces.js +552 -0
- package/dist-dashboard/node_modules/next/dist/build/compiler.js +84 -0
- package/dist-dashboard/node_modules/next/dist/build/create-compiler-aliases.js +479 -0
- package/dist-dashboard/node_modules/next/dist/build/define-env.js +257 -0
- package/dist-dashboard/node_modules/next/dist/build/duration-to-string.js +98 -0
- package/dist-dashboard/node_modules/next/dist/build/entries.js +682 -0
- package/dist-dashboard/node_modules/next/dist/build/file-classifier.js +76 -0
- package/dist-dashboard/node_modules/next/dist/build/generate-build-id.js +27 -0
- package/dist-dashboard/node_modules/next/dist/build/generate-routes-manifest.js +93 -0
- package/dist-dashboard/node_modules/next/dist/build/get-babel-config-file.js +35 -0
- package/dist-dashboard/node_modules/next/dist/build/get-babel-loader-config.js +129 -0
- package/dist-dashboard/node_modules/next/dist/build/get-convention-file-base-name.js +29 -0
- package/dist-dashboard/node_modules/next/dist/build/get-static-info-including-layouts.js +80 -0
- package/dist-dashboard/node_modules/next/dist/build/get-supported-browsers.js +38 -0
- package/dist-dashboard/node_modules/next/dist/build/handle-entrypoints.js +170 -0
- package/dist-dashboard/node_modules/next/dist/build/handle-externals.js +286 -0
- package/dist-dashboard/node_modules/next/dist/build/index.js +3027 -0
- package/dist-dashboard/node_modules/next/dist/build/is-writeable.js +26 -0
- package/dist-dashboard/node_modules/next/dist/build/jest/__mocks__/empty.js +10 -0
- package/dist-dashboard/node_modules/next/dist/build/jest/__mocks__/fileMock.js +15 -0
- package/dist-dashboard/node_modules/next/dist/build/jest/__mocks__/nextFontMock.js +20 -0
- package/dist-dashboard/node_modules/next/dist/build/jest/__mocks__/styleMock.js +10 -0
- package/dist-dashboard/node_modules/next/dist/build/jest/jest.js +245 -0
- package/dist-dashboard/node_modules/next/dist/build/jest/object-proxy.js +50 -0
- package/dist-dashboard/node_modules/next/dist/build/load-entrypoint.js +30 -0
- package/dist-dashboard/node_modules/next/dist/build/load-jsconfig.js +178 -0
- package/dist-dashboard/node_modules/next/dist/build/lockfile.js +238 -0
- package/dist-dashboard/node_modules/next/dist/build/manifests/formatter/format-manifest.js +19 -0
- package/dist-dashboard/node_modules/next/dist/build/next-config-ts/require-hook.js +85 -0
- package/dist-dashboard/node_modules/next/dist/build/next-config-ts/transpile-config.js +136 -0
- package/dist-dashboard/node_modules/next/dist/build/next-dir-paths.js +37 -0
- package/dist-dashboard/node_modules/next/dist/build/nft.js +119 -0
- package/dist-dashboard/node_modules/next/dist/build/normalize-catchall-routes.js +28 -0
- package/dist-dashboard/node_modules/next/dist/build/output/format.js +84 -0
- package/dist-dashboard/node_modules/next/dist/build/output/index.js +186 -0
- package/dist-dashboard/node_modules/next/dist/build/output/log.js +135 -0
- package/dist-dashboard/node_modules/next/dist/build/output/store.js +204 -0
- package/dist-dashboard/node_modules/next/dist/build/page-extensions-type.js +6 -0
- package/dist-dashboard/node_modules/next/dist/build/polyfills/fetch/index.js +6 -0
- package/dist-dashboard/node_modules/next/dist/build/polyfills/fetch/whatwg-fetch.js +7 -0
- package/dist-dashboard/node_modules/next/dist/build/polyfills/object-assign.js +6 -0
- package/dist-dashboard/node_modules/next/dist/build/polyfills/object.assign/auto.js +4 -0
- package/dist-dashboard/node_modules/next/dist/build/polyfills/object.assign/implementation.js +4 -0
- package/dist-dashboard/node_modules/next/dist/build/polyfills/object.assign/index.js +19 -0
- package/dist-dashboard/node_modules/next/dist/build/polyfills/object.assign/polyfill.js +6 -0
- package/dist-dashboard/node_modules/next/dist/build/polyfills/object.assign/shim.js +6 -0
- package/dist-dashboard/node_modules/next/dist/build/polyfills/polyfill-module.js +1 -0
- package/dist-dashboard/node_modules/next/dist/build/polyfills/polyfill-nomodule.js +1 -0
- package/dist-dashboard/node_modules/next/dist/build/polyfills/process.js +5 -0
- package/dist-dashboard/node_modules/next/dist/build/preview-key-utils.js +91 -0
- package/dist-dashboard/node_modules/next/dist/build/print-build-errors.js +141 -0
- package/dist-dashboard/node_modules/next/dist/build/progress.js +147 -0
- package/dist-dashboard/node_modules/next/dist/build/rendering-mode.js +26 -0
- package/dist-dashboard/node_modules/next/dist/build/route-bundle-stats.js +155 -0
- package/dist-dashboard/node_modules/next/dist/build/route-discovery.js +381 -0
- package/dist-dashboard/node_modules/next/dist/build/segment-config/app/app-segment-config.js +192 -0
- package/dist-dashboard/node_modules/next/dist/build/segment-config/app/app-segments.js +238 -0
- package/dist-dashboard/node_modules/next/dist/build/segment-config/app/collect-root-param-keys.js +48 -0
- package/dist-dashboard/node_modules/next/dist/build/segment-config/middleware/middleware-config.js +121 -0
- package/dist-dashboard/node_modules/next/dist/build/segment-config/pages/pages-segment-config.js +62 -0
- package/dist-dashboard/node_modules/next/dist/build/sort-by-page-exts.js +30 -0
- package/dist-dashboard/node_modules/next/dist/build/spinner.js +158 -0
- package/dist-dashboard/node_modules/next/dist/build/static-paths/app/extract-pathname-route-param-segments-from-loader-tree.js +143 -0
- package/dist-dashboard/node_modules/next/dist/build/static-paths/app.js +880 -0
- package/dist-dashboard/node_modules/next/dist/build/static-paths/pages.js +137 -0
- package/dist-dashboard/node_modules/next/dist/build/static-paths/param-matching.js +200 -0
- package/dist-dashboard/node_modules/next/dist/build/static-paths/types.js +6 -0
- package/dist-dashboard/node_modules/next/dist/build/static-paths/utils.js +119 -0
- package/dist-dashboard/node_modules/next/dist/build/swc/helpers.js +15 -0
- package/dist-dashboard/node_modules/next/dist/build/swc/index.js +1339 -0
- package/dist-dashboard/node_modules/next/dist/build/swc/install-bindings.js +30 -0
- package/dist-dashboard/node_modules/next/dist/build/swc/jest-transformer.js +77 -0
- package/dist-dashboard/node_modules/next/dist/build/swc/loaderWorkerPool.js +40 -0
- package/dist-dashboard/node_modules/next/dist/build/swc/options.js +411 -0
- package/dist-dashboard/node_modules/next/dist/build/swc/types.js +6 -0
- package/dist-dashboard/node_modules/next/dist/build/templates/app-page-runtime.js +1636 -0
- package/dist-dashboard/node_modules/next/dist/build/templates/app-page.js +59 -0
- package/dist-dashboard/node_modules/next/dist/build/templates/app-route.js +437 -0
- package/dist-dashboard/node_modules/next/dist/build/templates/edge-app-route.js +124 -0
- package/dist-dashboard/node_modules/next/dist/build/templates/edge-ssr-app.js +388 -0
- package/dist-dashboard/node_modules/next/dist/build/templates/edge-ssr.js +380 -0
- package/dist-dashboard/node_modules/next/dist/build/templates/edge-wrapper.js +24 -0
- package/dist-dashboard/node_modules/next/dist/build/templates/helpers.js +36 -0
- package/dist-dashboard/node_modules/next/dist/build/templates/middleware.js +172 -0
- package/dist-dashboard/node_modules/next/dist/build/templates/pages-api.js +211 -0
- package/dist-dashboard/node_modules/next/dist/build/templates/pages-edge-api.js +78 -0
- package/dist-dashboard/node_modules/next/dist/build/templates/pages.js +155 -0
- package/dist-dashboard/node_modules/next/dist/build/turbopack-analyze/index.js +130 -0
- package/dist-dashboard/node_modules/next/dist/build/turbopack-build/impl.js +255 -0
- package/dist-dashboard/node_modules/next/dist/build/turbopack-build/index.js +18 -0
- package/dist-dashboard/node_modules/next/dist/build/turborepo-access-trace/env.js +29 -0
- package/dist-dashboard/node_modules/next/dist/build/turborepo-access-trace/helpers.js +100 -0
- package/dist-dashboard/node_modules/next/dist/build/turborepo-access-trace/index.js +30 -0
- package/dist-dashboard/node_modules/next/dist/build/turborepo-access-trace/result.js +51 -0
- package/dist-dashboard/node_modules/next/dist/build/turborepo-access-trace/tcp.js +41 -0
- package/dist-dashboard/node_modules/next/dist/build/turborepo-access-trace/types.js +8 -0
- package/dist-dashboard/node_modules/next/dist/build/type-check.js +169 -0
- package/dist-dashboard/node_modules/next/dist/build/utils.js +1348 -0
- package/dist-dashboard/node_modules/next/dist/build/validate-app-paths.js +190 -0
- package/dist-dashboard/node_modules/next/dist/build/warn-about-edge-runtime.js +78 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/alias/react-dom-server-experimental.js +34 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/alias/react-dom-server.js +34 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/cache-invalidation.js +87 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/config/blocks/base.js +82 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/config/blocks/css/index.js +573 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/config/blocks/css/loaders/client.js +49 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/config/blocks/css/loaders/file-resolve.js +21 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/config/blocks/css/loaders/getCssModuleLocalIdent.js +37 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/config/blocks/css/loaders/global.js +67 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/config/blocks/css/loaders/index.js +22 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/config/blocks/css/loaders/modules.js +88 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/config/blocks/css/loaders/next-font.js +63 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/config/blocks/css/messages.js +45 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/config/blocks/css/plugins.js +162 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/config/blocks/images/index.js +42 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/config/blocks/images/messages.js +16 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/config/helpers.js +78 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/config/index.js +47 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/config/utils.js +13 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/css-loader/src/CssSyntaxError.js +32 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/css-loader/src/camelcase.js +89 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js +268 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/css-loader/src/plugins/index.js +36 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/css-loader/src/plugins/postcss-icss-parser.js +105 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/css-loader/src/plugins/postcss-import-parser.js +204 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/css-loader/src/plugins/postcss-url-parser.js +314 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/css-loader/src/runtime/api.js +83 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/css-loader/src/runtime/getUrl.js +23 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/css-loader/src/utils.js +459 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/devtool/devtool-style-inject.js +129 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/empty-loader.js +14 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/error-loader.js +32 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/get-module-build-info.js +15 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/instrumentation-client-stub.js +8 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/codegen.js +156 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/index.js +14 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/interface.js +16 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/loader.js +441 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/utils.js +58 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/metadata/discover.js +120 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/metadata/resolve-route-data.js +183 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/metadata/types.js +7 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/modularize-import-loader.js +39 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/next-app-loader/create-app-route-code.js +61 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/next-app-loader/index.js +943 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/next-barrel-loader.js +268 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js +37 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/next-edge-app-route-loader/index.js +63 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/next-edge-function-loader.js +55 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/next-edge-ssr-loader/index.js +108 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/next-error-browser-binary-loader.js +17 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/next-flight-action-entry-loader.js +32 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/next-flight-client-entry-loader.js +45 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/next-flight-client-module-loader.js +47 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/next-flight-css-loader.js +52 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/next-flight-loader/action-client-wrapper.js +33 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/next-flight-loader/action-validate.js +23 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/next-flight-loader/cache-wrapper.js +13 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/next-flight-loader/index.js +199 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/next-flight-loader/module-proxy.js +14 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/next-flight-loader/server-reference.js +13 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/next-flight-loader/track-dynamic-import.js +13 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/next-flight-server-reference-proxy-loader.js +29 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js +125 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/next-font-loader/postcss-next-font.js +165 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/next-image-loader/blur.js +73 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/next-image-loader/index.js +87 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/next-instrumentation-client-loader.js +31 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/next-invalid-import-error-loader.js +24 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/next-metadata-image-loader.js +153 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/next-metadata-route-loader.js +342 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/next-middleware-asset-loader.js +46 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/next-middleware-loader.js +61 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/next-middleware-wasm-loader.js +46 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/next-root-params-loader.js +164 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js +129 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/next-style-loader/index.js +220 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/next-style-loader/runtime/injectStylesIntoLinkTag.js +57 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/next-style-loader/runtime/injectStylesIntoStyleTag.js +217 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/next-style-loader/runtime/isEqualLocals.js +27 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js +241 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/Error.js +40 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/Warning.js +35 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js +119 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/utils.js +86 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/index.js +97 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/lib/file-protocol.js +70 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/lib/join-function.js +186 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/lib/postcss.js +88 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/lib/value-processor.js +97 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/loaders/utils.js +100 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/build-manifest-plugin-utils.js +65 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/build-manifest-plugin.js +179 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/copy-file-plugin.js +67 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/css-chunking-plugin.js +277 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/css-minimizer-plugin.js +92 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/deferred-entries-plugin.js +115 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/devtools-ignore-list-plugin.js +78 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/eval-source-map-dev-tool-plugin.js +218 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/flight-client-entry-plugin.js +801 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/flight-manifest-plugin.js +429 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/force-complete-runtime.js +42 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/jsconfig-paths-plugin.js +219 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/memory-with-gc-cache-plugin.js +114 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/middleware-plugin.js +629 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/mini-css-extract-plugin.js +24 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/minify-webpack-plugin/src/index.js +188 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/next-font-manifest-plugin.js +120 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/next-trace-entrypoints-plugin.js +547 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/next-types-plugin/index.js +433 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/next-types-plugin/shared.js +14 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/nextjs-require-cache-hot-reloader.js +53 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/optional-peer-dependency-resolve-plugin.js +45 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/pages-manifest-plugin.js +146 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/profiling-plugin.js +282 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/react-loadable-plugin.js +169 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/rspack-flight-client-entry-plugin.js +97 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/rspack-profiling-plugin.js +62 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/slow-module-detection-plugin.js +178 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/subresource-integrity-plugin.js +58 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/telemetry-plugin/telemetry-plugin.js +188 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/telemetry-plugin/update-telemetry-loader-context-from-swc.js +28 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/telemetry-plugin/use-cache-tracker-utils.js +43 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/getModuleTrace.js +89 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/index.js +43 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parse-dynamic-code-evaluation-error.js +19 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseBabel.js +29 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseCss.js +29 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseNextAppLoaderError.js +26 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseNextFontError.js +33 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseNextInvalidImportError.js +26 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseNotFoundError.js +180 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseScss.js +43 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/simpleWebpackError.js +18 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/webpackModuleError.js +138 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/stringify-request.js +15 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack/utils.js +109 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack-build/impl.js +402 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack-build/index.js +184 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack-config-rules/resolve.js +55 -0
- package/dist-dashboard/node_modules/next/dist/build/webpack-config.js +2375 -0
- package/dist-dashboard/node_modules/next/dist/build/worker.js +44 -0
- package/dist-dashboard/node_modules/next/dist/build/write-build-id.js +19 -0
- package/dist-dashboard/node_modules/next/dist/cli/next-test.js +175 -0
- package/dist-dashboard/node_modules/next/dist/client/add-base-path.js +24 -0
- package/dist-dashboard/node_modules/next/dist/client/app-call-server.js +32 -0
- package/dist-dashboard/node_modules/next/dist/client/app-find-source-map-url.js +39 -0
- package/dist-dashboard/node_modules/next/dist/client/assign-location.js +29 -0
- package/dist-dashboard/node_modules/next/dist/client/components/app-router-announcer.js +78 -0
- package/dist-dashboard/node_modules/next/dist/client/components/app-router-headers.js +128 -0
- package/dist-dashboard/node_modules/next/dist/client/components/app-router-instance.js +263 -0
- package/dist-dashboard/node_modules/next/dist/client/components/app-router-state.js +527 -0
- package/dist-dashboard/node_modules/next/dist/client/components/app-router-utils.js +58 -0
- package/dist-dashboard/node_modules/next/dist/client/components/app-router.js +531 -0
- package/dist-dashboard/node_modules/next/dist/client/components/builtin/default.js +35 -0
- package/dist-dashboard/node_modules/next/dist/client/components/builtin/error-styles.js +165 -0
- package/dist-dashboard/node_modules/next/dist/client/components/builtin/global-error.js +100 -0
- package/dist-dashboard/node_modules/next/dist/client/components/dev-root-http-access-fallback-boundary.js +48 -0
- package/dist-dashboard/node_modules/next/dist/client/components/error-boundary.js +148 -0
- package/dist-dashboard/node_modules/next/dist/client/components/errors/graceful-degrade-boundary.js +86 -0
- package/dist-dashboard/node_modules/next/dist/client/components/errors/root-error-boundary.js +41 -0
- package/dist-dashboard/node_modules/next/dist/client/components/forbidden.js +40 -0
- package/dist-dashboard/node_modules/next/dist/client/components/handle-isr-error.js +45 -0
- package/dist-dashboard/node_modules/next/dist/client/components/hooks-server-context.js +42 -0
- package/dist-dashboard/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js +125 -0
- package/dist-dashboard/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js +72 -0
- package/dist-dashboard/node_modules/next/dist/client/components/instant-samples.js +127 -0
- package/dist-dashboard/node_modules/next/dist/client/components/is-next-router-error.js +23 -0
- package/dist-dashboard/node_modules/next/dist/client/components/links.js +315 -0
- package/dist-dashboard/node_modules/next/dist/client/components/nav-failure-handler.js +61 -0
- package/dist-dashboard/node_modules/next/dist/client/components/navigation-devtools.js +126 -0
- package/dist-dashboard/node_modules/next/dist/client/components/navigation-dynamic-rendering.js +38 -0
- package/dist-dashboard/node_modules/next/dist/client/components/navigation-untracked.js +68 -0
- package/dist-dashboard/node_modules/next/dist/client/components/navigation.js +242 -0
- package/dist-dashboard/node_modules/next/dist/client/components/navigation.react-server.js +71 -0
- package/dist-dashboard/node_modules/next/dist/client/components/navigator.js +73 -0
- package/dist-dashboard/node_modules/next/dist/client/components/not-found.js +38 -0
- package/dist-dashboard/node_modules/next/dist/client/components/offline.js +172 -0
- package/dist-dashboard/node_modules/next/dist/client/components/prefetch.js +83 -0
- package/dist-dashboard/node_modules/next/dist/client/components/readonly-url-search-params.js +41 -0
- package/dist-dashboard/node_modules/next/dist/client/components/redirect-boundary.js +107 -0
- package/dist-dashboard/node_modules/next/dist/client/components/redirect-error.js +43 -0
- package/dist-dashboard/node_modules/next/dist/client/components/redirect-status-code.js +24 -0
- package/dist-dashboard/node_modules/next/dist/client/components/redirect.js +79 -0
- package/dist-dashboard/node_modules/next/dist/client/components/render-tree.js +1439 -0
- package/dist-dashboard/node_modules/next/dist/client/components/router-reducer/compute-changed-path.js +213 -0
- package/dist-dashboard/node_modules/next/dist/client/components/router-reducer/create-href-from-url.js +21 -0
- package/dist-dashboard/node_modules/next/dist/client/components/router-reducer/create-initial-router-state.js +174 -0
- package/dist-dashboard/node_modules/next/dist/client/components/router-reducer/create-router-cache-key.js +26 -0
- package/dist-dashboard/node_modules/next/dist/client/components/router-reducer/create-segment-key.js +42 -0
- package/dist-dashboard/node_modules/next/dist/client/components/router-reducer/fetch-server-response.js +624 -0
- package/dist-dashboard/node_modules/next/dist/client/components/router-reducer/is-navigating-to-new-root-layout.js +70 -0
- package/dist-dashboard/node_modules/next/dist/client/components/router-reducer/reducers/committed-state.js +49 -0
- package/dist-dashboard/node_modules/next/dist/client/components/router-reducer/reducers/has-interception-route-in-current-tree.js +38 -0
- package/dist-dashboard/node_modules/next/dist/client/components/router-reducer/reducers/hmr-refresh-reducer.js +29 -0
- package/dist-dashboard/node_modules/next/dist/client/components/router-reducer/reducers/navigate-reducer.js +56 -0
- package/dist-dashboard/node_modules/next/dist/client/components/router-reducer/reducers/refresh-reducer.js +93 -0
- package/dist-dashboard/node_modules/next/dist/client/components/router-reducer/reducers/restore-reducer.js +78 -0
- package/dist-dashboard/node_modules/next/dist/client/components/router-reducer/reducers/server-action-reducer.js +350 -0
- package/dist-dashboard/node_modules/next/dist/client/components/router-reducer/reducers/server-patch-reducer.js +67 -0
- package/dist-dashboard/node_modules/next/dist/client/components/router-reducer/router-reducer-types.js +70 -0
- package/dist-dashboard/node_modules/next/dist/client/components/router-reducer/router-reducer.js +66 -0
- package/dist-dashboard/node_modules/next/dist/client/components/router-reducer/set-cache-busting-search-param.js +66 -0
- package/dist-dashboard/node_modules/next/dist/client/components/router-transition.js +135 -0
- package/dist-dashboard/node_modules/next/dist/client/components/segment-cache/bfcache.js +120 -0
- package/dist-dashboard/node_modules/next/dist/client/components/segment-cache/cache-key.js +56 -0
- package/dist-dashboard/node_modules/next/dist/client/components/segment-cache/cache-map.js +326 -0
- package/dist-dashboard/node_modules/next/dist/client/components/segment-cache/cache.js +2671 -0
- package/dist-dashboard/node_modules/next/dist/client/components/segment-cache/decode-server-response.js +419 -0
- package/dist-dashboard/node_modules/next/dist/client/components/segment-cache/fetch.js +37 -0
- package/dist-dashboard/node_modules/next/dist/client/components/segment-cache/lru.js +152 -0
- package/dist-dashboard/node_modules/next/dist/client/components/segment-cache/navigation-testing-lock.js +415 -0
- package/dist-dashboard/node_modules/next/dist/client/components/segment-cache/optimistic-routes.js +643 -0
- package/dist-dashboard/node_modules/next/dist/client/components/segment-cache/scheduler.js +1809 -0
- package/dist-dashboard/node_modules/next/dist/client/components/segment-cache/types.js +93 -0
- package/dist-dashboard/node_modules/next/dist/client/components/segment-cache/vary-path.js +340 -0
- package/dist-dashboard/node_modules/next/dist/client/components/sequential-router-queue.js +163 -0
- package/dist-dashboard/node_modules/next/dist/client/components/server-async-storage.js +43 -0
- package/dist-dashboard/node_modules/next/dist/client/components/static-generation-bailout.js +42 -0
- package/dist-dashboard/node_modules/next/dist/client/components/unauthorized.js +41 -0
- package/dist-dashboard/node_modules/next/dist/client/components/unrecognized-action-error.js +39 -0
- package/dist-dashboard/node_modules/next/dist/client/components/unresolved-thenable.js +23 -0
- package/dist-dashboard/node_modules/next/dist/client/components/unstable-rethrow.js +31 -0
- package/dist-dashboard/node_modules/next/dist/client/components/use-action-queue.js +140 -0
- package/dist-dashboard/node_modules/next/dist/client/components/use-offline.js +68 -0
- package/dist-dashboard/node_modules/next/dist/client/dev/debug-channel.js +111 -0
- package/dist-dashboard/node_modules/next/dist/client/flight-data-helpers.js +182 -0
- package/dist-dashboard/node_modules/next/dist/client/has-base-path.js +23 -0
- package/dist-dashboard/node_modules/next/dist/client/lib/console.js +177 -0
- package/dist-dashboard/node_modules/next/dist/client/lib/javascript-url.js +32 -0
- package/dist-dashboard/node_modules/next/dist/client/navigation-build-id.js +53 -0
- package/dist-dashboard/node_modules/next/dist/client/normalize-trailing-slash.js +37 -0
- package/dist-dashboard/node_modules/next/dist/client/remove-base-path.js +32 -0
- package/dist-dashboard/node_modules/next/dist/client/route-params.js +271 -0
- package/dist-dashboard/node_modules/next/dist/client/sequential-call-server.js +45 -0
- package/dist-dashboard/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js +339 -0
- package/dist-dashboard/node_modules/next/dist/compiled/@edge-runtime/cookies/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/@edge-runtime/ponyfill/index.js +46 -0
- package/dist-dashboard/node_modules/next/dist/compiled/@edge-runtime/ponyfill/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/@edge-runtime/primitives/abort-controller.js.text.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/@edge-runtime/primitives/console.js.text.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/@edge-runtime/primitives/events.js.text.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/@edge-runtime/primitives/index.js +5 -0
- package/dist-dashboard/node_modules/next/dist/compiled/@edge-runtime/primitives/load.js +18713 -0
- package/dist-dashboard/node_modules/next/dist/compiled/@edge-runtime/primitives/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/@edge-runtime/primitives/stream.js +44 -0
- package/dist-dashboard/node_modules/next/dist/compiled/@edge-runtime/primitives/timers.js.text.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/@edge-runtime/primitives/url.js.text.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/@hapi/accept/index.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/@hapi/accept/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/@mswjs/interceptors/ClientRequest/index.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/@mswjs/interceptors/ClientRequest/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/@napi-rs/triples/index.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/@napi-rs/triples/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/@opentelemetry/api/index.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/@opentelemetry/api/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/@vercel/detect-agent/index.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/@vercel/detect-agent/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/async-retry/index.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/async-retry/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/async-sema/index.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/async-sema/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/busboy/index.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/busboy/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/bytes/index.js +8 -0
- package/dist-dashboard/node_modules/next/dist/compiled/bytes/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/ci-info/index.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/ci-info/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/commander/index.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/commander/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/comment-json/index.js +7 -0
- package/dist-dashboard/node_modules/next/dist/compiled/comment-json/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/compression/index.js +58 -0
- package/dist-dashboard/node_modules/next/dist/compiled/compression/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/conf/index.js +3 -0
- package/dist-dashboard/node_modules/next/dist/compiled/conf/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/content-disposition/index.js +6 -0
- package/dist-dashboard/node_modules/next/dist/compiled/content-disposition/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/cookie/index.js +7 -0
- package/dist-dashboard/node_modules/next/dist/compiled/cookie/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/cross-spawn/index.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/cross-spawn/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/debug/index.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/debug/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/edge-runtime/index.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/edge-runtime/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/find-up/index.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/find-up/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/fresh/index.js +8 -0
- package/dist-dashboard/node_modules/next/dist/compiled/fresh/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/hash.js/sha256/256.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/hash.js/sha256/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/httpxy/index.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/httpxy/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/image-detector/detector.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/image-size/index.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/image-size/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/ipaddr.js/ipaddr.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/ipaddr.js/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/is-animated/index.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/is-animated/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/is-docker/index.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/is-docker/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/is-wsl/index.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/is-wsl/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/jsonwebtoken/index.js +11 -0
- package/dist-dashboard/node_modules/next/dist/compiled/jsonwebtoken/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/nanoid/index.cjs +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/nanoid/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +327 -0
- package/dist-dashboard/node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js +327 -0
- package/dist-dashboard/node_modules/next/dist/compiled/next-server/app-route-turbo.runtime.prod.js +8 -0
- package/dist-dashboard/node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js +20 -0
- package/dist-dashboard/node_modules/next/dist/compiled/p-limit/index.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/p-limit/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/p-queue/index.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/p-queue/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/path-browserify/index.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/path-browserify/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/path-to-regexp/index.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/path-to-regexp/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/picomatch/index.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/picomatch/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/react-is/cjs/react-is.development.js +133 -0
- package/dist-dashboard/node_modules/next/dist/compiled/react-is/cjs/react-is.production.js +130 -0
- package/dist-dashboard/node_modules/next/dist/compiled/react-is/index.js +7 -0
- package/dist-dashboard/node_modules/next/dist/compiled/react-is/package.json +26 -0
- package/dist-dashboard/node_modules/next/dist/compiled/regenerator-runtime/package.json +19 -0
- package/dist-dashboard/node_modules/next/dist/compiled/regenerator-runtime/runtime.js +729 -0
- package/dist-dashboard/node_modules/next/dist/compiled/semver/index.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/semver/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/send/index.js +70 -0
- package/dist-dashboard/node_modules/next/dist/compiled/send/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/source-map/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/source-map/source-map.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/stacktrace-parser/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/string-hash/index.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/string-hash/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/strip-ansi/index.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/strip-ansi/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/superstruct/index.cjs +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/superstruct/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/tar/index.min.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/tar/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/text-table/index.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/text-table/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/watchpack/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/watchpack/watchpack.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/write-file-atomic/index.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/write-file-atomic/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/ws/index.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/ws/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/zod/index.cjs +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/zod/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/zod-validation-error/index.js +1 -0
- package/dist-dashboard/node_modules/next/dist/compiled/zod-validation-error/package.json +1 -0
- package/dist-dashboard/node_modules/next/dist/experimental/testmode/context.js +57 -0
- package/dist-dashboard/node_modules/next/dist/experimental/testmode/fetch.js +150 -0
- package/dist-dashboard/node_modules/next/dist/experimental/testmode/httpget.js +33 -0
- package/dist-dashboard/node_modules/next/dist/experimental/testmode/server-edge.js +32 -0
- package/dist-dashboard/node_modules/next/dist/experimental/testmode/server.js +73 -0
- package/dist-dashboard/node_modules/next/dist/export/helpers/create-incremental-cache.js +66 -0
- package/dist-dashboard/node_modules/next/dist/export/utils.js +37 -0
- package/dist-dashboard/node_modules/next/dist/lib/batcher.js +65 -0
- package/dist-dashboard/node_modules/next/dist/lib/build-custom-route.js +46 -0
- package/dist-dashboard/node_modules/next/dist/lib/bundler.js +168 -0
- package/dist-dashboard/node_modules/next/dist/lib/client-and-server-references.js +54 -0
- package/dist-dashboard/node_modules/next/dist/lib/coalesced-function.js +39 -0
- package/dist-dashboard/node_modules/next/dist/lib/compile-error.js +14 -0
- package/dist-dashboard/node_modules/next/dist/lib/constants.js +420 -0
- package/dist-dashboard/node_modules/next/dist/lib/create-client-router-filter.js +83 -0
- package/dist-dashboard/node_modules/next/dist/lib/default-transpiled-packages.json +1 -0
- package/dist-dashboard/node_modules/next/dist/lib/detect-typo.js +51 -0
- package/dist-dashboard/node_modules/next/dist/lib/dist-dir.js +88 -0
- package/dist-dashboard/node_modules/next/dist/lib/download-swc.js +175 -0
- package/dist-dashboard/node_modules/next/dist/lib/fallback.js +88 -0
- package/dist-dashboard/node_modules/next/dist/lib/file-exists.js +53 -0
- package/dist-dashboard/node_modules/next/dist/lib/find-config.js +102 -0
- package/dist-dashboard/node_modules/next/dist/lib/find-pages-dir.js +57 -0
- package/dist-dashboard/node_modules/next/dist/lib/find-root.js +280 -0
- package/dist-dashboard/node_modules/next/dist/lib/format-cli-help-output.js +84 -0
- package/dist-dashboard/node_modules/next/dist/lib/format-dynamic-import-path.js +43 -0
- package/dist-dashboard/node_modules/next/dist/lib/format-server-error.js +75 -0
- package/dist-dashboard/node_modules/next/dist/lib/framework/boundary-components.js +62 -0
- package/dist-dashboard/node_modules/next/dist/lib/framework/boundary-constants.js +36 -0
- package/dist-dashboard/node_modules/next/dist/lib/fs/rename.js +87 -0
- package/dist-dashboard/node_modules/next/dist/lib/fs/write-atomic.js +28 -0
- package/dist-dashboard/node_modules/next/dist/lib/generate-interception-routes-rewrites.js +52 -0
- package/dist-dashboard/node_modules/next/dist/lib/get-files-in-dir.js +33 -0
- package/dist-dashboard/node_modules/next/dist/lib/get-network-host.js +44 -0
- package/dist-dashboard/node_modules/next/dist/lib/get-package-version.js +118 -0
- package/dist-dashboard/node_modules/next/dist/lib/get-project-dir.js +51 -0
- package/dist-dashboard/node_modules/next/dist/lib/git-worktree.js +74 -0
- package/dist-dashboard/node_modules/next/dist/lib/has-necessary-dependencies.js +49 -0
- package/dist-dashboard/node_modules/next/dist/lib/helpers/get-cache-directory.js +62 -0
- package/dist-dashboard/node_modules/next/dist/lib/helpers/get-npx-command.js +29 -0
- package/dist-dashboard/node_modules/next/dist/lib/helpers/get-online.js +50 -0
- package/dist-dashboard/node_modules/next/dist/lib/helpers/get-pkg-manager.js +65 -0
- package/dist-dashboard/node_modules/next/dist/lib/helpers/get-registry.js +41 -0
- package/dist-dashboard/node_modules/next/dist/lib/helpers/get-reserved-port.js +116 -0
- package/dist-dashboard/node_modules/next/dist/lib/helpers/git.js +104 -0
- package/dist-dashboard/node_modules/next/dist/lib/helpers/install.js +83 -0
- package/dist-dashboard/node_modules/next/dist/lib/import-next-warning.js +50 -0
- package/dist-dashboard/node_modules/next/dist/lib/inline-static-env.js +108 -0
- package/dist-dashboard/node_modules/next/dist/lib/install-dependencies.js +40 -0
- package/dist-dashboard/node_modules/next/dist/lib/interop-default.js +16 -0
- package/dist-dashboard/node_modules/next/dist/lib/is-api-route.js +15 -0
- package/dist-dashboard/node_modules/next/dist/lib/is-app-page-route.js +15 -0
- package/dist-dashboard/node_modules/next/dist/lib/is-app-route-route.js +15 -0
- package/dist-dashboard/node_modules/next/dist/lib/is-edge-runtime.js +16 -0
- package/dist-dashboard/node_modules/next/dist/lib/is-error.js +66 -0
- package/dist-dashboard/node_modules/next/dist/lib/is-interception-route-rewrite.js +18 -0
- package/dist-dashboard/node_modules/next/dist/lib/is-internal-component.js +36 -0
- package/dist-dashboard/node_modules/next/dist/lib/is-serializable-props.js +82 -0
- package/dist-dashboard/node_modules/next/dist/lib/known-edge-safe-packages.json +1 -0
- package/dist-dashboard/node_modules/next/dist/lib/load-custom-routes.js +594 -0
- package/dist-dashboard/node_modules/next/dist/lib/memory/gc-observer.js +53 -0
- package/dist-dashboard/node_modules/next/dist/lib/memory/shutdown.js +29 -0
- package/dist-dashboard/node_modules/next/dist/lib/memory/startup.js +47 -0
- package/dist-dashboard/node_modules/next/dist/lib/memory/trace.js +109 -0
- package/dist-dashboard/node_modules/next/dist/lib/metadata/constants.js +40 -0
- package/dist-dashboard/node_modules/next/dist/lib/metadata/default-metadata.js +82 -0
- package/dist-dashboard/node_modules/next/dist/lib/metadata/generate/icon-mark.js +22 -0
- package/dist-dashboard/node_modules/next/dist/lib/metadata/generate/utils.js +52 -0
- package/dist-dashboard/node_modules/next/dist/lib/metadata/get-metadata-route.js +162 -0
- package/dist-dashboard/node_modules/next/dist/lib/metadata/index.js +18 -0
- package/dist-dashboard/node_modules/next/dist/lib/metadata/is-metadata-route.js +221 -0
- package/dist-dashboard/node_modules/next/dist/lib/metadata/metadata-context.js +18 -0
- package/dist-dashboard/node_modules/next/dist/lib/metadata/metadata-elements.js +1498 -0
- package/dist-dashboard/node_modules/next/dist/lib/metadata/metadata-parallel.js +175 -0
- package/dist-dashboard/node_modules/next/dist/lib/metadata/metadata-resolution-primitives.js +467 -0
- package/dist-dashboard/node_modules/next/dist/lib/metadata/metadata.js +174 -0
- package/dist-dashboard/node_modules/next/dist/lib/metadata/resolve-metadata-parallel.js +632 -0
- package/dist-dashboard/node_modules/next/dist/lib/metadata/resolve-metadata.js +485 -0
- package/dist-dashboard/node_modules/next/dist/lib/metadata/resolvers/resolve-basics.js +232 -0
- package/dist-dashboard/node_modules/next/dist/lib/metadata/resolvers/resolve-icons.js +56 -0
- package/dist-dashboard/node_modules/next/dist/lib/metadata/resolvers/resolve-opengraph.js +199 -0
- package/dist-dashboard/node_modules/next/dist/lib/metadata/resolvers/resolve-title.js +40 -0
- package/dist-dashboard/node_modules/next/dist/lib/metadata/resolvers/resolve-url.js +135 -0
- package/dist-dashboard/node_modules/next/dist/lib/metadata/types/alternative-urls-types.js +7 -0
- package/dist-dashboard/node_modules/next/dist/lib/metadata/types/extra-types.js +9 -0
- package/dist-dashboard/node_modules/next/dist/lib/metadata/types/icons.js +6 -0
- package/dist-dashboard/node_modules/next/dist/lib/metadata/types/manifest-types.js +6 -0
- package/dist-dashboard/node_modules/next/dist/lib/metadata/types/metadata-interface.js +18 -0
- package/dist-dashboard/node_modules/next/dist/lib/metadata/types/metadata-types.js +10 -0
- package/dist-dashboard/node_modules/next/dist/lib/metadata/types/opengraph-types.js +6 -0
- package/dist-dashboard/node_modules/next/dist/lib/metadata/types/resolvers.js +6 -0
- package/dist-dashboard/node_modules/next/dist/lib/metadata/types/twitter-types.js +7 -0
- package/dist-dashboard/node_modules/next/dist/lib/mime-type.js +20 -0
- package/dist-dashboard/node_modules/next/dist/lib/mkcert.js +188 -0
- package/dist-dashboard/node_modules/next/dist/lib/multi-file-writer.js +75 -0
- package/dist-dashboard/node_modules/next/dist/lib/needs-experimental-react.js +16 -0
- package/dist-dashboard/node_modules/next/dist/lib/non-nullable.js +15 -0
- package/dist-dashboard/node_modules/next/dist/lib/normalize-path.js +21 -0
- package/dist-dashboard/node_modules/next/dist/lib/oxford-comma-list.js +15 -0
- package/dist-dashboard/node_modules/next/dist/lib/page-types.js +18 -0
- package/dist-dashboard/node_modules/next/dist/lib/patch-incorrect-lockfile.js +181 -0
- package/dist-dashboard/node_modules/next/dist/lib/pick.js +19 -0
- package/dist-dashboard/node_modules/next/dist/lib/picocolors.js +187 -0
- package/dist-dashboard/node_modules/next/dist/lib/pretty-bytes.js +70 -0
- package/dist-dashboard/node_modules/next/dist/lib/profiles-dir.js +45 -0
- package/dist-dashboard/node_modules/next/dist/lib/realpath.js +20 -0
- package/dist-dashboard/node_modules/next/dist/lib/recursive-copy.js +76 -0
- package/dist-dashboard/node_modules/next/dist/lib/recursive-delete.js +176 -0
- package/dist-dashboard/node_modules/next/dist/lib/recursive-readdir.js +124 -0
- package/dist-dashboard/node_modules/next/dist/lib/redirect-status.js +46 -0
- package/dist-dashboard/node_modules/next/dist/lib/require-instrumentation-client.js +32 -0
- package/dist-dashboard/node_modules/next/dist/lib/resolve-build-paths.js +178 -0
- package/dist-dashboard/node_modules/next/dist/lib/resolve-from.js +57 -0
- package/dist-dashboard/node_modules/next/dist/lib/route-pattern-normalizer.js +107 -0
- package/dist-dashboard/node_modules/next/dist/lib/scheduler.js +64 -0
- package/dist-dashboard/node_modules/next/dist/lib/semver-noop.js +18 -0
- package/dist-dashboard/node_modules/next/dist/lib/server-external-packages.jsonc +103 -0
- package/dist-dashboard/node_modules/next/dist/lib/setup-exception-listeners.js +11 -0
- package/dist-dashboard/node_modules/next/dist/lib/static-env.js +88 -0
- package/dist-dashboard/node_modules/next/dist/lib/try-to-parse-path.js +67 -0
- package/dist-dashboard/node_modules/next/dist/lib/turbopack-cache-seed.js +171 -0
- package/dist-dashboard/node_modules/next/dist/lib/turbopack-warning.js +185 -0
- package/dist-dashboard/node_modules/next/dist/lib/typescript/diagnosticFormatter.js +243 -0
- package/dist-dashboard/node_modules/next/dist/lib/typescript/getTypeScriptConfiguration.js +61 -0
- package/dist-dashboard/node_modules/next/dist/lib/typescript/getTypeScriptIntent.js +52 -0
- package/dist-dashboard/node_modules/next/dist/lib/typescript/loadTsConfig.js +181 -0
- package/dist-dashboard/node_modules/next/dist/lib/typescript/missingDependencyError.js +22 -0
- package/dist-dashboard/node_modules/next/dist/lib/typescript/runTypeCheck.js +141 -0
- package/dist-dashboard/node_modules/next/dist/lib/typescript/runTypeCheckCli.js +52 -0
- package/dist-dashboard/node_modules/next/dist/lib/typescript/runTypeScriptCli.js +244 -0
- package/dist-dashboard/node_modules/next/dist/lib/typescript/type-paths.js +51 -0
- package/dist-dashboard/node_modules/next/dist/lib/typescript/writeAppTypeDeclarations.js +77 -0
- package/dist-dashboard/node_modules/next/dist/lib/typescript/writeConfigurationDefaults.js +395 -0
- package/dist-dashboard/node_modules/next/dist/lib/url.js +75 -0
- package/dist-dashboard/node_modules/next/dist/lib/verify-partytown-setup.js +100 -0
- package/dist-dashboard/node_modules/next/dist/lib/verify-root-layout.js +165 -0
- package/dist-dashboard/node_modules/next/dist/lib/verify-typescript-setup.js +271 -0
- package/dist-dashboard/node_modules/next/dist/lib/wait.js +19 -0
- package/dist-dashboard/node_modules/next/dist/lib/warn-missing-react-dependencies.js +33 -0
- package/dist-dashboard/node_modules/next/dist/lib/with-promise-cache.js +24 -0
- package/dist-dashboard/node_modules/next/dist/lib/worker.js +230 -0
- package/dist-dashboard/node_modules/next/dist/server/ReactDOMServerPages.js +16 -0
- package/dist-dashboard/node_modules/next/dist/server/accept-header.js +120 -0
- package/dist-dashboard/node_modules/next/dist/server/after/after-context.js +158 -0
- package/dist-dashboard/node_modules/next/dist/server/after/after.js +24 -0
- package/dist-dashboard/node_modules/next/dist/server/after/awaiter.js +70 -0
- package/dist-dashboard/node_modules/next/dist/server/after/builtin-request-context.js +38 -0
- package/dist-dashboard/node_modules/next/dist/server/after/index.js +21 -0
- package/dist-dashboard/node_modules/next/dist/server/after/run-with-after.js +35 -0
- package/dist-dashboard/node_modules/next/dist/server/api-utils/get-cookie-parser.js +22 -0
- package/dist-dashboard/node_modules/next/dist/server/api-utils/index.js +208 -0
- package/dist-dashboard/node_modules/next/dist/server/api-utils/node/api-resolver.js +355 -0
- package/dist-dashboard/node_modules/next/dist/server/api-utils/node/parse-body.js +67 -0
- package/dist-dashboard/node_modules/next/dist/server/api-utils/node/try-get-preview-data.js +89 -0
- package/dist-dashboard/node_modules/next/dist/server/api-utils/web.js +17 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/action-async-storage-instance.js +14 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/action-async-storage.external.js +13 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/action-handler.js +1088 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/after-task-async-storage-instance.js +14 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/after-task-async-storage.external.js +13 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/app-render-prerender-utils.js +308 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/app-render-render-utils.js +72 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/app-render-scheduling.js +176 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/app-render.js +6631 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/async-local-storage.js +81 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/blocking-route-messages.js +230 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/cache-signal.js +207 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/collect-segment-data.js +1003 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/console-async-storage-instance.js +14 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/console-async-storage.external.js +13 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/create-component-styles-and-scripts.js +39 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/create-component-tree.js +782 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/create-error-handler.js +196 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/create-transport-tree-from-loader-tree.js +190 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/csrf-protection.js +86 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/debug-channel-server.js +47 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/debug-channel-server.node.js +60 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/debug-channel-server.web.js +56 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/dev-validation-error-delivery.js +28 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/dev-validation-events.js +26 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/dev-validation-scheduler.js +86 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/dev-validation-worker-globals.js +41 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/dev-validation-worker-snapshot.js +81 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js +14 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js +36 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/dynamic-rendering-client.js +124 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/dynamic-rendering.js +1132 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/encryption-utils-server.js +114 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/encryption-utils.js +89 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/encryption.js +248 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/entry-base.js +260 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/flight-render-result.js +28 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/get-asset-query-string.js +29 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/get-css-inlined-link-tags.js +45 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/get-layer-assets.js +69 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/get-preloadable-fonts.js +39 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/get-script-nonce-from-header.js +32 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/get-short-dynamic-param-type.js +25 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/has-loading-component-in-tree.js +19 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/instant-test-bootstrap.js +20 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js +31 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/instant-validation/boundary-impl.js +118 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js +38 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/instant-validation/instant-config.js +233 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/instant-validation/instant-samples.js +383 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/instant-validation/instant-validation-error.js +33 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/instant-validation/instant-validation.js +873 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/instant-validation/stream-utils.js +88 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/interop-default.js +17 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/make-get-server-inserted-html.js +91 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/manifests-singleton.js +399 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/metadata-insertion/create-server-inserted-metadata.js +29 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/module-loading/instrument-module-getter.js +32 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/module-loading/track-dynamic-import.js +49 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js +32 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js +62 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/parse-and-validate-flight-router-state.js +37 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/postponed-state.js +266 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/prospective-render-utils.js +70 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/react-large-shell-error.js +17 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/react-server.node.js +39 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/render-css-resource.js +57 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/render-in-browser.js +27 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/required-scripts.js +72 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/rsc/preloads.js +74 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/rsc/taint.js +75 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/segment-config/ensure-static.js +206 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/segment-explorer-path.js +128 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/server-inserted-html.js +77 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/staged-rendering.js +316 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/stale-time.js +101 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/stream-ops.js +155 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/stream-ops.node.js +848 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/stream-ops.web.js +233 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/strip-flight-headers.js +18 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/sync-io-messages.js +59 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/types.js +66 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/use-flight-response.js +204 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/vary-params.js +262 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/wait-for-response.js +36 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/walk-tree-with-flight-router-state.js +235 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/work-async-storage-instance.js +14 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/work-async-storage.external.js +13 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js +14 -0
- package/dist-dashboard/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js +260 -0
- package/dist-dashboard/node_modules/next/dist/server/async-storage/draft-mode-provider.js +58 -0
- package/dist-dashboard/node_modules/next/dist/server/async-storage/request-store.js +202 -0
- package/dist-dashboard/node_modules/next/dist/server/async-storage/with-store.js +6 -0
- package/dist-dashboard/node_modules/next/dist/server/async-storage/work-store.js +96 -0
- package/dist-dashboard/node_modules/next/dist/server/base-http/helpers.js +36 -0
- package/dist-dashboard/node_modules/next/dist/server/base-http/index.js +54 -0
- package/dist-dashboard/node_modules/next/dist/server/base-http/node.js +143 -0
- package/dist-dashboard/node_modules/next/dist/server/base-http/web.js +116 -0
- package/dist-dashboard/node_modules/next/dist/server/base-server.js +2147 -0
- package/dist-dashboard/node_modules/next/dist/server/body-streams.js +122 -0
- package/dist-dashboard/node_modules/next/dist/server/cache-dir.js +26 -0
- package/dist-dashboard/node_modules/next/dist/server/capsize-font-metrics.json +181516 -0
- package/dist-dashboard/node_modules/next/dist/server/ci-info.js +41 -0
- package/dist-dashboard/node_modules/next/dist/server/client-component-renderer-logger.js +171 -0
- package/dist-dashboard/node_modules/next/dist/server/config-schema.js +852 -0
- package/dist-dashboard/node_modules/next/dist/server/config-shared.js +417 -0
- package/dist-dashboard/node_modules/next/dist/server/config-utils.js +185 -0
- package/dist-dashboard/node_modules/next/dist/server/config.js +1658 -0
- package/dist-dashboard/node_modules/next/dist/server/create-deduped-by-callsite-server-error-logger.js +96 -0
- package/dist-dashboard/node_modules/next/dist/server/crypto-utils.js +70 -0
- package/dist-dashboard/node_modules/next/dist/server/dev/browser-logs/file-logger.js +186 -0
- package/dist-dashboard/node_modules/next/dist/server/dev/browser-logs/receive-logs.js +610 -0
- package/dist-dashboard/node_modules/next/dist/server/dev/browser-logs/source-map.js +222 -0
- package/dist-dashboard/node_modules/next/dist/server/dev/debug-channel.js +108 -0
- package/dist-dashboard/node_modules/next/dist/server/dev/dev-indicator-server-state.js +15 -0
- package/dist-dashboard/node_modules/next/dist/server/dev/dev-validation-worker-pool.js +233 -0
- package/dist-dashboard/node_modules/next/dist/server/dev/dev-validation-worker.js +308 -0
- package/dist-dashboard/node_modules/next/dist/server/dev/get-source-map-from-file.js +80 -0
- package/dist-dashboard/node_modules/next/dist/server/dev/hot-middleware.js +302 -0
- package/dist-dashboard/node_modules/next/dist/server/dev/hot-reloader-rspack.js +171 -0
- package/dist-dashboard/node_modules/next/dist/server/dev/hot-reloader-shared-utils.js +56 -0
- package/dist-dashboard/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +1894 -0
- package/dist-dashboard/node_modules/next/dist/server/dev/hot-reloader-types.js +63 -0
- package/dist-dashboard/node_modules/next/dist/server/dev/hot-reloader-webpack.js +1386 -0
- package/dist-dashboard/node_modules/next/dist/server/dev/log-requests.js +152 -0
- package/dist-dashboard/node_modules/next/dist/server/dev/messages.js +66 -0
- package/dist-dashboard/node_modules/next/dist/server/dev/middleware-turbopack.js +406 -0
- package/dist-dashboard/node_modules/next/dist/server/dev/middleware-webpack.js +487 -0
- package/dist-dashboard/node_modules/next/dist/server/dev/node-stack-frames.js +64 -0
- package/dist-dashboard/node_modules/next/dist/server/dev/on-demand-entry-handler.js +773 -0
- package/dist-dashboard/node_modules/next/dist/server/dev/parse-version-info.js +108 -0
- package/dist-dashboard/node_modules/next/dist/server/dev/require-cache.js +109 -0
- package/dist-dashboard/node_modules/next/dist/server/dev/runtime-error-state.js +220 -0
- package/dist-dashboard/node_modules/next/dist/server/dev/serialized-errors.js +63 -0
- package/dist-dashboard/node_modules/next/dist/server/dev/server-action-logger.js +37 -0
- package/dist-dashboard/node_modules/next/dist/server/dev/static-paths-worker.js +107 -0
- package/dist-dashboard/node_modules/next/dist/server/dev/turbopack-utils.js +711 -0
- package/dist-dashboard/node_modules/next/dist/server/dev/use-cache-probe-pool.js +178 -0
- package/dist-dashboard/node_modules/next/dist/server/dev/use-cache-probe-worker.js +181 -0
- package/dist-dashboard/node_modules/next/dist/server/dynamic-rendering-utils.js +528 -0
- package/dist-dashboard/node_modules/next/dist/server/font-utils.js +43 -0
- package/dist-dashboard/node_modules/next/dist/server/get-app-route-from-entrypoint.js +30 -0
- package/dist-dashboard/node_modules/next/dist/server/get-page-files.js +40 -0
- package/dist-dashboard/node_modules/next/dist/server/get-route-from-entrypoint.js +35 -0
- package/dist-dashboard/node_modules/next/dist/server/image-optimizer/detect-content-type.js +229 -0
- package/dist-dashboard/node_modules/next/dist/server/image-optimizer/extract-etag.js +53 -0
- package/dist-dashboard/node_modules/next/dist/server/image-optimizer/get-image-size.js +25 -0
- package/dist-dashboard/node_modules/next/dist/server/image-optimizer/get-max-age.js +41 -0
- package/dist-dashboard/node_modules/next/dist/server/image-optimizer/get-previously-cached-image-or-null.js +22 -0
- package/dist-dashboard/node_modules/next/dist/server/image-optimizer/image-error.js +23 -0
- package/dist-dashboard/node_modules/next/dist/server/image-optimizer/image-type.js +86 -0
- package/dist-dashboard/node_modules/next/dist/server/image-optimizer/transform.js +227 -0
- package/dist-dashboard/node_modules/next/dist/server/image-optimizer.js +878 -0
- package/dist-dashboard/node_modules/next/dist/server/instrumentation/types.js +6 -0
- package/dist-dashboard/node_modules/next/dist/server/instrumentation/utils.js +21 -0
- package/dist-dashboard/node_modules/next/dist/server/internal-utils.js +39 -0
- package/dist-dashboard/node_modules/next/dist/server/is-private-ip.js +36 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/app-dir-module.js +59 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/app-info-log.js +145 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/async-callback-set.js +29 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/cache-control.js +22 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/cache-handlers/default.external.js +18 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/cache-handlers/default.js +192 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/cache-handlers/types.js +8 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/chrome-devtools-workspace.js +112 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/clone-response.js +77 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/cpu-profile.js +56 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/decode-query-path-parameter.js +26 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/dedupe-fetch.js +159 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/dev-bundler-service.js +110 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/disk-lru-cache.external.js +63 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/encode-header-safe.js +44 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/etag.js +56 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/experimental/create-env-definitions.js +48 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/find-page-file.js +147 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/fix-mojibake.js +25 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/format-hostname.js +16 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/generate-agent-files.js +303 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/i18n-provider.js +125 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/implicit-tags.js +87 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/incremental-cache/file-system-cache.js +500 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/incremental-cache/index.js +556 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js +55 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js +81 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js +55 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/install-code-frame.js +22 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/is-ipv6.js +41 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/is-non-html-sec-fetch-dest.js +38 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/is-rsc-request.js +18 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/lazy-module.js +76 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/lazy-result.js +46 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/lru-cache.js +187 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/match-next-data-pathname.js +20 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/mock-request.js +345 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/module-loader/module-loader.js +8 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/module-loader/node-module-loader.js +21 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/module-loader/route-module-loader.js +22 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/node-fs-methods.js +42 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/params-utils.js +52 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/parse-stack.js +46 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/patch-fetch.js +1033 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/patch-set-header.js +45 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/postponed-request-body.js +60 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/release-compression-stream.js +24 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/render-server.js +149 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/route-cache-key.js +77 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/router-server.js +826 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/router-utils/block-cross-site-dev.js +108 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/router-utils/build-data-route.js +71 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/router-utils/build-prefetch-segment-data-route.js +50 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/router-utils/cache-life-type-utils.js +181 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/router-utils/decode-path-params.js +38 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/router-utils/filesystem.js +793 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js +149 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js +110 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/router-utils/normalize-catchall-routes.js +320 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/router-utils/proxy-request.js +128 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/router-utils/resolve-routes.js +652 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/router-utils/root-params-type-utils.js +61 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/router-utils/route-types-utils.js +326 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/router-utils/router-server-context.js +26 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/router-utils/strict-route-matching-config.js +28 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/router-utils/typegen.js +938 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/router-utils/types.js +6 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/server-action-request-meta.js +53 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/server-ipc/utils.js +83 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/source-maps.js +241 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/start-server.js +550 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/streaming-metadata.js +27 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/to-route.js +37 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/trace/constants.js +248 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/trace/local-span-recorder.js +385 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/trace/request-insights-identity.js +37 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/trace/request-insights.js +308 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/trace/span-store.js +69 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/trace/tracer.js +392 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/trace/utils.js +16 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/types.js +6 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/utils.js +343 -0
- package/dist-dashboard/node_modules/next/dist/server/lib/worker-utils.js +32 -0
- package/dist-dashboard/node_modules/next/dist/server/load-components.js +190 -0
- package/dist-dashboard/node_modules/next/dist/server/load-default-error-components.js +41 -0
- package/dist-dashboard/node_modules/next/dist/server/load-manifest.external.js +116 -0
- package/dist-dashboard/node_modules/next/dist/server/match-bundle.js +25 -0
- package/dist-dashboard/node_modules/next/dist/server/mcp/get-mcp-middleware.js +51 -0
- package/dist-dashboard/node_modules/next/dist/server/mcp/get-or-create-mcp-server.js +51 -0
- package/dist-dashboard/node_modules/next/dist/server/mcp/mcp-telemetry-tracker.js +82 -0
- package/dist-dashboard/node_modules/next/dist/server/mcp/tools/compile-route.js +86 -0
- package/dist-dashboard/node_modules/next/dist/server/mcp/tools/get-compilation-issues.js +68 -0
- package/dist-dashboard/node_modules/next/dist/server/mcp/tools/get-errors.js +114 -0
- package/dist-dashboard/node_modules/next/dist/server/mcp/tools/get-logs.js +67 -0
- package/dist-dashboard/node_modules/next/dist/server/mcp/tools/get-page-metadata.js +188 -0
- package/dist-dashboard/node_modules/next/dist/server/mcp/tools/get-project-metadata.js +59 -0
- package/dist-dashboard/node_modules/next/dist/server/mcp/tools/get-request-insights.js +57 -0
- package/dist-dashboard/node_modules/next/dist/server/mcp/tools/get-routes.js +136 -0
- package/dist-dashboard/node_modules/next/dist/server/mcp/tools/get-server-action-by-id.js +121 -0
- package/dist-dashboard/node_modules/next/dist/server/mcp/tools/next-instance-error-state.js +31 -0
- package/dist-dashboard/node_modules/next/dist/server/mcp/tools/utils/browser-communication.js +82 -0
- package/dist-dashboard/node_modules/next/dist/server/mcp/tools/utils/format-compilation-issues.js +72 -0
- package/dist-dashboard/node_modules/next/dist/server/mcp/tools/utils/format-errors.js +137 -0
- package/dist-dashboard/node_modules/next/dist/server/mcp/tools/utils/resolve-path-to-route.js +49 -0
- package/dist-dashboard/node_modules/next/dist/server/next-server.js +1453 -0
- package/dist-dashboard/node_modules/next/dist/server/next-typescript.js +13 -0
- package/dist-dashboard/node_modules/next/dist/server/next.js +473 -0
- package/dist-dashboard/node_modules/next/dist/server/node-environment-baseline.js +25 -0
- package/dist-dashboard/node_modules/next/dist/server/node-environment-extensions/console-dim.external.js +300 -0
- package/dist-dashboard/node_modules/next/dist/server/node-environment-extensions/console-exit.js +49 -0
- package/dist-dashboard/node_modules/next/dist/server/node-environment-extensions/console-file.js +56 -0
- package/dist-dashboard/node_modules/next/dist/server/node-environment-extensions/date.js +52 -0
- package/dist-dashboard/node_modules/next/dist/server/node-environment-extensions/error-inspect.js +8 -0
- package/dist-dashboard/node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js +630 -0
- package/dist-dashboard/node_modules/next/dist/server/node-environment-extensions/global-behaviors.js +29 -0
- package/dist-dashboard/node_modules/next/dist/server/node-environment-extensions/io-utils.js +103 -0
- package/dist-dashboard/node_modules/next/dist/server/node-environment-extensions/node-crypto.js +103 -0
- package/dist-dashboard/node_modules/next/dist/server/node-environment-extensions/process-error-handlers.js +161 -0
- package/dist-dashboard/node_modules/next/dist/server/node-environment-extensions/random.js +28 -0
- package/dist-dashboard/node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js +507 -0
- package/dist-dashboard/node_modules/next/dist/server/node-environment-extensions/web-crypto.js +45 -0
- package/dist-dashboard/node_modules/next/dist/server/node-environment.js +19 -0
- package/dist-dashboard/node_modules/next/dist/server/node-polyfill-crypto.js +21 -0
- package/dist-dashboard/node_modules/next/dist/server/normalizers/absolute-filename-normalizer.js +33 -0
- package/dist-dashboard/node_modules/next/dist/server/normalizers/built/app/app-bundle-path-normalizer.js +54 -0
- package/dist-dashboard/node_modules/next/dist/server/normalizers/built/app/app-filename-normalizer.js +22 -0
- package/dist-dashboard/node_modules/next/dist/server/normalizers/built/app/app-page-normalizer.js +40 -0
- package/dist-dashboard/node_modules/next/dist/server/normalizers/built/app/app-pathname-normalizer.js +55 -0
- package/dist-dashboard/node_modules/next/dist/server/normalizers/built/app/index.js +42 -0
- package/dist-dashboard/node_modules/next/dist/server/normalizers/built/pages/index.js +44 -0
- package/dist-dashboard/node_modules/next/dist/server/normalizers/built/pages/pages-bundle-path-normalizer.js +55 -0
- package/dist-dashboard/node_modules/next/dist/server/normalizers/built/pages/pages-filename-normalizer.js +22 -0
- package/dist-dashboard/node_modules/next/dist/server/normalizers/built/pages/pages-page-normalizer.js +19 -0
- package/dist-dashboard/node_modules/next/dist/server/normalizers/built/pages/pages-pathname-normalizer.js +19 -0
- package/dist-dashboard/node_modules/next/dist/server/normalizers/locale-route-normalizer.js +26 -0
- package/dist-dashboard/node_modules/next/dist/server/normalizers/normalizer.js +6 -0
- package/dist-dashboard/node_modules/next/dist/server/normalizers/normalizers.js +23 -0
- package/dist-dashboard/node_modules/next/dist/server/normalizers/prefixing-normalizer.js +26 -0
- package/dist-dashboard/node_modules/next/dist/server/normalizers/request/base-path.js +21 -0
- package/dist-dashboard/node_modules/next/dist/server/normalizers/request/next-data.js +34 -0
- package/dist-dashboard/node_modules/next/dist/server/normalizers/request/pathname-normalizer.js +6 -0
- package/dist-dashboard/node_modules/next/dist/server/normalizers/request/prefix.js +35 -0
- package/dist-dashboard/node_modules/next/dist/server/normalizers/request/rsc.js +19 -0
- package/dist-dashboard/node_modules/next/dist/server/normalizers/request/segment-prefix-rsc.js +33 -0
- package/dist-dashboard/node_modules/next/dist/server/normalizers/request/suffix.js +27 -0
- package/dist-dashboard/node_modules/next/dist/server/normalizers/underscore-normalizer.js +17 -0
- package/dist-dashboard/node_modules/next/dist/server/normalizers/wrap-normalizer-fn.js +17 -0
- package/dist-dashboard/node_modules/next/dist/server/og/cache-image-response.js +336 -0
- package/dist-dashboard/node_modules/next/dist/server/og/image-response.js +72 -0
- package/dist-dashboard/node_modules/next/dist/server/patch-error-inspect.js +515 -0
- package/dist-dashboard/node_modules/next/dist/server/pipe-readable.js +224 -0
- package/dist-dashboard/node_modules/next/dist/server/post-process.js +39 -0
- package/dist-dashboard/node_modules/next/dist/server/render-result.js +234 -0
- package/dist-dashboard/node_modules/next/dist/server/render.js +1004 -0
- package/dist-dashboard/node_modules/next/dist/server/request/cache-stages.js +250 -0
- package/dist-dashboard/node_modules/next/dist/server/request/connection.js +104 -0
- package/dist-dashboard/node_modules/next/dist/server/request/cookies.js +204 -0
- package/dist-dashboard/node_modules/next/dist/server/request/draft-mode.js +192 -0
- package/dist-dashboard/node_modules/next/dist/server/request/fallback-params.js +109 -0
- package/dist-dashboard/node_modules/next/dist/server/request/headers.js +201 -0
- package/dist-dashboard/node_modules/next/dist/server/request/io.js +87 -0
- package/dist-dashboard/node_modules/next/dist/server/request/params.js +500 -0
- package/dist-dashboard/node_modules/next/dist/server/request/pathname.js +89 -0
- package/dist-dashboard/node_modules/next/dist/server/request/root-params.js +146 -0
- package/dist-dashboard/node_modules/next/dist/server/request/search-params.js +505 -0
- package/dist-dashboard/node_modules/next/dist/server/request/utils.js +77 -0
- package/dist-dashboard/node_modules/next/dist/server/request-meta.js +55 -0
- package/dist-dashboard/node_modules/next/dist/server/require-hook.js +82 -0
- package/dist-dashboard/node_modules/next/dist/server/require.js +109 -0
- package/dist-dashboard/node_modules/next/dist/server/response-cache/index.js +361 -0
- package/dist-dashboard/node_modules/next/dist/server/response-cache/types.js +41 -0
- package/dist-dashboard/node_modules/next/dist/server/response-cache/utils.js +100 -0
- package/dist-dashboard/node_modules/next/dist/server/response-cache/web.js +104 -0
- package/dist-dashboard/node_modules/next/dist/server/resume-data-cache/cache-store.js +119 -0
- package/dist-dashboard/node_modules/next/dist/server/resume-data-cache/resume-data-cache.js +144 -0
- package/dist-dashboard/node_modules/next/dist/server/revalidation-utils.js +158 -0
- package/dist-dashboard/node_modules/next/dist/server/route-definitions/app-page-route-definition.js +16 -0
- package/dist-dashboard/node_modules/next/dist/server/route-definitions/app-route-route-definition.js +6 -0
- package/dist-dashboard/node_modules/next/dist/server/route-definitions/locale-route-definition.js +6 -0
- package/dist-dashboard/node_modules/next/dist/server/route-definitions/pages-api-route-definition.js +6 -0
- package/dist-dashboard/node_modules/next/dist/server/route-definitions/pages-route-definition.js +6 -0
- package/dist-dashboard/node_modules/next/dist/server/route-definitions/route-definition.js +6 -0
- package/dist-dashboard/node_modules/next/dist/server/route-kind.js +32 -0
- package/dist-dashboard/node_modules/next/dist/server/route-matches/app-page-route-match.js +6 -0
- package/dist-dashboard/node_modules/next/dist/server/route-matches/app-route-route-match.js +6 -0
- package/dist-dashboard/node_modules/next/dist/server/route-matches/locale-route-match.js +6 -0
- package/dist-dashboard/node_modules/next/dist/server/route-matches/pages-api-route-match.js +16 -0
- package/dist-dashboard/node_modules/next/dist/server/route-matches/pages-route-match.js +6 -0
- package/dist-dashboard/node_modules/next/dist/server/route-matches/route-match.js +6 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-page/dev-render-context.js +23 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-page/helpers/prerender-manifest-matcher.js +52 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-page/module.compiled.js +36 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-page/module.js +188 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-page/module.render.js +39 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-page/normalize-request-url.js +62 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-page/parse-request-headers.js +58 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/app-router-context.js +4 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/entrypoints.js +87 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/head-manager-context.js +4 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/hooks-client-context.js +4 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/image-config-context.js +4 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/router-context.js +4 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/server-inserted-html.js +4 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/entrypoints.js +136 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-compiler-runtime.js +4 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-dom.js +4 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-jsx-dev-runtime.js +4 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-jsx-runtime.js +4 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-server-dom-turbopack-server.js +4 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-server-dom-turbopack-static.js +4 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-server-dom-webpack-server.js +4 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-server-dom-webpack-static.js +4 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react.js +4 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/entrypoints.js +121 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-compiler-runtime.js +4 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-dom-server.js +4 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-dom.js +4 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-jsx-dev-runtime.js +4 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-jsx-runtime.js +4 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-server-dom-turbopack-client.js +4 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-server-dom-webpack-client.js +4 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react.js +4 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-route/helpers/auto-implement-methods.js +81 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-route/helpers/clean-url.js +24 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-route/helpers/get-pathname-from-absolute-path.js +29 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-route/helpers/is-static-gen-enabled.js +15 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-route/helpers/parsed-url-query-to-params.js +20 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-route/module.compiled.js +36 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-route/module.js +915 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/app-route/shared-modules.js +56 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/checks.js +45 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/pages/builtin/_error.js +100 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/pages/module.compiled.js +20 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/pages/module.js +92 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/pages/module.render.js +20 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/pages/pages-handler.js +576 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/pages/vendored/contexts/app-router-context.js +4 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/pages/vendored/contexts/entrypoints.js +102 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/pages/vendored/contexts/head-manager-context.js +4 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/pages/vendored/contexts/hooks-client-context.js +4 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/pages/vendored/contexts/html-context.js +4 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/pages/vendored/contexts/image-config-context.js +4 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable-context.js +4 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable.js +4 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/pages/vendored/contexts/router-context.js +4 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/pages/vendored/contexts/server-inserted-html.js +4 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/pages-api/module.compiled.js +20 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/pages-api/module.js +54 -0
- package/dist-dashboard/node_modules/next/dist/server/route-modules/route-module.js +700 -0
- package/dist-dashboard/node_modules/next/dist/server/runtime-reacts.external.js +46 -0
- package/dist-dashboard/node_modules/next/dist/server/send-payload.js +88 -0
- package/dist-dashboard/node_modules/next/dist/server/send-response.js +70 -0
- package/dist-dashboard/node_modules/next/dist/server/serve-static.js +62 -0
- package/dist-dashboard/node_modules/next/dist/server/server-route-utils.js +30 -0
- package/dist-dashboard/node_modules/next/dist/server/server-utils.js +340 -0
- package/dist-dashboard/node_modules/next/dist/server/setup-http-agent-env.js +27 -0
- package/dist-dashboard/node_modules/next/dist/server/stream-utils/encoded-tags.js +122 -0
- package/dist-dashboard/node_modules/next/dist/server/stream-utils/node-buffered-transform-stream.js +51 -0
- package/dist-dashboard/node_modules/next/dist/server/stream-utils/node-web-streams-helper.js +935 -0
- package/dist-dashboard/node_modules/next/dist/server/stream-utils/uint8array-helpers.js +74 -0
- package/dist-dashboard/node_modules/next/dist/server/typescript/constant.js +100 -0
- package/dist-dashboard/node_modules/next/dist/server/typescript/index.js +199 -0
- package/dist-dashboard/node_modules/next/dist/server/typescript/rules/client-boundary.js +100 -0
- package/dist-dashboard/node_modules/next/dist/server/typescript/rules/config.js +561 -0
- package/dist-dashboard/node_modules/next/dist/server/typescript/rules/entry.js +149 -0
- package/dist-dashboard/node_modules/next/dist/server/typescript/rules/error.js +38 -0
- package/dist-dashboard/node_modules/next/dist/server/typescript/rules/metadata.js +234 -0
- package/dist-dashboard/node_modules/next/dist/server/typescript/rules/server-boundary.js +115 -0
- package/dist-dashboard/node_modules/next/dist/server/typescript/rules/server.js +79 -0
- package/dist-dashboard/node_modules/next/dist/server/typescript/utils.js +212 -0
- package/dist-dashboard/node_modules/next/dist/server/use-cache/cache-life-profile.js +60 -0
- package/dist-dashboard/node_modules/next/dist/server/use-cache/cache-life.js +79 -0
- package/dist-dashboard/node_modules/next/dist/server/use-cache/cache-tag.js +46 -0
- package/dist-dashboard/node_modules/next/dist/server/use-cache/clone-cache-entry.js +28 -0
- package/dist-dashboard/node_modules/next/dist/server/use-cache/constants.js +40 -0
- package/dist-dashboard/node_modules/next/dist/server/use-cache/handlers.js +265 -0
- package/dist-dashboard/node_modules/next/dist/server/use-cache/tiered-cache-handler.js +147 -0
- package/dist-dashboard/node_modules/next/dist/server/use-cache/use-cache-errors.js +58 -0
- package/dist-dashboard/node_modules/next/dist/server/use-cache/use-cache-messages.js +190 -0
- package/dist-dashboard/node_modules/next/dist/server/use-cache/use-cache-probe-globals.js +39 -0
- package/dist-dashboard/node_modules/next/dist/server/use-cache/use-cache-probe-scheduler.js +117 -0
- package/dist-dashboard/node_modules/next/dist/server/use-cache/use-cache-wrapper.js +2689 -0
- package/dist-dashboard/node_modules/next/dist/server/utils.js +73 -0
- package/dist-dashboard/node_modules/next/dist/server/web/adapter.js +407 -0
- package/dist-dashboard/node_modules/next/dist/server/web/edge-route-module-wrapper.js +135 -0
- package/dist-dashboard/node_modules/next/dist/server/web/error.js +54 -0
- package/dist-dashboard/node_modules/next/dist/server/web/exports/index.js +56 -0
- package/dist-dashboard/node_modules/next/dist/server/web/get-edge-preview-props.js +23 -0
- package/dist-dashboard/node_modules/next/dist/server/web/globals.js +116 -0
- package/dist-dashboard/node_modules/next/dist/server/web/http.js +39 -0
- package/dist-dashboard/node_modules/next/dist/server/web/internal-edge-wait-until.js +64 -0
- package/dist-dashboard/node_modules/next/dist/server/web/next-url.js +195 -0
- package/dist-dashboard/node_modules/next/dist/server/web/sandbox/context.js +444 -0
- package/dist-dashboard/node_modules/next/dist/server/web/sandbox/fetch-inline-assets.js +35 -0
- package/dist-dashboard/node_modules/next/dist/server/web/sandbox/index.js +28 -0
- package/dist-dashboard/node_modules/next/dist/server/web/sandbox/resource-managers.js +123 -0
- package/dist-dashboard/node_modules/next/dist/server/web/sandbox/sandbox.js +133 -0
- package/dist-dashboard/node_modules/next/dist/server/web/spec-extension/adapters/headers.js +288 -0
- package/dist-dashboard/node_modules/next/dist/server/web/spec-extension/adapters/next-request.js +138 -0
- package/dist-dashboard/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js +30 -0
- package/dist-dashboard/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js +221 -0
- package/dist-dashboard/node_modules/next/dist/server/web/spec-extension/cookies.js +29 -0
- package/dist-dashboard/node_modules/next/dist/server/web/spec-extension/fetch-event.js +90 -0
- package/dist-dashboard/node_modules/next/dist/server/web/spec-extension/image-response.js +18 -0
- package/dist-dashboard/node_modules/next/dist/server/web/spec-extension/request.js +99 -0
- package/dist-dashboard/node_modules/next/dist/server/web/spec-extension/response.js +128 -0
- package/dist-dashboard/node_modules/next/dist/server/web/spec-extension/revalidate.js +188 -0
- package/dist-dashboard/node_modules/next/dist/server/web/spec-extension/unstable-cache.js +299 -0
- package/dist-dashboard/node_modules/next/dist/server/web/spec-extension/unstable-no-store.js +50 -0
- package/dist-dashboard/node_modules/next/dist/server/web/spec-extension/url-pattern.js +13 -0
- package/dist-dashboard/node_modules/next/dist/server/web/spec-extension/user-agent.js +46 -0
- package/dist-dashboard/node_modules/next/dist/server/web/types.js +6 -0
- package/dist-dashboard/node_modules/next/dist/server/web/utils.js +147 -0
- package/dist-dashboard/node_modules/next/dist/server/web/web-on-close.js +79 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/action-revalidation-kind.js +31 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js +50 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/app-router-types.js +169 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/constants.js +458 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/deep-freeze.js +30 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/deployment-id.js +63 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/dset.js +34 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/encode-uri-path.js +15 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/entry-constants.js +36 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/error-source.js +36 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/errors/code-frame.js +21 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/errors/constants.js +19 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/errors/empty-generate-static-params-error.js +27 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/errors/ensure-static-gsp-errors.js +30 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/errors/hard-deprecated-config-error.js +20 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/escape-regexp.js +22 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/get-hostname.js +23 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/hash.js +42 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js +18 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/head.js +164 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js +60 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/html-context.shared-runtime.js +36 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/htmlescape.js +52 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +25 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/i18n/get-locale-redirect.js +59 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +54 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/image-blur-svg.js +22 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js +19 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/image-config.js +128 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/instant-messages.js +35 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/invariant-error.js +18 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/is-plain-object.js +42 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/is-thenable.js +20 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/isomorphic/path.js +14 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js +37 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/lazy-dynamic/react-browser-bailout.js +45 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/loadable-context.shared-runtime.js +19 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/loadable.shared-runtime.js +246 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/magic-identifier.js +198 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/match-local-pattern.js +46 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/match-remote-pattern.js +59 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/modern-browserslist-target.js +15 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/no-fallback-error.external.js +18 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/normalized-asset-prefix.js +28 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/page-path/absolute-path-to-page.js +26 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js +18 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +18 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/page-path/get-page-paths.js +40 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/page-path/normalize-data-path.js +23 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/page-path/normalize-page-path.js +26 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js +19 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/page-path/remove-page-path-tail.js +20 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/promise-with-resolvers.js +26 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/request-insights.js +30 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/router/adapters.js +139 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/router/routes/app.js +146 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/router/utils/add-locale.js +28 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +20 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js +20 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/router/utils/app-paths.js +84 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/router/utils/as-path-to-search-params.js +17 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/router/utils/cache-busting-search-param.js +70 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/router/utils/escape-path-delimiters.js +16 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js +27 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/router/utils/format-url.js +111 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +166 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js +52 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/router/utils/get-route-from-asset-path.js +25 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +90 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/router/utils/html-bots.js +17 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/router/utils/index.js +30 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/router/utils/interception-prefix-from-param-type.js +33 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +151 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/router/utils/is-bot.js +57 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +26 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/router/utils/middleware-route-matcher.js +31 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +30 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/router/utils/parse-path.js +33 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js +39 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/router/utils/parse-url.js +38 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +20 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/router/utils/path-match.js +49 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/router/utils/prepare-destination.js +289 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/router/utils/querystring.js +110 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/router/utils/relativize-url.js +40 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js +39 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +22 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/router/utils/resolve-param-value.js +112 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js +113 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +41 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/router/utils/route-regex.js +256 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +200 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +18 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/rsc-transport.js +108 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/segment-cache/segment-value-encoding.js +86 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/segment-cache/vary-params-decoding.js +87 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/segment.js +90 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js +35 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/server-reference-info.js +68 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/side-effect.js +63 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/size-limit.js +40 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/turbopack/internal-error.js +48 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/utils/reflect-utils.js +69 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/utils/warn-once.js +22 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/utils.js +207 -0
- package/dist-dashboard/node_modules/next/dist/shared/lib/zod.js +97 -0
- package/dist-dashboard/node_modules/next/dist/telemetry/agent-name.js +20 -0
- package/dist-dashboard/node_modules/next/dist/telemetry/anonymous-meta.js +91 -0
- package/dist-dashboard/node_modules/next/dist/telemetry/detached-flush.js +49 -0
- package/dist-dashboard/node_modules/next/dist/telemetry/events/build.js +186 -0
- package/dist-dashboard/node_modules/next/dist/telemetry/events/index.js +41 -0
- package/dist-dashboard/node_modules/next/dist/telemetry/events/plugins.js +51 -0
- package/dist-dashboard/node_modules/next/dist/telemetry/events/swc-load-failure.js +55 -0
- package/dist-dashboard/node_modules/next/dist/telemetry/events/version.js +68 -0
- package/dist-dashboard/node_modules/next/dist/telemetry/flush-telemetry.js +19 -0
- package/dist-dashboard/node_modules/next/dist/telemetry/post-telemetry-payload.js +44 -0
- package/dist-dashboard/node_modules/next/dist/telemetry/project-id.js +48 -0
- package/dist-dashboard/node_modules/next/dist/telemetry/storage.js +317 -0
- package/dist-dashboard/node_modules/next/dist/trace/index.js +58 -0
- package/dist-dashboard/node_modules/next/dist/trace/report/index.js +40 -0
- package/dist-dashboard/node_modules/next/dist/trace/report/to-json-build.js +42 -0
- package/dist-dashboard/node_modules/next/dist/trace/report/to-json.js +215 -0
- package/dist-dashboard/node_modules/next/dist/trace/report/to-telemetry.js +36 -0
- package/dist-dashboard/node_modules/next/dist/trace/shared.js +39 -0
- package/dist-dashboard/node_modules/next/dist/trace/trace.js +216 -0
- package/dist-dashboard/node_modules/next/license.md +21 -0
- package/dist-dashboard/node_modules/next/package.json +140 -0
- package/dist-dashboard/node_modules/react/LICENSE +21 -0
- package/dist-dashboard/node_modules/react/cjs/react-compiler-runtime.production.js +16 -0
- package/dist-dashboard/node_modules/react/cjs/react-jsx-dev-runtime.production.js +14 -0
- package/dist-dashboard/node_modules/react/cjs/react-jsx-runtime.production.js +34 -0
- package/dist-dashboard/node_modules/react/cjs/react.development.js +1284 -0
- package/dist-dashboard/node_modules/react/cjs/react.production.js +542 -0
- package/dist-dashboard/node_modules/react/compiler-runtime.js +14 -0
- package/dist-dashboard/node_modules/react/index.js +7 -0
- package/dist-dashboard/node_modules/react/jsx-dev-runtime.js +7 -0
- package/dist-dashboard/node_modules/react/jsx-runtime.js +7 -0
- package/dist-dashboard/node_modules/react/package.json +51 -0
- package/dist-dashboard/node_modules/react-dom/LICENSE +21 -0
- package/dist-dashboard/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.js +6603 -0
- package/dist-dashboard/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.js +6692 -0
- package/dist-dashboard/node_modules/react-dom/cjs/react-dom-server.browser.production.js +7414 -0
- package/dist-dashboard/node_modules/react-dom/cjs/react-dom-server.edge.production.js +7518 -0
- package/dist-dashboard/node_modules/react-dom/cjs/react-dom-server.node.production.js +7715 -0
- package/dist-dashboard/node_modules/react-dom/cjs/react-dom.production.js +210 -0
- package/dist-dashboard/node_modules/react-dom/index.js +38 -0
- package/dist-dashboard/node_modules/react-dom/package.json +117 -0
- package/dist-dashboard/node_modules/react-dom/server.browser.js +16 -0
- package/dist-dashboard/node_modules/react-dom/server.edge.js +17 -0
- package/dist-dashboard/node_modules/react-dom/server.node.js +18 -0
- package/dist-dashboard/node_modules/react-dom/static.node.js +14 -0
- package/dist-dashboard/node_modules/styled-jsx/dist/index/index.js +499 -0
- package/dist-dashboard/node_modules/styled-jsx/index.js +1 -0
- package/dist-dashboard/node_modules/styled-jsx/license.md +21 -0
- package/dist-dashboard/node_modules/styled-jsx/package.json +132 -0
- package/dist-dashboard/node_modules/styled-jsx/style.js +1 -0
- package/dist-dashboard/package.json +22 -0
- package/dist-dashboard/public/icons/back-button-96.png +0 -0
- package/dist-dashboard/public/icons/codex.png +0 -0
- package/dist-dashboard/server.js +38 -0
- package/integrations/claude-code/.claude-plugin/plugin.json +5 -0
- package/integrations/claude-code/hook.mjs +5 -0
- package/integrations/codex/hook.mjs +12 -0
- package/package.json +61 -6
- package/skills/wisdom-ledger/SKILL.md +88 -0
|
@@ -0,0 +1,1648 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "handleBuildComplete", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return handleBuildComplete;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _path = /*#__PURE__*/ _interop_require_default(require("path"));
|
|
12
|
+
const _crypto = /*#__PURE__*/ _interop_require_default(require("crypto"));
|
|
13
|
+
const _promises = /*#__PURE__*/ _interop_require_default(require("fs/promises"));
|
|
14
|
+
const _url = require("url");
|
|
15
|
+
const _log = /*#__PURE__*/ _interop_require_wildcard(require("../output/log"));
|
|
16
|
+
const _utils = require("../utils");
|
|
17
|
+
const _renderingmode = require("../rendering-mode");
|
|
18
|
+
const _interopdefault = require("../../lib/interop-default");
|
|
19
|
+
const _recursivereaddir = require("../../lib/recursive-readdir");
|
|
20
|
+
const _utils1 = require("../../shared/lib/router/utils");
|
|
21
|
+
const _apppaths = require("../../shared/lib/router/utils/app-paths");
|
|
22
|
+
const _constants = require("../../shared/lib/constants");
|
|
23
|
+
const _normalizepagepath = require("../../shared/lib/page-path/normalize-page-path");
|
|
24
|
+
const _normalizepathsep = require("../../shared/lib/page-path/normalize-path-sep");
|
|
25
|
+
const _routingutils = require("next/dist/compiled/@vercel/routing-utils");
|
|
26
|
+
const _constants1 = require("../../lib/constants");
|
|
27
|
+
const _normalizelocalepath = require("../../shared/lib/i18n/normalize-locale-path");
|
|
28
|
+
const _getmetadataroute = require("../../lib/metadata/get-metadata-route");
|
|
29
|
+
const _ismetadataroute = require("../../lib/metadata/is-metadata-route");
|
|
30
|
+
const _addpathprefix = require("../../shared/lib/router/utils/add-path-prefix");
|
|
31
|
+
const _redirectstatus = require("../../lib/redirect-status");
|
|
32
|
+
const _routeregex = require("../../shared/lib/router/utils/route-regex");
|
|
33
|
+
const _escaperegexp = require("../../shared/lib/escape-regexp");
|
|
34
|
+
const _sortableroutes = require("../../shared/lib/router/utils/sortable-routes");
|
|
35
|
+
const _requirehook = require("../../server/require-hook");
|
|
36
|
+
const _generateroutesmanifest = require("../generate-routes-manifest");
|
|
37
|
+
const _fallbackshellruns = require("./fallback-shell-runs");
|
|
38
|
+
const _bundler = require("../../lib/bundler");
|
|
39
|
+
const _formatdynamicimportpath = require("../../lib/format-dynamic-import-path");
|
|
40
|
+
const _invarianterror = require("../../shared/lib/invariant-error");
|
|
41
|
+
const _nft = require("../nft");
|
|
42
|
+
const _syntheticsymlinks = require("./synthetic-symlinks");
|
|
43
|
+
const _routecachekey = require("../../server/lib/route-cache-key");
|
|
44
|
+
const _routekind = require("../../server/route-kind");
|
|
45
|
+
function _interop_require_default(obj) {
|
|
46
|
+
return obj && obj.__esModule ? obj : {
|
|
47
|
+
default: obj
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
51
|
+
if (typeof WeakMap !== "function") return null;
|
|
52
|
+
var cacheBabelInterop = new WeakMap();
|
|
53
|
+
var cacheNodeInterop = new WeakMap();
|
|
54
|
+
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
55
|
+
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
56
|
+
})(nodeInterop);
|
|
57
|
+
}
|
|
58
|
+
function _interop_require_wildcard(obj, nodeInterop) {
|
|
59
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
|
60
|
+
return obj;
|
|
61
|
+
}
|
|
62
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
63
|
+
return {
|
|
64
|
+
default: obj
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
68
|
+
if (cache && cache.has(obj)) {
|
|
69
|
+
return cache.get(obj);
|
|
70
|
+
}
|
|
71
|
+
var newObj = {
|
|
72
|
+
__proto__: null
|
|
73
|
+
};
|
|
74
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
75
|
+
for(var key in obj){
|
|
76
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
77
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
78
|
+
if (desc && (desc.get || desc.set)) {
|
|
79
|
+
Object.defineProperty(newObj, key, desc);
|
|
80
|
+
} else {
|
|
81
|
+
newObj[key] = obj[key];
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
newObj.default = obj;
|
|
86
|
+
if (cache) {
|
|
87
|
+
cache.set(obj, newObj);
|
|
88
|
+
}
|
|
89
|
+
return newObj;
|
|
90
|
+
}
|
|
91
|
+
// App paths sharing a pathname collapse into one Adapter output. Put the
|
|
92
|
+
// canonical entry first because later paths only merge assets into that output.
|
|
93
|
+
function orderAppPageKeysByEntry(appPageKeys) {
|
|
94
|
+
const appPathsByPathname = new Map();
|
|
95
|
+
for (const page of appPageKeys){
|
|
96
|
+
const pathname = (0, _apppaths.normalizeAppPath)(page);
|
|
97
|
+
const appPaths = appPathsByPathname.get(pathname);
|
|
98
|
+
if (appPaths) {
|
|
99
|
+
appPaths.push(page);
|
|
100
|
+
} else {
|
|
101
|
+
appPathsByPathname.set(pathname, [
|
|
102
|
+
page
|
|
103
|
+
]);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
const orderedAppPageKeys = [];
|
|
107
|
+
for (const [pathname, appPaths] of appPathsByPathname){
|
|
108
|
+
const entryPage = (0, _apppaths.selectAppPageEntry)(pathname, appPaths);
|
|
109
|
+
orderedAppPageKeys.push(entryPage);
|
|
110
|
+
for (const appPath of appPaths){
|
|
111
|
+
if (appPath !== entryPage) {
|
|
112
|
+
orderedAppPageKeys.push(appPath);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
return orderedAppPageKeys;
|
|
117
|
+
}
|
|
118
|
+
function getPrerenderClassification(route, routeType, response, compute, htmlSize) {
|
|
119
|
+
if (routeType === undefined && response === undefined && compute === undefined && htmlSize === undefined) {
|
|
120
|
+
return {};
|
|
121
|
+
}
|
|
122
|
+
if (routeType === undefined || response === undefined || compute === undefined) {
|
|
123
|
+
throw new _invarianterror.InvariantError(`Expected complete prerender classification for route "${route}"`);
|
|
124
|
+
}
|
|
125
|
+
return {
|
|
126
|
+
routeType,
|
|
127
|
+
response,
|
|
128
|
+
compute,
|
|
129
|
+
...typeof htmlSize === 'number' && {
|
|
130
|
+
htmlSize
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
function normalizePathnames(config, outputs) {
|
|
135
|
+
// normalize pathname field with basePath
|
|
136
|
+
if (config.basePath) {
|
|
137
|
+
for (const output of [
|
|
138
|
+
...outputs.pages,
|
|
139
|
+
...outputs.pagesApi,
|
|
140
|
+
...outputs.appPages,
|
|
141
|
+
...outputs.appRoutes,
|
|
142
|
+
...outputs.prerenders,
|
|
143
|
+
...outputs.staticFiles
|
|
144
|
+
]){
|
|
145
|
+
output.pathname = (0, _addpathprefix.addPathPrefix)(output.pathname, config.basePath).replace(/\/$/, '') || '/';
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
async function handleBuildComplete({ dir, config, appType, buildId, configOutDir, distDir, pageKeys, bundler, repoRoot, outputFileTracingRoot, adapterPath, appPageKeys, staticPages, nextVersion, hasStatic404, hasStatic500, previewProps, routesManifest, serverPropsPages, hasNodeMiddleware, prerenderManifest, middlewareManifest, requiredServerFiles, hasInstrumentationHook, functionsConfigManifest }) {
|
|
150
|
+
const adapterMod = (0, _interopdefault.interopDefault)(await import((0, _url.pathToFileURL)(require.resolve(adapterPath)).href));
|
|
151
|
+
if (typeof adapterMod.onBuildComplete === 'function') {
|
|
152
|
+
const syntheticSymlinks = (0, _syntheticsymlinks.createAdapterSyntheticSymlinkDirectory)(distDir);
|
|
153
|
+
const outputs = {
|
|
154
|
+
pages: [],
|
|
155
|
+
pagesApi: [],
|
|
156
|
+
appPages: [],
|
|
157
|
+
appRoutes: [],
|
|
158
|
+
prerenders: [],
|
|
159
|
+
staticFiles: []
|
|
160
|
+
};
|
|
161
|
+
const clientHashes = bundler === _bundler.Bundler.Turbopack && config.supportsImmutableAssets ? JSON.parse(await _promises.default.readFile(_path.default.join(distDir, 'immutable-static-hashes.json'), 'utf8')) : undefined;
|
|
162
|
+
if (config.output === 'export') {
|
|
163
|
+
// collect export assets and provide as static files
|
|
164
|
+
const exportFiles = await (0, _recursivereaddir.recursiveReadDir)(configOutDir);
|
|
165
|
+
for (const file of exportFiles){
|
|
166
|
+
let pathname = (file.endsWith('.html') ? file.replace(/\.html$/, '') : file).replace(/\\/g, '/');
|
|
167
|
+
pathname = pathname.startsWith('/') ? pathname : `/${pathname}`;
|
|
168
|
+
const immutableId = (0, _normalizepathsep.normalizePathSep)(file).replace(/^\/?_next\//, '');
|
|
169
|
+
outputs.staticFiles.push({
|
|
170
|
+
id: file,
|
|
171
|
+
pathname,
|
|
172
|
+
filePath: _path.default.join(configOutDir, file),
|
|
173
|
+
type: _constants.AdapterOutputType.STATIC_FILE,
|
|
174
|
+
immutableHash: clientHashes == null ? void 0 : clientHashes[immutableId]
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
} else {
|
|
178
|
+
const staticFiles = await (0, _recursivereaddir.recursiveReadDir)(_path.default.join(distDir, 'static'));
|
|
179
|
+
for (const file of staticFiles){
|
|
180
|
+
const pathname = _path.default.posix.join('/_next/static', file);
|
|
181
|
+
const filePath = _path.default.join(distDir, 'static', file);
|
|
182
|
+
const id = _path.default.join('static', file);
|
|
183
|
+
outputs.staticFiles.push({
|
|
184
|
+
type: _constants.AdapterOutputType.STATIC_FILE,
|
|
185
|
+
id,
|
|
186
|
+
pathname,
|
|
187
|
+
filePath,
|
|
188
|
+
immutableHash: clientHashes == null ? void 0 : clientHashes[id]
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
const { sharedNodeAssets, sharedNodeAssetsHashes, pagesSharedNodeAssets, pagesSharedNodeAssetsHashes, appPagesSharedNodeAssets, appPagesSharedNodeAssetsHashes } = await getSharedNodeAssets({
|
|
192
|
+
distDir,
|
|
193
|
+
requiredServerFiles,
|
|
194
|
+
dir,
|
|
195
|
+
repoRoot,
|
|
196
|
+
outputFileTracingRoot,
|
|
197
|
+
bundler,
|
|
198
|
+
hasInstrumentationHook,
|
|
199
|
+
config,
|
|
200
|
+
syntheticSymlinks
|
|
201
|
+
});
|
|
202
|
+
async function handleTraceFiles(entryFilePath, type) {
|
|
203
|
+
const assets = {};
|
|
204
|
+
const assetsHashes = {};
|
|
205
|
+
const { entryHash } = await loadNFT(assets, assetsHashes, repoRoot, `${entryFilePath}.nft.json`, syntheticSymlinks, config.outputHashSalt || '');
|
|
206
|
+
Object.assign(assets, sharedNodeAssets, type === 'pages' ? pagesSharedNodeAssets : {}, type === 'app' ? appPagesSharedNodeAssets : {});
|
|
207
|
+
Object.assign(assetsHashes, sharedNodeAssetsHashes, type === 'pages' ? pagesSharedNodeAssetsHashes : {}, type === 'app' ? appPagesSharedNodeAssetsHashes : {});
|
|
208
|
+
if (entryHash) {
|
|
209
|
+
assetsHashes[_path.default.relative(repoRoot, entryFilePath)] = entryHash;
|
|
210
|
+
}
|
|
211
|
+
return {
|
|
212
|
+
assets,
|
|
213
|
+
assetsHashes,
|
|
214
|
+
entryHash
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
async function handleEdgeFunction(page, isMiddleware = false) {
|
|
218
|
+
let type = _constants.AdapterOutputType.PAGES;
|
|
219
|
+
const isAppPrefix = page.name.startsWith('app/');
|
|
220
|
+
const isAppPage = isAppPrefix && page.name.endsWith('/page');
|
|
221
|
+
const isAppRoute = isAppPrefix && page.name.endsWith('/route');
|
|
222
|
+
let currentOutputs = outputs.pages;
|
|
223
|
+
if (isMiddleware) {
|
|
224
|
+
type = _constants.AdapterOutputType.MIDDLEWARE;
|
|
225
|
+
} else if (isAppPage) {
|
|
226
|
+
currentOutputs = outputs.appPages;
|
|
227
|
+
type = _constants.AdapterOutputType.APP_PAGE;
|
|
228
|
+
} else if (isAppRoute) {
|
|
229
|
+
currentOutputs = outputs.appRoutes;
|
|
230
|
+
type = _constants.AdapterOutputType.APP_ROUTE;
|
|
231
|
+
} else if (page.page.startsWith('/api')) {
|
|
232
|
+
currentOutputs = outputs.pagesApi;
|
|
233
|
+
type = _constants.AdapterOutputType.PAGES_API;
|
|
234
|
+
}
|
|
235
|
+
const route = page.page.replace(/^(app|pages)\//, '');
|
|
236
|
+
const pathname = isAppPrefix ? (0, _apppaths.normalizeAppPath)(route) : route === '/index' ? '/' : route.replace(/\/index$/, '');
|
|
237
|
+
const functionConfig = functionsConfigManifest.functions[pathname] || {};
|
|
238
|
+
const edgeEntrypointRelativePath = page.entrypoint;
|
|
239
|
+
const edgeEntrypointPath = _path.default.join(distDir, edgeEntrypointRelativePath);
|
|
240
|
+
const output = {
|
|
241
|
+
type,
|
|
242
|
+
id: page.name,
|
|
243
|
+
runtime: 'edge',
|
|
244
|
+
sourcePage: route,
|
|
245
|
+
pathname,
|
|
246
|
+
filePath: edgeEntrypointPath,
|
|
247
|
+
edgeRuntime: {
|
|
248
|
+
modulePath: edgeEntrypointPath,
|
|
249
|
+
entryKey: `middleware_${page.name}`,
|
|
250
|
+
handlerExport: 'handler'
|
|
251
|
+
},
|
|
252
|
+
assets: {},
|
|
253
|
+
assetsHashes: {},
|
|
254
|
+
// Computing assetsHash for edge functions isn't implemented for now
|
|
255
|
+
wasmAssets: {},
|
|
256
|
+
config: {
|
|
257
|
+
maxDuration: functionConfig.maxDuration,
|
|
258
|
+
env: page.env,
|
|
259
|
+
preferredRegion: page.regions
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
for (const file of page.files){
|
|
263
|
+
const originalPath = _path.default.join(distDir, file);
|
|
264
|
+
const fileOutputPath = _path.default.relative(config.distDir, _path.default.join(_path.default.relative(repoRoot, distDir), file));
|
|
265
|
+
output.assets[fileOutputPath] = originalPath;
|
|
266
|
+
}
|
|
267
|
+
for (const item of [
|
|
268
|
+
...page.assets || []
|
|
269
|
+
]){
|
|
270
|
+
output.assets[item.name] = _path.default.join(distDir, item.filePath);
|
|
271
|
+
}
|
|
272
|
+
for (const item of page.wasm || []){
|
|
273
|
+
if (!output.wasmAssets) {
|
|
274
|
+
output.wasmAssets = {};
|
|
275
|
+
}
|
|
276
|
+
output.wasmAssets[item.name] = _path.default.join(distDir, item.filePath);
|
|
277
|
+
}
|
|
278
|
+
if (type === _constants.AdapterOutputType.MIDDLEWARE) {
|
|
279
|
+
;
|
|
280
|
+
output.config.matchers = page.matchers.map((item)=>{
|
|
281
|
+
return {
|
|
282
|
+
source: item.originalSource,
|
|
283
|
+
sourceRegex: item.regexp,
|
|
284
|
+
has: item.has,
|
|
285
|
+
missing: [
|
|
286
|
+
...item.missing || [],
|
|
287
|
+
// always skip middleware for on-demand revalidate
|
|
288
|
+
{
|
|
289
|
+
type: 'header',
|
|
290
|
+
key: 'x-prerender-revalidate',
|
|
291
|
+
value: previewProps.previewModeId
|
|
292
|
+
}
|
|
293
|
+
]
|
|
294
|
+
};
|
|
295
|
+
});
|
|
296
|
+
output.pathname = '/_middleware';
|
|
297
|
+
output.id = page.name;
|
|
298
|
+
outputs.middleware = output;
|
|
299
|
+
} else {
|
|
300
|
+
currentOutputs.push(output);
|
|
301
|
+
}
|
|
302
|
+
// need to add matching .rsc output
|
|
303
|
+
if (isAppPage) {
|
|
304
|
+
const rscPathname = (0, _normalizepagepath.normalizePagePath)(output.pathname) + '.rsc';
|
|
305
|
+
outputs.appPages.push({
|
|
306
|
+
...output,
|
|
307
|
+
pathname: rscPathname,
|
|
308
|
+
id: page.name + '.rsc'
|
|
309
|
+
});
|
|
310
|
+
} else if (type !== _constants.AdapterOutputType.MIDDLEWARE && serverPropsPages.has(pathname)) {
|
|
311
|
+
const nextDataPath = _path.default.posix.join('/_next/data/', buildId, (0, _normalizepagepath.normalizePagePath)(pathname) + '.json');
|
|
312
|
+
outputs.pages.push({
|
|
313
|
+
...output,
|
|
314
|
+
pathname: nextDataPath
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
const edgeFunctionHandlers = [];
|
|
319
|
+
for (const middleware of Object.values(middlewareManifest.middleware)){
|
|
320
|
+
if ((0, _utils.isMiddlewareFilename)(middleware.name)) {
|
|
321
|
+
edgeFunctionHandlers.push(handleEdgeFunction(middleware, true));
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
for (const page of Object.values(middlewareManifest.functions)){
|
|
325
|
+
edgeFunctionHandlers.push(handleEdgeFunction(page));
|
|
326
|
+
}
|
|
327
|
+
const pagesDistDir = _path.default.join(distDir, 'server', 'pages');
|
|
328
|
+
const pageOutputMap = {};
|
|
329
|
+
const rscFallbackPath = _path.default.join(distDir, 'server', 'rsc-fallback.json');
|
|
330
|
+
const emittedStaticFilePathnames = new Set();
|
|
331
|
+
if (appPageKeys && appPageKeys.length > 0 && pageKeys.length > 0) {
|
|
332
|
+
await _promises.default.writeFile(rscFallbackPath, '{}');
|
|
333
|
+
}
|
|
334
|
+
for (const page of pageKeys){
|
|
335
|
+
if (page === '/_app' || page === '/_document') {
|
|
336
|
+
continue;
|
|
337
|
+
}
|
|
338
|
+
if (middlewareManifest.functions.hasOwnProperty(page)) {
|
|
339
|
+
continue;
|
|
340
|
+
}
|
|
341
|
+
const route = (0, _normalizepagepath.normalizePagePath)(page);
|
|
342
|
+
const pageFile = _path.default.join(pagesDistDir, `${route}.js`);
|
|
343
|
+
// if it's an auto static optimized page it's just
|
|
344
|
+
// a static file
|
|
345
|
+
if (staticPages.has(page)) {
|
|
346
|
+
if (config.i18n) {
|
|
347
|
+
for (const locale of config.i18n.locales || []){
|
|
348
|
+
const localePage = page === '/' ? `/${locale}` : (0, _addpathprefix.addPathPrefix)(page, `/${locale}`);
|
|
349
|
+
const localeOutput = {
|
|
350
|
+
id: localePage,
|
|
351
|
+
pathname: localePage,
|
|
352
|
+
type: _constants.AdapterOutputType.STATIC_FILE,
|
|
353
|
+
filePath: _path.default.join(pagesDistDir, `${(0, _normalizepagepath.normalizePagePath)(localePage)}.html`),
|
|
354
|
+
immutableHash: undefined
|
|
355
|
+
};
|
|
356
|
+
outputs.staticFiles.push(localeOutput);
|
|
357
|
+
emittedStaticFilePathnames.add(localeOutput.pathname);
|
|
358
|
+
if (appPageKeys && appPageKeys.length > 0) {
|
|
359
|
+
outputs.staticFiles.push({
|
|
360
|
+
id: `${localePage}.rsc`,
|
|
361
|
+
pathname: `${localePage}.rsc`,
|
|
362
|
+
type: _constants.AdapterOutputType.STATIC_FILE,
|
|
363
|
+
filePath: rscFallbackPath,
|
|
364
|
+
immutableHash: undefined
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
} else {
|
|
369
|
+
const staticOutput = {
|
|
370
|
+
id: page,
|
|
371
|
+
pathname: route,
|
|
372
|
+
type: _constants.AdapterOutputType.STATIC_FILE,
|
|
373
|
+
filePath: pageFile.replace(/\.js$/, '.html'),
|
|
374
|
+
immutableHash: undefined
|
|
375
|
+
};
|
|
376
|
+
outputs.staticFiles.push(staticOutput);
|
|
377
|
+
emittedStaticFilePathnames.add(staticOutput.pathname);
|
|
378
|
+
if (appPageKeys && appPageKeys.length > 0) {
|
|
379
|
+
outputs.staticFiles.push({
|
|
380
|
+
id: `${page}.rsc`,
|
|
381
|
+
pathname: `${route}.rsc`,
|
|
382
|
+
type: _constants.AdapterOutputType.STATIC_FILE,
|
|
383
|
+
filePath: rscFallbackPath,
|
|
384
|
+
immutableHash: undefined
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
if (page !== '/404') {
|
|
389
|
+
continue;
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
const { assets, assetsHashes } = await handleTraceFiles(pageFile, 'pages').catch((err)=>{
|
|
393
|
+
if (err.code !== 'ENOENT' || page !== '/404' && page !== '/500') {
|
|
394
|
+
_log.warn(`Failed to locate traced assets for ${pageFile}`, err);
|
|
395
|
+
}
|
|
396
|
+
return {
|
|
397
|
+
assets: {},
|
|
398
|
+
assetsHashes: {}
|
|
399
|
+
};
|
|
400
|
+
});
|
|
401
|
+
const functionConfig = functionsConfigManifest.functions[route] || {};
|
|
402
|
+
let sourcePage = route.replace(/^\//, '');
|
|
403
|
+
sourcePage = sourcePage === 'api' ? 'api/index' : sourcePage;
|
|
404
|
+
const output = {
|
|
405
|
+
id: route,
|
|
406
|
+
type: page.startsWith('/api') ? _constants.AdapterOutputType.PAGES_API : _constants.AdapterOutputType.PAGES,
|
|
407
|
+
filePath: pageFile,
|
|
408
|
+
pathname: route,
|
|
409
|
+
sourcePage,
|
|
410
|
+
assets,
|
|
411
|
+
assetsHashes,
|
|
412
|
+
runtime: 'nodejs',
|
|
413
|
+
config: {
|
|
414
|
+
maxDuration: functionConfig.maxDuration,
|
|
415
|
+
preferredRegion: functionConfig.regions
|
|
416
|
+
}
|
|
417
|
+
};
|
|
418
|
+
pageOutputMap[page] = output;
|
|
419
|
+
if (output.type === _constants.AdapterOutputType.PAGES) {
|
|
420
|
+
var _config_i18n;
|
|
421
|
+
outputs.pages.push(output);
|
|
422
|
+
// if page is get server side props we need to create
|
|
423
|
+
// the _next/data output as well
|
|
424
|
+
if (serverPropsPages.has(page)) {
|
|
425
|
+
const dataPathname = _path.default.posix.join('/_next/data', buildId, (0, _normalizepagepath.normalizePagePath)(page) + '.json');
|
|
426
|
+
outputs.pages.push({
|
|
427
|
+
...output,
|
|
428
|
+
pathname: dataPathname,
|
|
429
|
+
id: dataPathname
|
|
430
|
+
});
|
|
431
|
+
if (appPageKeys && appPageKeys.length > 0) {
|
|
432
|
+
const rscPage = `${page === '/' ? '/index' : page}.rsc`;
|
|
433
|
+
outputs.staticFiles.push({
|
|
434
|
+
id: rscPage,
|
|
435
|
+
pathname: rscPage,
|
|
436
|
+
type: _constants.AdapterOutputType.STATIC_FILE,
|
|
437
|
+
filePath: rscFallbackPath,
|
|
438
|
+
immutableHash: undefined
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
for (const locale of ((_config_i18n = config.i18n) == null ? void 0 : _config_i18n.locales) || []){
|
|
443
|
+
const localePage = page === '/' ? `/${locale}` : (0, _addpathprefix.addPathPrefix)(page, `/${locale}`);
|
|
444
|
+
outputs.pages.push({
|
|
445
|
+
...output,
|
|
446
|
+
id: localePage,
|
|
447
|
+
pathname: localePage
|
|
448
|
+
});
|
|
449
|
+
if (serverPropsPages.has(page)) {
|
|
450
|
+
const dataPathname = _path.default.posix.join('/_next/data', buildId, localePage + '.json');
|
|
451
|
+
outputs.pages.push({
|
|
452
|
+
...output,
|
|
453
|
+
pathname: dataPathname,
|
|
454
|
+
id: dataPathname
|
|
455
|
+
});
|
|
456
|
+
if (appPageKeys && appPageKeys.length > 0) {
|
|
457
|
+
outputs.staticFiles.push({
|
|
458
|
+
id: `${localePage}.rsc`,
|
|
459
|
+
pathname: `${localePage}.rsc`,
|
|
460
|
+
type: _constants.AdapterOutputType.STATIC_FILE,
|
|
461
|
+
filePath: rscFallbackPath,
|
|
462
|
+
immutableHash: undefined
|
|
463
|
+
});
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
} else {
|
|
468
|
+
outputs.pagesApi.push(output);
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
if (hasNodeMiddleware) {
|
|
472
|
+
var _functionConfig_matchers;
|
|
473
|
+
const middlewareFile = _path.default.join(distDir, 'server', 'middleware.js');
|
|
474
|
+
const { assets, assetsHashes } = await handleTraceFiles(middlewareFile, 'neutral');
|
|
475
|
+
const functionConfig = functionsConfigManifest.functions['/_middleware'] || {};
|
|
476
|
+
outputs.middleware = {
|
|
477
|
+
pathname: '/_middleware',
|
|
478
|
+
id: '/_middleware',
|
|
479
|
+
sourcePage: 'middleware',
|
|
480
|
+
assets,
|
|
481
|
+
assetsHashes,
|
|
482
|
+
type: _constants.AdapterOutputType.MIDDLEWARE,
|
|
483
|
+
runtime: 'nodejs',
|
|
484
|
+
filePath: middlewareFile,
|
|
485
|
+
config: {
|
|
486
|
+
matchers: ((_functionConfig_matchers = functionConfig.matchers) == null ? void 0 : _functionConfig_matchers.map((item)=>{
|
|
487
|
+
return {
|
|
488
|
+
source: item.originalSource,
|
|
489
|
+
sourceRegex: item.regexp,
|
|
490
|
+
has: item.has,
|
|
491
|
+
missing: [
|
|
492
|
+
...item.missing || [],
|
|
493
|
+
// always skip middleware for on-demand revalidate
|
|
494
|
+
{
|
|
495
|
+
type: 'header',
|
|
496
|
+
key: 'x-prerender-revalidate',
|
|
497
|
+
value: previewProps.previewModeId
|
|
498
|
+
}
|
|
499
|
+
]
|
|
500
|
+
};
|
|
501
|
+
})) || []
|
|
502
|
+
}
|
|
503
|
+
};
|
|
504
|
+
}
|
|
505
|
+
const appOutputMap = {};
|
|
506
|
+
const appDistDir = _path.default.join(distDir, 'server', 'app');
|
|
507
|
+
if (appPageKeys) {
|
|
508
|
+
for (const page of orderAppPageKeysByEntry(appPageKeys)){
|
|
509
|
+
var _config_i18n_locales, _config_i18n1;
|
|
510
|
+
if (middlewareManifest.functions.hasOwnProperty(page)) {
|
|
511
|
+
continue;
|
|
512
|
+
}
|
|
513
|
+
const normalizedPage = (0, _apppaths.normalizeAppPath)(page);
|
|
514
|
+
// Skip static metadata routes only when they are prerendered.
|
|
515
|
+
// Dynamic metadata routes (e.g. robots/sitemap using connection())
|
|
516
|
+
// should remain app routes in adapter outputs.
|
|
517
|
+
const isStaticMetadataRoute = (0, _ismetadataroute.isStaticMetadataFile)(normalizedPage);
|
|
518
|
+
const staticMetadataPrerenderPathname = (0, _getmetadataroute.getStaticMetadataPrerenderPathname)(normalizedPage) ?? normalizedPage;
|
|
519
|
+
const isPrerenderedMetadataRoute = prerenderManifest.routes[staticMetadataPrerenderPathname] || ((_config_i18n1 = config.i18n) == null ? void 0 : (_config_i18n_locales = _config_i18n1.locales) == null ? void 0 : _config_i18n_locales.some((locale)=>{
|
|
520
|
+
const localePathname = _path.default.posix.join('/', locale, staticMetadataPrerenderPathname.slice(1));
|
|
521
|
+
return prerenderManifest.routes[localePathname];
|
|
522
|
+
}));
|
|
523
|
+
if (isStaticMetadataRoute && isPrerenderedMetadataRoute) {
|
|
524
|
+
continue;
|
|
525
|
+
}
|
|
526
|
+
const pageFile = _path.default.join(appDistDir, `${page}.js`);
|
|
527
|
+
let { assets, assetsHashes } = await handleTraceFiles(pageFile, 'app').catch((err)=>{
|
|
528
|
+
_log.warn(`Failed to copy traced files for ${pageFile}`, err);
|
|
529
|
+
return {
|
|
530
|
+
assets: {},
|
|
531
|
+
assetsHashes: {}
|
|
532
|
+
};
|
|
533
|
+
});
|
|
534
|
+
// If this is a parallel route we just need to merge
|
|
535
|
+
// the assets as they share the same pathname
|
|
536
|
+
const existingOutput = appOutputMap[normalizedPage];
|
|
537
|
+
if (existingOutput) {
|
|
538
|
+
Object.assign(existingOutput.assets, assets);
|
|
539
|
+
Object.assign(existingOutput.assetsHashes, assetsHashes);
|
|
540
|
+
await pushAsset(existingOutput.assets, existingOutput.assetsHashes, _path.default.relative(repoRoot, pageFile), pageFile, bundler, config.outputHashSalt || '');
|
|
541
|
+
continue;
|
|
542
|
+
}
|
|
543
|
+
const functionConfig = functionsConfigManifest.functions[normalizedPage] || {};
|
|
544
|
+
const output = {
|
|
545
|
+
pathname: normalizedPage,
|
|
546
|
+
id: normalizedPage,
|
|
547
|
+
sourcePage: page,
|
|
548
|
+
assets,
|
|
549
|
+
assetsHashes,
|
|
550
|
+
type: page.endsWith('/route') ? _constants.AdapterOutputType.APP_ROUTE : _constants.AdapterOutputType.APP_PAGE,
|
|
551
|
+
runtime: 'nodejs',
|
|
552
|
+
filePath: pageFile,
|
|
553
|
+
config: {
|
|
554
|
+
maxDuration: functionConfig.maxDuration,
|
|
555
|
+
preferredRegion: functionConfig.regions
|
|
556
|
+
}
|
|
557
|
+
};
|
|
558
|
+
appOutputMap[normalizedPage] = output;
|
|
559
|
+
if (output.type === _constants.AdapterOutputType.APP_PAGE) {
|
|
560
|
+
outputs.appPages.push({
|
|
561
|
+
...output,
|
|
562
|
+
pathname: (0, _normalizepagepath.normalizePagePath)(output.pathname) + '.rsc',
|
|
563
|
+
id: (0, _normalizepagepath.normalizePagePath)(output.pathname) + '.rsc'
|
|
564
|
+
});
|
|
565
|
+
outputs.appPages.push(output);
|
|
566
|
+
} else {
|
|
567
|
+
outputs.appRoutes.push(output);
|
|
568
|
+
outputs.appRoutes.push({
|
|
569
|
+
...output,
|
|
570
|
+
pathname: (0, _normalizepagepath.normalizePagePath)(output.pathname) + '.rsc',
|
|
571
|
+
id: (0, _normalizepagepath.normalizePagePath)(output.pathname) + '.rsc'
|
|
572
|
+
});
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
const getParentOutput = (srcRoute, childRoute, allowMissing)=>{
|
|
577
|
+
var _config_i18n;
|
|
578
|
+
const normalizedSrcRoute = (0, _normalizelocalepath.normalizeLocalePath)(srcRoute, ((_config_i18n = config.i18n) == null ? void 0 : _config_i18n.locales) || []).pathname;
|
|
579
|
+
const parentOutput = pageOutputMap[normalizedSrcRoute] || appOutputMap[normalizedSrcRoute];
|
|
580
|
+
if (!parentOutput && !allowMissing) {
|
|
581
|
+
console.error({
|
|
582
|
+
appOutputs: Object.keys(appOutputMap),
|
|
583
|
+
pageOutputs: Object.keys(pageOutputMap)
|
|
584
|
+
});
|
|
585
|
+
throw new Error(`Invariant: failed to find source route ${srcRoute} for prerender ${childRoute}`);
|
|
586
|
+
}
|
|
587
|
+
return parentOutput;
|
|
588
|
+
};
|
|
589
|
+
const sourcesWithOpenFallbacks = new Set();
|
|
590
|
+
for (const [pathname, route] of Object.entries(prerenderManifest.dynamicRoutes)){
|
|
591
|
+
if (route.fallback !== false) {
|
|
592
|
+
sourcesWithOpenFallbacks.add(route.fallbackSourceRoute ?? pathname);
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
const { prefetchSegmentDirSuffix, prefetchSegmentSuffix, varyHeader, didPostponeHeader, contentTypeHeader: rscContentTypeHeader } = routesManifest.rsc;
|
|
596
|
+
const appSourcePages = new Map();
|
|
597
|
+
const getPrerenderFilePath = (route, isAppPage, extension)=>{
|
|
598
|
+
if (config.output !== 'export') {
|
|
599
|
+
var _config_i18n;
|
|
600
|
+
route = _path.default.posix.join('/', route);
|
|
601
|
+
const pathname = isAppPage ? route : (0, _normalizelocalepath.normalizeLocalePath)(route, (_config_i18n = config.i18n) == null ? void 0 : _config_i18n.locales).pathname;
|
|
602
|
+
const prerender = prerenderManifest.routes[route];
|
|
603
|
+
const dynamicPrerender = prerenderManifest.dynamicRoutes[pathname];
|
|
604
|
+
// Auto-static Pages and generated error documents are not response
|
|
605
|
+
// cache entries and retain their public filenames.
|
|
606
|
+
if (!isAppPage && !prerender && !dynamicPrerender) {
|
|
607
|
+
return _path.default.join(pagesDistDir, `${(0, _normalizepagepath.normalizePagePath)(route)}${extension}`);
|
|
608
|
+
}
|
|
609
|
+
const source = (prerender == null ? void 0 : prerender.srcRoute) ?? (dynamicPrerender == null ? void 0 : dynamicPrerender.fallbackSourceRoute) ?? pathname;
|
|
610
|
+
let page = source;
|
|
611
|
+
let kind = _routekind.RouteKind.PAGES;
|
|
612
|
+
if (isAppPage) {
|
|
613
|
+
page = appSourcePages.get(source) ?? (0, _apppaths.selectAppPageEntry)(source, appPageKeys ?? []);
|
|
614
|
+
appSourcePages.set(source, page);
|
|
615
|
+
kind = page.endsWith('/route') ? _routekind.RouteKind.APP_ROUTE : _routekind.RouteKind.APP_PAGE;
|
|
616
|
+
}
|
|
617
|
+
return _path.default.join(distDir, 'server', `${(0, _routecachekey.getRouteCacheKey)(route, {
|
|
618
|
+
kind,
|
|
619
|
+
sourceRoute: page
|
|
620
|
+
})}${extension}`);
|
|
621
|
+
}
|
|
622
|
+
return _path.default.join(isAppPage ? appDistDir : pagesDistDir, `${(0, _normalizepagepath.normalizePagePath)(route)}${extension}`);
|
|
623
|
+
};
|
|
624
|
+
const handleAppMeta = async (route, initialOutput, meta, ctx)=>{
|
|
625
|
+
if (meta.postponed && initialOutput.fallback) {
|
|
626
|
+
initialOutput.fallback.postponedState = meta.postponed;
|
|
627
|
+
}
|
|
628
|
+
if (meta == null ? void 0 : meta.segmentPaths) {
|
|
629
|
+
const normalizedRoute = (0, _normalizepagepath.normalizePagePath)(route);
|
|
630
|
+
const segmentsDir = getPrerenderFilePath(route, true, prefetchSegmentDirSuffix);
|
|
631
|
+
// If client param parsing is enabled, we follow the same logic as
|
|
632
|
+
// the HTML allowQuery as it's already going to vary based on if
|
|
633
|
+
// there's a static shell generated or if there's fallback root
|
|
634
|
+
// params. If there are fallback root params, and we can serve a
|
|
635
|
+
// fallback, then we should follow the same logic for the segment
|
|
636
|
+
// prerenders.
|
|
637
|
+
//
|
|
638
|
+
// If client param parsing is not enabled, we have to use the
|
|
639
|
+
// allowQuery because the segment payloads will contain dynamic
|
|
640
|
+
// segment values.
|
|
641
|
+
const segmentAllowQuery = routesManifest.rsc.clientParamParsing ? ctx.htmlAllowQuery : ctx.dataAllowQuery;
|
|
642
|
+
for (const segmentPath of meta.segmentPaths){
|
|
643
|
+
var _initialOutput_fallback, _initialOutput_fallback1, _initialOutput_fallback2;
|
|
644
|
+
const outputSegmentPath = _path.default.join(normalizedRoute + prefetchSegmentDirSuffix, segmentPath) + prefetchSegmentSuffix;
|
|
645
|
+
// Only use the fallback value when the allowQuery is defined and
|
|
646
|
+
// either: (1) it is empty, meaning segments do not vary by params,
|
|
647
|
+
// or (2) client param parsing is enabled, meaning the segment
|
|
648
|
+
// payloads are safe to reuse across params.
|
|
649
|
+
const shouldAttachSegmentFallback = segmentAllowQuery && (segmentAllowQuery.length === 0 || routesManifest.rsc.clientParamParsing);
|
|
650
|
+
const fallbackPathname = shouldAttachSegmentFallback ? _path.default.join(segmentsDir, segmentPath + prefetchSegmentSuffix) : undefined;
|
|
651
|
+
outputs.prerenders.push({
|
|
652
|
+
id: outputSegmentPath,
|
|
653
|
+
pathname: outputSegmentPath,
|
|
654
|
+
type: _constants.AdapterOutputType.PRERENDER,
|
|
655
|
+
parentOutputId: initialOutput.parentOutputId,
|
|
656
|
+
groupId: initialOutput.groupId,
|
|
657
|
+
route: initialOutput.route,
|
|
658
|
+
config: {
|
|
659
|
+
...initialOutput.config,
|
|
660
|
+
bypassFor: undefined,
|
|
661
|
+
partialFallback: initialOutput.config.partialFallback
|
|
662
|
+
},
|
|
663
|
+
fallback: {
|
|
664
|
+
filePath: fallbackPathname,
|
|
665
|
+
postponedState: undefined,
|
|
666
|
+
initialExpiration: (_initialOutput_fallback = initialOutput.fallback) == null ? void 0 : _initialOutput_fallback.initialExpiration,
|
|
667
|
+
initialRevalidate: (_initialOutput_fallback1 = initialOutput.fallback) == null ? void 0 : _initialOutput_fallback1.initialRevalidate,
|
|
668
|
+
initialHeaders: {
|
|
669
|
+
...meta.headers,
|
|
670
|
+
...(_initialOutput_fallback2 = initialOutput.fallback) == null ? void 0 : _initialOutput_fallback2.initialHeaders,
|
|
671
|
+
vary: varyHeader,
|
|
672
|
+
'content-type': rscContentTypeHeader,
|
|
673
|
+
[didPostponeHeader]: '2'
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
});
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
};
|
|
680
|
+
let prerenderGroupId = 1;
|
|
681
|
+
const getAppRouteMeta = async (route, isAppPage)=>{
|
|
682
|
+
const meta = isAppPage ? JSON.parse(await _promises.default.readFile(getPrerenderFilePath(route, true, '.meta'), 'utf8').catch(()=>'{}')) : {};
|
|
683
|
+
if (meta.headers) {
|
|
684
|
+
// normalize these for consistency
|
|
685
|
+
for (const key of Object.keys(meta.headers)){
|
|
686
|
+
const keyLower = key.toLowerCase();
|
|
687
|
+
let value = meta.headers[key];
|
|
688
|
+
// normalize values to strings (e.g. set-cookie can be an array)
|
|
689
|
+
if (Array.isArray(value)) {
|
|
690
|
+
value = value.join(', ');
|
|
691
|
+
} else if (typeof value !== 'string') {
|
|
692
|
+
value = String(value);
|
|
693
|
+
}
|
|
694
|
+
if (keyLower !== key) {
|
|
695
|
+
delete meta.headers[key];
|
|
696
|
+
}
|
|
697
|
+
meta.headers[keyLower] = value;
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
return meta;
|
|
701
|
+
};
|
|
702
|
+
const filePathCache = new Map();
|
|
703
|
+
const cachedFilePathCheck = async (filePath)=>{
|
|
704
|
+
if (filePathCache.has(filePath)) {
|
|
705
|
+
return filePathCache.get(filePath);
|
|
706
|
+
}
|
|
707
|
+
const newCheck = _promises.default.access(filePath).then(()=>true).catch(()=>false);
|
|
708
|
+
filePathCache.set(filePath, newCheck);
|
|
709
|
+
return newCheck;
|
|
710
|
+
};
|
|
711
|
+
for(const route in prerenderManifest.routes){
|
|
712
|
+
var _routesManifest_dynamicRoutes_find;
|
|
713
|
+
const { initialExpireSeconds: initialExpiration, initialRevalidateSeconds: initialRevalidate, initialHeaders, initialStatus, dataRoute, renderingMode, routeType, response, compute, htmlSize, allowHeader, experimentalBypassFor } = prerenderManifest.routes[route];
|
|
714
|
+
const srcRoute = prerenderManifest.routes[route].srcRoute || route;
|
|
715
|
+
const srcRouteInfo = prerenderManifest.dynamicRoutes[srcRoute];
|
|
716
|
+
const isAppPage = Boolean(appOutputMap[srcRoute]) || srcRoute === '/_not-found';
|
|
717
|
+
const isNotFoundTrue = prerenderManifest.notFoundRoutes.includes(route);
|
|
718
|
+
let allowQuery;
|
|
719
|
+
const routeKeys = (_routesManifest_dynamicRoutes_find = routesManifest.dynamicRoutes.find((item)=>item.page === srcRoute)) == null ? void 0 : _routesManifest_dynamicRoutes_find.routeKeys;
|
|
720
|
+
if (!(0, _utils1.isDynamicRoute)(route)) {
|
|
721
|
+
// for non-dynamic routes we use an empty array since
|
|
722
|
+
// no query values bust the cache for non-dynamic prerenders
|
|
723
|
+
// prerendered paths also do not pass allowQuery as they match
|
|
724
|
+
// during handle: 'filesystem' so should not cache differently
|
|
725
|
+
// by query values
|
|
726
|
+
allowQuery = [];
|
|
727
|
+
} else if (routeKeys) {
|
|
728
|
+
// if we have routeKeys in the routes-manifest we use those
|
|
729
|
+
// for allowQuery for dynamic routes
|
|
730
|
+
allowQuery = Object.values(routeKeys);
|
|
731
|
+
}
|
|
732
|
+
let filePath = getPrerenderFilePath(route, isAppPage, isAppPage && !dataRoute ? '.body' : '.html');
|
|
733
|
+
// Check if this is a static metadata route (e.g., /favicon.ico, /icon.png, /opengraph-image.png)
|
|
734
|
+
// These should be output as static files, not prerenders.
|
|
735
|
+
if ((0, _ismetadataroute.isStaticMetadataFile)(route)) {
|
|
736
|
+
// For static metadata from app router, check if the .body file exists
|
|
737
|
+
const staticMetadataFilePath = getPrerenderFilePath(route, true, '.body');
|
|
738
|
+
if (await cachedFilePathCheck(staticMetadataFilePath)) {
|
|
739
|
+
outputs.staticFiles.push({
|
|
740
|
+
id: route,
|
|
741
|
+
pathname: route,
|
|
742
|
+
type: _constants.AdapterOutputType.STATIC_FILE,
|
|
743
|
+
filePath: staticMetadataFilePath,
|
|
744
|
+
immutableHash: undefined
|
|
745
|
+
});
|
|
746
|
+
continue;
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
// we use the static 404 for notFound: true if available
|
|
750
|
+
// if not we do a blocking invoke on first request
|
|
751
|
+
if (isNotFoundTrue && hasStatic404) {
|
|
752
|
+
var _config_i18n2;
|
|
753
|
+
const locale = config.i18n && (0, _normalizelocalepath.normalizeLocalePath)(route, (_config_i18n2 = config.i18n) == null ? void 0 : _config_i18n2.locales).detectedLocale;
|
|
754
|
+
for (const currentFilePath of [
|
|
755
|
+
getPrerenderFilePath(_path.default.posix.join('/', locale || '', '404'), false, '.html'),
|
|
756
|
+
getPrerenderFilePath('/404', false, '.html')
|
|
757
|
+
]){
|
|
758
|
+
if (await cachedFilePathCheck(currentFilePath)) {
|
|
759
|
+
filePath = currentFilePath;
|
|
760
|
+
break;
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
const meta = await getAppRouteMeta(route, isAppPage);
|
|
765
|
+
// If we already have a complete 404.html, favor that instead of the
|
|
766
|
+
// _not-found prerender. A route with postponed state only produced a
|
|
767
|
+
// shell, so preserve its prerender output in order to resume it.
|
|
768
|
+
if (srcRoute === '/_not-found' && hasStatic404 && !meta.postponed) {
|
|
769
|
+
continue;
|
|
770
|
+
}
|
|
771
|
+
let htmlAllowQuery = allowQuery;
|
|
772
|
+
let dataAllowQuery = allowQuery;
|
|
773
|
+
const dataInitialHeaders = {};
|
|
774
|
+
// We additionally vary based on if there's a postponed prerender
|
|
775
|
+
// because if there isn't, then that means that we generated an
|
|
776
|
+
// empty shell, and producing an empty RSC shell would be a waste.
|
|
777
|
+
// If there is a postponed prerender, then the RSC shell would be
|
|
778
|
+
// non-empty, and it would be valuable to also generate an empty
|
|
779
|
+
// RSC shell.
|
|
780
|
+
if (meta.postponed) {
|
|
781
|
+
htmlAllowQuery = [];
|
|
782
|
+
if (routesManifest.rsc.dynamicRSCPrerender) {
|
|
783
|
+
// If client param parsing is enabled, we follow the same logic as the
|
|
784
|
+
// HTML allowQuery as it's already going to vary based on if there's a
|
|
785
|
+
// static shell generated or if there's fallback root params. If there
|
|
786
|
+
// are fallback root params, and we can serve a fallback, then we
|
|
787
|
+
// should follow the same logic for the dynamic RSC routes.
|
|
788
|
+
//
|
|
789
|
+
// If client param parsing is not enabled, we have to use the
|
|
790
|
+
// allowQuery because the RSC payloads will contain dynamic segment
|
|
791
|
+
// values.
|
|
792
|
+
if (routesManifest.rsc.clientParamParsing) {
|
|
793
|
+
dataAllowQuery = htmlAllowQuery;
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
if (renderingMode === _renderingmode.RenderingMode.PARTIALLY_STATIC) {
|
|
798
|
+
// Dynamic RSC requests cannot be cached, so we explicity set it
|
|
799
|
+
// here to ensure that the response is not cached by the browser.
|
|
800
|
+
dataInitialHeaders['cache-control'] = 'private, no-store, no-cache, max-age=0, must-revalidate';
|
|
801
|
+
}
|
|
802
|
+
const classification = getPrerenderClassification(route, routeType, response, compute, htmlSize);
|
|
803
|
+
const initialOutput = {
|
|
804
|
+
id: route,
|
|
805
|
+
type: _constants.AdapterOutputType.PRERENDER,
|
|
806
|
+
pathname: route,
|
|
807
|
+
parentOutputId: srcRoute === '/_not-found' ? srcRoute : getParentOutput(srcRoute, route).id,
|
|
808
|
+
groupId: prerenderGroupId,
|
|
809
|
+
route: srcRoute,
|
|
810
|
+
pprChain: isAppPage && renderingMode === _renderingmode.RenderingMode.PARTIALLY_STATIC ? {
|
|
811
|
+
headers: {
|
|
812
|
+
[_constants1.NEXT_RESUME_HEADER]: '1'
|
|
813
|
+
}
|
|
814
|
+
} : undefined,
|
|
815
|
+
// This describes the whole source page, not just its least-specific
|
|
816
|
+
// matcher. A closed prefix with an open suffix must remain callable
|
|
817
|
+
// for paths that weren't rendered at build time.
|
|
818
|
+
parentFallbackMode: (srcRouteInfo == null ? void 0 : srcRouteInfo.fallback) === false && sourcesWithOpenFallbacks.has(srcRoute) ? undefined : srcRouteInfo == null ? void 0 : srcRouteInfo.fallback,
|
|
819
|
+
fallback: !isNotFoundTrue || isNotFoundTrue && hasStatic404 ? {
|
|
820
|
+
filePath,
|
|
821
|
+
postponedState: undefined,
|
|
822
|
+
initialStatus: initialStatus ?? meta.status ?? (isNotFoundTrue ? 404 : undefined),
|
|
823
|
+
initialHeaders: {
|
|
824
|
+
...initialHeaders,
|
|
825
|
+
vary: varyHeader,
|
|
826
|
+
'content-type': _constants1.HTML_CONTENT_TYPE_HEADER,
|
|
827
|
+
...meta.headers
|
|
828
|
+
},
|
|
829
|
+
initialExpiration,
|
|
830
|
+
initialRevalidate: typeof initialRevalidate === 'undefined' ? 1 : initialRevalidate
|
|
831
|
+
} : undefined,
|
|
832
|
+
config: {
|
|
833
|
+
allowQuery,
|
|
834
|
+
allowHeader,
|
|
835
|
+
renderingMode,
|
|
836
|
+
bypassFor: isAppPage && srcRoute !== '/_not-found' ? experimentalBypassFor : undefined,
|
|
837
|
+
bypassToken: previewProps.previewModeId
|
|
838
|
+
}
|
|
839
|
+
};
|
|
840
|
+
// Classification describes the primary HTML or Route Handler body,
|
|
841
|
+
// not the related RSC/data/segment outputs that spread initialOutput.
|
|
842
|
+
// The shallow spread shares `fallback` by reference, so
|
|
843
|
+
// handleAppMeta's postponedState mutation still reaches this output.
|
|
844
|
+
outputs.prerenders.push({
|
|
845
|
+
...initialOutput,
|
|
846
|
+
...classification
|
|
847
|
+
});
|
|
848
|
+
if (!isAppPage && appPageKeys && appPageKeys.length > 0) {
|
|
849
|
+
const rscPage = `${route === '/' ? '/index' : route}.rsc`;
|
|
850
|
+
outputs.staticFiles.push({
|
|
851
|
+
id: rscPage,
|
|
852
|
+
pathname: rscPage,
|
|
853
|
+
type: _constants.AdapterOutputType.STATIC_FILE,
|
|
854
|
+
filePath: rscFallbackPath,
|
|
855
|
+
immutableHash: undefined
|
|
856
|
+
});
|
|
857
|
+
}
|
|
858
|
+
if (dataRoute) {
|
|
859
|
+
const dataFilePath = getPrerenderFilePath(route, isAppPage, isAppPage ? '.rsc' : '.json');
|
|
860
|
+
let postponed = meta.postponed;
|
|
861
|
+
if (renderingMode === _renderingmode.RenderingMode.PARTIALLY_STATIC && !await cachedFilePathCheck(dataFilePath)) {
|
|
862
|
+
var _initialOutput_fallback;
|
|
863
|
+
outputs.prerenders.push({
|
|
864
|
+
...initialOutput,
|
|
865
|
+
id: dataRoute,
|
|
866
|
+
pathname: dataRoute,
|
|
867
|
+
fallback: {
|
|
868
|
+
...initialOutput.fallback,
|
|
869
|
+
postponedState: postponed,
|
|
870
|
+
initialStatus: undefined,
|
|
871
|
+
initialHeaders: {
|
|
872
|
+
...(_initialOutput_fallback = initialOutput.fallback) == null ? void 0 : _initialOutput_fallback.initialHeaders,
|
|
873
|
+
...dataInitialHeaders,
|
|
874
|
+
'content-type': isAppPage ? rscContentTypeHeader : _constants1.JSON_CONTENT_TYPE_HEADER
|
|
875
|
+
},
|
|
876
|
+
filePath: undefined
|
|
877
|
+
}
|
|
878
|
+
});
|
|
879
|
+
} else {
|
|
880
|
+
var _initialOutput_fallback1;
|
|
881
|
+
outputs.prerenders.push({
|
|
882
|
+
...initialOutput,
|
|
883
|
+
id: dataRoute,
|
|
884
|
+
pathname: dataRoute,
|
|
885
|
+
fallback: isNotFoundTrue ? undefined : {
|
|
886
|
+
...initialOutput.fallback,
|
|
887
|
+
initialStatus: undefined,
|
|
888
|
+
initialHeaders: {
|
|
889
|
+
...(_initialOutput_fallback1 = initialOutput.fallback) == null ? void 0 : _initialOutput_fallback1.initialHeaders,
|
|
890
|
+
...dataInitialHeaders,
|
|
891
|
+
'content-type': isAppPage ? rscContentTypeHeader : _constants1.JSON_CONTENT_TYPE_HEADER
|
|
892
|
+
},
|
|
893
|
+
postponedState: undefined,
|
|
894
|
+
filePath: dataFilePath
|
|
895
|
+
}
|
|
896
|
+
});
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
if (isAppPage) {
|
|
900
|
+
await handleAppMeta(route, initialOutput, meta, {
|
|
901
|
+
htmlAllowQuery,
|
|
902
|
+
dataAllowQuery
|
|
903
|
+
});
|
|
904
|
+
}
|
|
905
|
+
prerenderGroupId += 1;
|
|
906
|
+
}
|
|
907
|
+
for(const dynamicRoute in prerenderManifest.dynamicRoutes){
|
|
908
|
+
var _routesManifest_dynamicRoutes_find1;
|
|
909
|
+
if ((0, _ismetadataroute.isStaticMetadataFile)(dynamicRoute)) {
|
|
910
|
+
continue;
|
|
911
|
+
}
|
|
912
|
+
const { fallback, fallbackExpire, fallbackRevalidate, fallbackHeaders, fallbackStatus, fallbackSourceRoute, fallbackRootParams, remainingPrerenderableParams, allowHeader, dataRoute, renderingMode, routeType, response, compute, htmlSize, experimentalBypassFor } = prerenderManifest.dynamicRoutes[dynamicRoute];
|
|
913
|
+
const srcRoute = fallbackSourceRoute || dynamicRoute;
|
|
914
|
+
const parentOutput = getParentOutput(srcRoute, dynamicRoute);
|
|
915
|
+
const isAppPage = Boolean(appOutputMap[srcRoute]);
|
|
916
|
+
const meta = await getAppRouteMeta(dynamicRoute, isAppPage);
|
|
917
|
+
const routeKeys = ((_routesManifest_dynamicRoutes_find1 = routesManifest.dynamicRoutes.find((item)=>item.page === dynamicRoute)) == null ? void 0 : _routesManifest_dynamicRoutes_find1.routeKeys) || {};
|
|
918
|
+
const allowQuery = Object.values(routeKeys);
|
|
919
|
+
const partialFallback = // Partial fallback shells are only emitted when Partial Prefetching
|
|
920
|
+
// is enabled in the app's Next.js config.
|
|
921
|
+
Boolean(config.partialPrefetching) && isAppPage && remainingPrerenderableParams !== undefined && remainingPrerenderableParams.length > 0 && renderingMode === _renderingmode.RenderingMode.PARTIALLY_STATIC && typeof fallback === 'string' && Boolean(meta.postponed);
|
|
922
|
+
const canEmitPartialFallback = partialFallback && (fallbackRootParams == null ? void 0 : fallbackRootParams.length) === 0;
|
|
923
|
+
let htmlAllowQuery = allowQuery;
|
|
924
|
+
let didFilterBlockingAllowQuery = false;
|
|
925
|
+
// We only want to vary on the shell contents if there is a fallback
|
|
926
|
+
// present and able to be served.
|
|
927
|
+
if (typeof fallback === 'string') {
|
|
928
|
+
if (fallbackRootParams && fallbackRootParams.length > 0) {
|
|
929
|
+
htmlAllowQuery = fallbackRootParams.map((paramName)=>`${_constants1.NEXT_QUERY_PARAM_PREFIX}${paramName}`);
|
|
930
|
+
} else if (meta.postponed) {
|
|
931
|
+
// If there's postponed fallback content, we usually collapse to a shared shell (`[]`).
|
|
932
|
+
// For partial fallbacks in cache components, keep only the
|
|
933
|
+
// params that can still complete this shell.
|
|
934
|
+
const remainingPrerenderableQueryKeys = new Set((remainingPrerenderableParams ?? []).map((param)=>`${_constants1.NEXT_QUERY_PARAM_PREFIX}${param.paramName}`));
|
|
935
|
+
htmlAllowQuery = canEmitPartialFallback && routesManifest.rsc.clientParamParsing ? Object.values(routeKeys).filter((routeKey)=>remainingPrerenderableQueryKeys.has(routeKey)) : [];
|
|
936
|
+
}
|
|
937
|
+
} else if (fallback === null && isAppPage && renderingMode === _renderingmode.RenderingMode.PARTIALLY_STATIC && routesManifest.rsc.clientParamParsing && remainingPrerenderableParams !== undefined) {
|
|
938
|
+
// BLOCKING entries (no servable fallback) still cache their
|
|
939
|
+
// on-demand renders, so the same cache-key contract applies as for
|
|
940
|
+
// partial fallbacks: only params that `generateStaticParams` can
|
|
941
|
+
// still provide may partition the cache — root params (which are
|
|
942
|
+
// always provided) and the remaining prerenderable params.
|
|
943
|
+
// Including a never-prerenderable param would create a cache entry
|
|
944
|
+
// per param value and resolve the param into the cached content,
|
|
945
|
+
// so it must be stripped from the request instead, which defers it
|
|
946
|
+
// to a per-request resume.
|
|
947
|
+
const prerenderableQueryKeys = new Set();
|
|
948
|
+
for (const paramName of fallbackRootParams ?? []){
|
|
949
|
+
prerenderableQueryKeys.add(`${_constants1.NEXT_QUERY_PARAM_PREFIX}${paramName}`);
|
|
950
|
+
}
|
|
951
|
+
for (const param of remainingPrerenderableParams){
|
|
952
|
+
prerenderableQueryKeys.add(`${_constants1.NEXT_QUERY_PARAM_PREFIX}${param.paramName}`);
|
|
953
|
+
}
|
|
954
|
+
htmlAllowQuery = allowQuery.filter((routeKey)=>prerenderableQueryKeys.has(routeKey));
|
|
955
|
+
didFilterBlockingAllowQuery = true;
|
|
956
|
+
}
|
|
957
|
+
// app router dynamic route fallbacks don't have the extension so
|
|
958
|
+
// ensure it's added here
|
|
959
|
+
const fallbackHtmlFile = typeof fallback === 'string' ? fallback.endsWith('.html') ? fallback : `${fallback}.html` : undefined;
|
|
960
|
+
const fallbackHtmlPath = fallbackHtmlFile !== undefined ? getPrerenderFilePath(fallbackHtmlFile.replace(/\.html$/, ''), isAppPage, '.html') : undefined;
|
|
961
|
+
const classification = getPrerenderClassification(dynamicRoute, routeType, response, compute, htmlSize);
|
|
962
|
+
const initialOutput = {
|
|
963
|
+
id: dynamicRoute,
|
|
964
|
+
type: _constants.AdapterOutputType.PRERENDER,
|
|
965
|
+
pathname: dynamicRoute,
|
|
966
|
+
parentOutputId: parentOutput.id,
|
|
967
|
+
groupId: prerenderGroupId,
|
|
968
|
+
route: srcRoute,
|
|
969
|
+
pprChain: isAppPage && renderingMode === _renderingmode.RenderingMode.PARTIALLY_STATIC ? {
|
|
970
|
+
headers: {
|
|
971
|
+
[_constants1.NEXT_RESUME_HEADER]: '1'
|
|
972
|
+
}
|
|
973
|
+
} : undefined,
|
|
974
|
+
fallback: fallbackHtmlPath !== undefined ? {
|
|
975
|
+
filePath: fallbackHtmlPath,
|
|
976
|
+
postponedState: undefined,
|
|
977
|
+
initialStatus: fallbackStatus ?? meta.status,
|
|
978
|
+
initialHeaders: {
|
|
979
|
+
...fallbackHeaders,
|
|
980
|
+
...(appPageKeys == null ? void 0 : appPageKeys.length) ? {
|
|
981
|
+
vary: varyHeader
|
|
982
|
+
} : {},
|
|
983
|
+
'content-type': _constants1.HTML_CONTENT_TYPE_HEADER,
|
|
984
|
+
...meta.headers
|
|
985
|
+
},
|
|
986
|
+
initialExpiration: fallbackExpire,
|
|
987
|
+
initialRevalidate: fallbackRevalidate ?? 1
|
|
988
|
+
} : undefined,
|
|
989
|
+
config: {
|
|
990
|
+
allowQuery: htmlAllowQuery,
|
|
991
|
+
allowHeader,
|
|
992
|
+
renderingMode,
|
|
993
|
+
partialFallback: canEmitPartialFallback || undefined,
|
|
994
|
+
bypassFor: isAppPage ? experimentalBypassFor : undefined,
|
|
995
|
+
bypassToken: previewProps.previewModeId
|
|
996
|
+
}
|
|
997
|
+
};
|
|
998
|
+
if (!config.i18n || isAppPage) {
|
|
999
|
+
// Classification describes only the primary HTML response, not the
|
|
1000
|
+
// related RSC/data/segment outputs that spread initialOutput. The
|
|
1001
|
+
// shallow spread shares `fallback` by reference, so handleAppMeta's
|
|
1002
|
+
// postponedState mutation still reaches this output.
|
|
1003
|
+
outputs.prerenders.push({
|
|
1004
|
+
...initialOutput,
|
|
1005
|
+
...classification
|
|
1006
|
+
});
|
|
1007
|
+
if (!isAppPage && fallback !== false && appPageKeys && appPageKeys.length > 0) {
|
|
1008
|
+
const rscPage = `${srcRoute === '/' ? '/index' : srcRoute}.rsc`;
|
|
1009
|
+
outputs.staticFiles.push({
|
|
1010
|
+
id: rscPage,
|
|
1011
|
+
pathname: rscPage,
|
|
1012
|
+
type: _constants.AdapterOutputType.STATIC_FILE,
|
|
1013
|
+
filePath: rscFallbackPath,
|
|
1014
|
+
immutableHash: undefined
|
|
1015
|
+
});
|
|
1016
|
+
}
|
|
1017
|
+
let dataAllowQuery = allowQuery;
|
|
1018
|
+
const dataInitialHeaders = {};
|
|
1019
|
+
if (meta.postponed && routesManifest.rsc.dynamicRSCPrerender) {
|
|
1020
|
+
// If client param parsing is enabled, we follow the same logic as the
|
|
1021
|
+
// HTML allowQuery as it's already going to vary based on if there's a
|
|
1022
|
+
// static shell generated or if there's fallback root params. If there
|
|
1023
|
+
// are fallback root params, and we can serve a fallback, then we
|
|
1024
|
+
// should follow the same logic for the dynamic RSC routes.
|
|
1025
|
+
//
|
|
1026
|
+
// If client param parsing is not enabled, we have to use the
|
|
1027
|
+
// allowQuery because the RSC payloads will contain dynamic segment
|
|
1028
|
+
// values.
|
|
1029
|
+
if (routesManifest.rsc.clientParamParsing) {
|
|
1030
|
+
dataAllowQuery = htmlAllowQuery;
|
|
1031
|
+
}
|
|
1032
|
+
} else if (didFilterBlockingAllowQuery) {
|
|
1033
|
+
// Blocking entries have no fallback shell whose presence could
|
|
1034
|
+
// make the data route vary differently from the HTML route: the
|
|
1035
|
+
// on-demand data render is cached under the same
|
|
1036
|
+
// prerenderable-params-only contract.
|
|
1037
|
+
dataAllowQuery = htmlAllowQuery;
|
|
1038
|
+
}
|
|
1039
|
+
if (renderingMode === _renderingmode.RenderingMode.PARTIALLY_STATIC) {
|
|
1040
|
+
// Dynamic RSC requests cannot be cached, so we explicity set it
|
|
1041
|
+
// here to ensure that the response is not cached by the browser.
|
|
1042
|
+
dataInitialHeaders['cache-control'] = 'private, no-store, no-cache, max-age=0, must-revalidate';
|
|
1043
|
+
}
|
|
1044
|
+
if (isAppPage) {
|
|
1045
|
+
await handleAppMeta(dynamicRoute, initialOutput, meta, {
|
|
1046
|
+
htmlAllowQuery,
|
|
1047
|
+
dataAllowQuery
|
|
1048
|
+
});
|
|
1049
|
+
}
|
|
1050
|
+
if (renderingMode === _renderingmode.RenderingMode.PARTIALLY_STATIC) {
|
|
1051
|
+
var _initialOutput_fallback2;
|
|
1052
|
+
outputs.prerenders.push({
|
|
1053
|
+
...initialOutput,
|
|
1054
|
+
id: `${dynamicRoute}.rsc`,
|
|
1055
|
+
pathname: `${dynamicRoute}.rsc`,
|
|
1056
|
+
fallback: {
|
|
1057
|
+
...initialOutput.fallback,
|
|
1058
|
+
filePath: undefined,
|
|
1059
|
+
postponedState: meta.postponed,
|
|
1060
|
+
initialStatus: undefined,
|
|
1061
|
+
initialHeaders: {
|
|
1062
|
+
...(_initialOutput_fallback2 = initialOutput.fallback) == null ? void 0 : _initialOutput_fallback2.initialHeaders,
|
|
1063
|
+
...dataInitialHeaders,
|
|
1064
|
+
'content-type': isAppPage ? rscContentTypeHeader : _constants1.JSON_CONTENT_TYPE_HEADER
|
|
1065
|
+
}
|
|
1066
|
+
},
|
|
1067
|
+
config: {
|
|
1068
|
+
...initialOutput.config,
|
|
1069
|
+
allowQuery: dataAllowQuery,
|
|
1070
|
+
partialFallback: undefined
|
|
1071
|
+
}
|
|
1072
|
+
});
|
|
1073
|
+
} else if (dataRoute) {
|
|
1074
|
+
outputs.prerenders.push({
|
|
1075
|
+
...initialOutput,
|
|
1076
|
+
id: dataRoute,
|
|
1077
|
+
pathname: dataRoute,
|
|
1078
|
+
fallback: undefined,
|
|
1079
|
+
config: {
|
|
1080
|
+
...initialOutput.config,
|
|
1081
|
+
partialFallback: undefined
|
|
1082
|
+
}
|
|
1083
|
+
});
|
|
1084
|
+
}
|
|
1085
|
+
prerenderGroupId += 1;
|
|
1086
|
+
} else {
|
|
1087
|
+
for (const locale of config.i18n.locales){
|
|
1088
|
+
const currentOutput = {
|
|
1089
|
+
...initialOutput,
|
|
1090
|
+
pathname: _path.default.posix.join(`/${locale}`, initialOutput.pathname),
|
|
1091
|
+
id: _path.default.posix.join(`/${locale}`, initialOutput.id),
|
|
1092
|
+
fallback: fallbackHtmlFile !== undefined ? {
|
|
1093
|
+
...initialOutput.fallback,
|
|
1094
|
+
initialStatus: undefined,
|
|
1095
|
+
postponedState: undefined,
|
|
1096
|
+
filePath: getPrerenderFilePath(_path.default.posix.join('/', locale, fallbackHtmlFile.replace(/\.html$/, '')), false, '.html')
|
|
1097
|
+
} : undefined,
|
|
1098
|
+
groupId: prerenderGroupId
|
|
1099
|
+
};
|
|
1100
|
+
outputs.prerenders.push(currentOutput);
|
|
1101
|
+
if (!isAppPage && fallback !== false && appPageKeys && appPageKeys.length > 0) {
|
|
1102
|
+
const rscPage = `${_path.default.posix.join(`/${locale}`, initialOutput.pathname)}.rsc`;
|
|
1103
|
+
outputs.staticFiles.push({
|
|
1104
|
+
id: rscPage,
|
|
1105
|
+
pathname: rscPage,
|
|
1106
|
+
type: _constants.AdapterOutputType.STATIC_FILE,
|
|
1107
|
+
filePath: rscFallbackPath,
|
|
1108
|
+
immutableHash: undefined
|
|
1109
|
+
});
|
|
1110
|
+
}
|
|
1111
|
+
if (dataRoute) {
|
|
1112
|
+
const dataPathname = _path.default.posix.join(`/_next/data`, buildId, locale, dynamicRoute + '.json');
|
|
1113
|
+
outputs.prerenders.push({
|
|
1114
|
+
...initialOutput,
|
|
1115
|
+
id: dataPathname,
|
|
1116
|
+
pathname: dataPathname,
|
|
1117
|
+
// data route doesn't have skeleton fallback
|
|
1118
|
+
fallback: undefined,
|
|
1119
|
+
config: {
|
|
1120
|
+
...initialOutput.config,
|
|
1121
|
+
partialFallback: undefined
|
|
1122
|
+
},
|
|
1123
|
+
groupId: prerenderGroupId
|
|
1124
|
+
});
|
|
1125
|
+
}
|
|
1126
|
+
prerenderGroupId += 1;
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
// ensure 404
|
|
1131
|
+
const staticErrorDocs = [
|
|
1132
|
+
...hasStatic404 ? [
|
|
1133
|
+
'/404'
|
|
1134
|
+
] : [],
|
|
1135
|
+
...hasStatic500 ? [
|
|
1136
|
+
'/500'
|
|
1137
|
+
] : []
|
|
1138
|
+
];
|
|
1139
|
+
for (const errorDoc of staticErrorDocs){
|
|
1140
|
+
var _config_i18n3;
|
|
1141
|
+
const errorDocPath = _path.default.posix.join('/', ((_config_i18n3 = config.i18n) == null ? void 0 : _config_i18n3.defaultLocale) || '', errorDoc);
|
|
1142
|
+
if (!prerenderManifest.routes[errorDocPath]) {
|
|
1143
|
+
var _config_i18n_locales1, _config_i18n4;
|
|
1144
|
+
for (const currentDocPath of [
|
|
1145
|
+
errorDocPath,
|
|
1146
|
+
...((_config_i18n4 = config.i18n) == null ? void 0 : (_config_i18n_locales1 = _config_i18n4.locales) == null ? void 0 : _config_i18n_locales1.filter((locale)=>{
|
|
1147
|
+
var _config_i18n;
|
|
1148
|
+
return locale !== ((_config_i18n = config.i18n) == null ? void 0 : _config_i18n.defaultLocale);
|
|
1149
|
+
}).map((locale)=>_path.default.posix.join('/', locale, errorDoc))) || []
|
|
1150
|
+
]){
|
|
1151
|
+
// skip if this static file was already emitted for an
|
|
1152
|
+
// auto-static-optimized page above to avoid duplicate entries
|
|
1153
|
+
if (emittedStaticFilePathnames.has(currentDocPath)) {
|
|
1154
|
+
continue;
|
|
1155
|
+
}
|
|
1156
|
+
const currentFilePath = _path.default.join(pagesDistDir, `${currentDocPath}.html`);
|
|
1157
|
+
if (await cachedFilePathCheck(currentFilePath)) {
|
|
1158
|
+
outputs.staticFiles.push({
|
|
1159
|
+
pathname: currentDocPath,
|
|
1160
|
+
id: currentDocPath,
|
|
1161
|
+
type: _constants.AdapterOutputType.STATIC_FILE,
|
|
1162
|
+
filePath: currentFilePath,
|
|
1163
|
+
immutableHash: undefined
|
|
1164
|
+
});
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
}
|
|
1170
|
+
normalizePathnames(config, outputs);
|
|
1171
|
+
const dynamicRoutes = [];
|
|
1172
|
+
const dynamicDataRoutes = [];
|
|
1173
|
+
const dynamicSegmentRoutes = [];
|
|
1174
|
+
const getDestinationQuery = (routeKeys)=>{
|
|
1175
|
+
const items = Object.entries(routeKeys ?? {});
|
|
1176
|
+
if (items.length === 0) return '';
|
|
1177
|
+
return '?' + items.map(([key, value])=>`${value}=$${key}`).join('&');
|
|
1178
|
+
};
|
|
1179
|
+
// The valid bypass token admits both Draft Mode and legacy Preview Mode.
|
|
1180
|
+
// Pages Router validates legacy preview data after routing.
|
|
1181
|
+
const fallbackFalseHasCondition = [
|
|
1182
|
+
{
|
|
1183
|
+
type: 'cookie',
|
|
1184
|
+
key: '__prerender_bypass',
|
|
1185
|
+
value: previewProps.previewModeId
|
|
1186
|
+
}
|
|
1187
|
+
];
|
|
1188
|
+
// Without this collapse the loop below emits one entry per shell.
|
|
1189
|
+
const fallbackShellRuns = config.experimental.collapseAdapterRoutes ? (0, _fallbackshellruns.collectFallbackShellRuns)(routesManifest.dynamicRoutes, (page)=>{
|
|
1190
|
+
var _prerenderManifest_dynamicRoutes_page;
|
|
1191
|
+
return ((_prerenderManifest_dynamicRoutes_page = prerenderManifest.dynamicRoutes[page]) == null ? void 0 : _prerenderManifest_dynamicRoutes_page.fallback) === false;
|
|
1192
|
+
}) : undefined;
|
|
1193
|
+
const escapedBasePath = config.basePath && config.basePath !== '/' ? (0, _escaperegexp.escapeStringRegexp)(_path.default.posix.join('/', config.basePath)) : '';
|
|
1194
|
+
for (const route of routesManifest.dynamicRoutes){
|
|
1195
|
+
var _prerenderManifest_dynamicRoutes_route_page;
|
|
1196
|
+
// An earlier entry in this loop serves this shell.
|
|
1197
|
+
if (fallbackShellRuns == null ? void 0 : fallbackShellRuns.replacedPages.has(route.page)) {
|
|
1198
|
+
continue;
|
|
1199
|
+
}
|
|
1200
|
+
const fallbackShellRun = fallbackShellRuns == null ? void 0 : fallbackShellRuns.byRepresentativePage.get(route.page);
|
|
1201
|
+
const shouldLocalize = Boolean(config.i18n);
|
|
1202
|
+
const routeRegex = (0, _routeregex.getNamedRouteRegex)(route.page, {
|
|
1203
|
+
prefixRouteKeys: true
|
|
1204
|
+
});
|
|
1205
|
+
const isFallbackFalse = ((_prerenderManifest_dynamicRoutes_route_page = prerenderManifest.dynamicRoutes[route.page]) == null ? void 0 : _prerenderManifest_dynamicRoutes_route_page.fallback) === false;
|
|
1206
|
+
// An entry for a whole run of shells matches every prefix in that run.
|
|
1207
|
+
// The destination copies the prefix that matched.
|
|
1208
|
+
//
|
|
1209
|
+
// The prefix and RSC suffix use unnamed captures. Adapters can forward
|
|
1210
|
+
// named captures to the application query when they bypass prerendered
|
|
1211
|
+
// output.
|
|
1212
|
+
//
|
|
1213
|
+
// This replacement runs on the pattern for the page, and `sourceRegex`
|
|
1214
|
+
// below prefixes the result with the base path and the locale group. That
|
|
1215
|
+
// order is deliberate. The search text anchors at `^`, and here that
|
|
1216
|
+
// anchor is the start of the page path. On `sourceRegex` the same anchor
|
|
1217
|
+
// is the start of the base path. A replacement there would match a base
|
|
1218
|
+
// path such as `/de/x`, and it would rewrite that base path instead of
|
|
1219
|
+
// the page path.
|
|
1220
|
+
const pagePattern = fallbackShellRun ? routeRegex.namedRegex.replace(`^/${(0, _escaperegexp.escapeStringRegexp)(fallbackShellRun.prefixes[0])}/`, ()=>`^/(${fallbackShellRun.prefixes.map((prefix)=>(0, _escaperegexp.escapeStringRegexp)(prefix)).join('|')})/`) : routeRegex.namedRegex;
|
|
1221
|
+
const pagePath = fallbackShellRun ? _path.default.posix.join('/', shouldLocalize ? '$2' : '$1', fallbackShellRun.tail) : route.page;
|
|
1222
|
+
const sourceRegex = pagePattern.replace('^', ()=>`^${escapedBasePath}[/]?${shouldLocalize ? '(?<nextLocale>[^/]{1,})' : ''}`);
|
|
1223
|
+
const destination = _path.default.posix.join('/', config.basePath, shouldLocalize ? '/$nextLocale' : '', pagePath) + getDestinationQuery(route.routeKeys);
|
|
1224
|
+
// Count capture names, not parameter names. An interception route can
|
|
1225
|
+
// capture the same parameter with both nxtP and nxtI names.
|
|
1226
|
+
const suffixCaptureIndex = Object.keys(routeRegex.routeKeys).length + (shouldLocalize ? 1 : 0) + (fallbackShellRun ? 1 : 0) + 1;
|
|
1227
|
+
const hasAppPages = Boolean(appPageKeys && appPageKeys.length > 0);
|
|
1228
|
+
const suffixedHas = isFallbackFalse && !pageKeys.includes(route.page) ? fallbackFalseHasCondition : undefined;
|
|
1229
|
+
const plainHas = isFallbackFalse ? fallbackFalseHasCondition : undefined;
|
|
1230
|
+
// A single entry can serve both forms of the request only when both carry
|
|
1231
|
+
// the same conditions. A pages router route with `fallback: false` is the
|
|
1232
|
+
// one case where they differ: it requires the bypass cookie on the
|
|
1233
|
+
// plain form, and not on the suffixed form. An entry holds one set of
|
|
1234
|
+
// conditions, so that case keeps a separate entry per form.
|
|
1235
|
+
const canMergeSuffixedAndPlain = config.experimental.collapseAdapterRoutes && hasAppPages && suffixedHas === plainHas;
|
|
1236
|
+
if (canMergeSuffixedAndPlain) {
|
|
1237
|
+
// One entry serves every form of a request for this page:
|
|
1238
|
+
//
|
|
1239
|
+
// - The document at the page path.
|
|
1240
|
+
// - The `.rsc` payload.
|
|
1241
|
+
// - A per-segment prefetch.
|
|
1242
|
+
//
|
|
1243
|
+
// The suffix group ends with an empty alternative. The group therefore
|
|
1244
|
+
// always matches, and it captures an empty string for a request that
|
|
1245
|
+
// carries no suffix. The destination copies what the group captured.
|
|
1246
|
+
//
|
|
1247
|
+
// An optional group is unsafe here. An adapter, or the router that
|
|
1248
|
+
// consumes its output, can resolve the placeholders in a destination
|
|
1249
|
+
// from the match result rather than from the pattern. A group that does
|
|
1250
|
+
// not match is then absent from that result, and the destination
|
|
1251
|
+
// placeholder stays unresolved.
|
|
1252
|
+
dynamicRoutes.push({
|
|
1253
|
+
source: pagePath,
|
|
1254
|
+
sourceRegex: sourceRegex.replace(new RegExp((0, _escaperegexp.escapeStringRegexp)('(?:/)?$')), '(\\.rsc|\\.segments/.+\\.segment\\.rsc|)(?:/)?$'),
|
|
1255
|
+
destination: destination.replace(/($|\?)/, (separator)=>`$${suffixCaptureIndex}${separator}`),
|
|
1256
|
+
has: plainHas,
|
|
1257
|
+
missing: undefined
|
|
1258
|
+
});
|
|
1259
|
+
} else {
|
|
1260
|
+
// This route serves two kinds of request for the page: a request for
|
|
1261
|
+
// the `.rsc` payload, and a per-segment prefetch request. The suffix
|
|
1262
|
+
// group accepts both forms, and the destination copies the matched
|
|
1263
|
+
// suffix, so each request resolves to the artifact that it asks for.
|
|
1264
|
+
if (hasAppPages) {
|
|
1265
|
+
dynamicRoutes.push({
|
|
1266
|
+
source: pagePath + '.rsc',
|
|
1267
|
+
sourceRegex: sourceRegex.replace(new RegExp((0, _escaperegexp.escapeStringRegexp)('(?:/)?$')), '(\\.rsc|\\.segments/.+\\.segment\\.rsc)(?:/)?$'),
|
|
1268
|
+
destination: destination.replace(/($|\?)/, (separator)=>`$${suffixCaptureIndex}${separator}`),
|
|
1269
|
+
has: suffixedHas,
|
|
1270
|
+
missing: undefined
|
|
1271
|
+
});
|
|
1272
|
+
}
|
|
1273
|
+
// needs basePath and locale handling if pages router
|
|
1274
|
+
dynamicRoutes.push({
|
|
1275
|
+
source: pagePath,
|
|
1276
|
+
sourceRegex,
|
|
1277
|
+
destination,
|
|
1278
|
+
has: plainHas,
|
|
1279
|
+
missing: undefined
|
|
1280
|
+
});
|
|
1281
|
+
}
|
|
1282
|
+
// The entry above resolves a per-segment request on its own, because its
|
|
1283
|
+
// suffix group accepts a segment path. A build that turns the collapse
|
|
1284
|
+
// off emits a dedicated route for each segment, and the table lists those
|
|
1285
|
+
// before that entry.
|
|
1286
|
+
if (!config.experimental.collapseAdapterRoutes) {
|
|
1287
|
+
for (const segmentRoute of route.prefetchSegmentDataRoutes || []){
|
|
1288
|
+
dynamicSegmentRoutes.push({
|
|
1289
|
+
source: route.page,
|
|
1290
|
+
sourceRegex: segmentRoute.source.replace('^', ()=>`^${escapedBasePath}[/]?`),
|
|
1291
|
+
destination: _path.default.posix.join('/', config.basePath, segmentRoute.destination + getDestinationQuery(segmentRoute.routeKeys)),
|
|
1292
|
+
has: undefined,
|
|
1293
|
+
missing: undefined
|
|
1294
|
+
});
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
const needsMiddlewareResolveRoutes = outputs.middleware && outputs.pages.length > 0;
|
|
1299
|
+
const dataRoutePages = new Set([
|
|
1300
|
+
...routesManifest.dataRoutes.map((item)=>item.page)
|
|
1301
|
+
]);
|
|
1302
|
+
const sortedDataPages = (0, _sortableroutes.sortSortableRoutes)([
|
|
1303
|
+
...needsMiddlewareResolveRoutes ? [
|
|
1304
|
+
...staticPages
|
|
1305
|
+
].map((page)=>({
|
|
1306
|
+
sourcePage: page,
|
|
1307
|
+
page
|
|
1308
|
+
})) : [],
|
|
1309
|
+
...routesManifest.dataRoutes.map((item)=>({
|
|
1310
|
+
sourcePage: item.page,
|
|
1311
|
+
page: item.page
|
|
1312
|
+
}))
|
|
1313
|
+
]);
|
|
1314
|
+
for (const { page } of sortedDataPages){
|
|
1315
|
+
if (needsMiddlewareResolveRoutes || (0, _utils1.isDynamicRoute)(page)) {
|
|
1316
|
+
var _prerenderManifest_dynamicRoutes_page;
|
|
1317
|
+
const shouldLocalize = config.i18n;
|
|
1318
|
+
const isFallbackFalse = ((_prerenderManifest_dynamicRoutes_page = prerenderManifest.dynamicRoutes[page]) == null ? void 0 : _prerenderManifest_dynamicRoutes_page.fallback) === false;
|
|
1319
|
+
const routeRegex = (0, _routeregex.getNamedRouteRegex)(page + '.json', {
|
|
1320
|
+
prefixRouteKeys: true,
|
|
1321
|
+
includeSuffix: true
|
|
1322
|
+
});
|
|
1323
|
+
const isDataRoute = dataRoutePages.has(page);
|
|
1324
|
+
const destination = _path.default.posix.join('/', config.basePath, ...isDataRoute ? [
|
|
1325
|
+
`_next/data`,
|
|
1326
|
+
buildId
|
|
1327
|
+
] : '', ...page === '/' ? [
|
|
1328
|
+
shouldLocalize ? '$nextLocale.json' : 'index.json'
|
|
1329
|
+
] : [
|
|
1330
|
+
shouldLocalize ? '$nextLocale' : '',
|
|
1331
|
+
page + (isDataRoute ? '.json' : '') + getDestinationQuery(routeRegex.routeKeys || {})
|
|
1332
|
+
]);
|
|
1333
|
+
dynamicDataRoutes.push({
|
|
1334
|
+
source: page,
|
|
1335
|
+
sourceRegex: shouldLocalize && page === '/' ? '^' + _path.default.posix.join('/', config.basePath, '_next/data', (0, _escaperegexp.escapeStringRegexp)(buildId), '(?<nextLocale>[^/]{1,}).json') : routeRegex.namedRegex.replace('^', `^${_path.default.posix.join('/', config.basePath, `_next/data`, (0, _escaperegexp.escapeStringRegexp)(buildId))}[/]?${shouldLocalize ? '(?<nextLocale>[^/]{1,})' : ''}`),
|
|
1336
|
+
destination,
|
|
1337
|
+
has: isFallbackFalse ? fallbackFalseHasCondition : undefined,
|
|
1338
|
+
missing: undefined
|
|
1339
|
+
});
|
|
1340
|
+
}
|
|
1341
|
+
}
|
|
1342
|
+
const buildRewriteItem = (route)=>{
|
|
1343
|
+
const converted = (0, _routingutils.convertRewrites)([
|
|
1344
|
+
route
|
|
1345
|
+
], [
|
|
1346
|
+
'nextInternalLocale'
|
|
1347
|
+
])[0];
|
|
1348
|
+
const regex = converted.src || route.regex;
|
|
1349
|
+
return {
|
|
1350
|
+
source: route.source,
|
|
1351
|
+
sourceRegex: route.internal ? regex : (0, _redirectstatus.modifyRouteRegex)(regex),
|
|
1352
|
+
destination: converted.dest || route.destination,
|
|
1353
|
+
has: route.has,
|
|
1354
|
+
missing: route.missing
|
|
1355
|
+
};
|
|
1356
|
+
};
|
|
1357
|
+
const buildRouteFromHeader = (route)=>{
|
|
1358
|
+
const converted = (0, _routingutils.convertHeaders)([
|
|
1359
|
+
route
|
|
1360
|
+
])[0];
|
|
1361
|
+
const regex = converted.src || route.regex;
|
|
1362
|
+
return {
|
|
1363
|
+
source: route.source,
|
|
1364
|
+
sourceRegex: route.internal ? regex : (0, _redirectstatus.modifyRouteRegex)(regex),
|
|
1365
|
+
headers: 'headers' in converted ? converted.headers || {} : {},
|
|
1366
|
+
has: route.has,
|
|
1367
|
+
missing: route.missing,
|
|
1368
|
+
priority: route.internal || undefined
|
|
1369
|
+
};
|
|
1370
|
+
};
|
|
1371
|
+
try {
|
|
1372
|
+
var _outputs_middleware_config_matchers, _outputs_middleware;
|
|
1373
|
+
_log.info(`Running onBuildComplete from ${adapterMod.name}`);
|
|
1374
|
+
const combinedDynamicRoutes = [
|
|
1375
|
+
...dynamicDataRoutes,
|
|
1376
|
+
...dynamicSegmentRoutes,
|
|
1377
|
+
...dynamicRoutes
|
|
1378
|
+
];
|
|
1379
|
+
const rewrites = {
|
|
1380
|
+
beforeFiles: routesManifest.rewrites.beforeFiles.map(buildRewriteItem),
|
|
1381
|
+
afterFiles: routesManifest.rewrites.afterFiles.map(buildRewriteItem),
|
|
1382
|
+
fallback: routesManifest.rewrites.fallback.map(buildRewriteItem)
|
|
1383
|
+
};
|
|
1384
|
+
const redirects = routesManifest.redirects.map((route)=>{
|
|
1385
|
+
const converted = (0, _routingutils.convertRedirects)([
|
|
1386
|
+
route
|
|
1387
|
+
], 307)[0];
|
|
1388
|
+
const regex = converted.src || route.regex;
|
|
1389
|
+
return {
|
|
1390
|
+
source: route.source,
|
|
1391
|
+
sourceRegex: route.internal ? regex : (0, _redirectstatus.modifyRouteRegex)(regex),
|
|
1392
|
+
headers: 'headers' in converted ? converted.headers || {} : {},
|
|
1393
|
+
status: converted.status || (0, _redirectstatus.getRedirectStatus)(route),
|
|
1394
|
+
has: route.has,
|
|
1395
|
+
missing: route.missing,
|
|
1396
|
+
priority: route.internal || undefined
|
|
1397
|
+
};
|
|
1398
|
+
});
|
|
1399
|
+
const headers = routesManifest.headers.map((route)=>buildRouteFromHeader(route));
|
|
1400
|
+
const onMatchHeaders = routesManifest.onMatchHeaders.map((route)=>buildRouteFromHeader(route));
|
|
1401
|
+
await adapterMod.onBuildComplete({
|
|
1402
|
+
routing: {
|
|
1403
|
+
beforeMiddleware: [
|
|
1404
|
+
...headers,
|
|
1405
|
+
...redirects
|
|
1406
|
+
],
|
|
1407
|
+
middlewareMatchers: ((_outputs_middleware = outputs.middleware) == null ? void 0 : (_outputs_middleware_config_matchers = _outputs_middleware.config.matchers) == null ? void 0 : _outputs_middleware_config_matchers.map((matcher)=>({
|
|
1408
|
+
source: matcher.source,
|
|
1409
|
+
sourceRegex: matcher.sourceRegex,
|
|
1410
|
+
has: matcher.has,
|
|
1411
|
+
missing: matcher.missing
|
|
1412
|
+
}))) ?? [],
|
|
1413
|
+
beforeFiles: rewrites.beforeFiles,
|
|
1414
|
+
afterFiles: rewrites.afterFiles,
|
|
1415
|
+
dynamicRoutes: combinedDynamicRoutes,
|
|
1416
|
+
onMatch: [
|
|
1417
|
+
{
|
|
1418
|
+
// This ensures we only match known emitted-by-Next.js files and not
|
|
1419
|
+
// user-emitted files which may be missing a hash in their filename.
|
|
1420
|
+
sourceRegex: `${_path.default.posix.join(config.basePath || '/', '_next/static', `/(?:[^/]+/pages|pages|chunks|immutable|runtime|css|image|media|${(0, _escaperegexp.escapeStringRegexp)(buildId)})/.+`)}`,
|
|
1421
|
+
// Next.js assets contain a hash or entropy in their filenames, so they
|
|
1422
|
+
// are guaranteed to be unique and cacheable indefinitely.
|
|
1423
|
+
headers: {
|
|
1424
|
+
'cache-control': `public,max-age=${_constants1.CACHE_ONE_YEAR_SECONDS},immutable`
|
|
1425
|
+
}
|
|
1426
|
+
},
|
|
1427
|
+
...onMatchHeaders
|
|
1428
|
+
],
|
|
1429
|
+
fallback: rewrites.fallback,
|
|
1430
|
+
shouldNormalizeNextData: !!needsMiddlewareResolveRoutes,
|
|
1431
|
+
rsc: (0, _generateroutesmanifest.generateRoutesManifest)({
|
|
1432
|
+
appType,
|
|
1433
|
+
pageKeys: {
|
|
1434
|
+
pages: pageKeys,
|
|
1435
|
+
app: appPageKeys
|
|
1436
|
+
},
|
|
1437
|
+
config,
|
|
1438
|
+
redirects: [],
|
|
1439
|
+
headers: [],
|
|
1440
|
+
onMatchHeaders: [],
|
|
1441
|
+
rewrites,
|
|
1442
|
+
restrictedRedirectPaths: [],
|
|
1443
|
+
isAppPPREnabled: config.cacheComponents
|
|
1444
|
+
}).routesManifest.rsc
|
|
1445
|
+
},
|
|
1446
|
+
outputs,
|
|
1447
|
+
config,
|
|
1448
|
+
distDir,
|
|
1449
|
+
buildId,
|
|
1450
|
+
nextVersion,
|
|
1451
|
+
projectDir: dir,
|
|
1452
|
+
repoRoot: repoRoot
|
|
1453
|
+
});
|
|
1454
|
+
} catch (err) {
|
|
1455
|
+
_log.error(`Failed to run onBuildComplete from ${adapterMod.name}`);
|
|
1456
|
+
throw err;
|
|
1457
|
+
}
|
|
1458
|
+
}
|
|
1459
|
+
}
|
|
1460
|
+
async function getSharedNodeAssets({ dir, bundler, distDir, repoRoot, outputFileTracingRoot, requiredServerFiles, hasInstrumentationHook, config, syntheticSymlinks }) {
|
|
1461
|
+
const sharedNodeAssets = {};
|
|
1462
|
+
const sharedNodeAssetsHashes = {};
|
|
1463
|
+
const pagesSharedNodeAssets = {};
|
|
1464
|
+
const pagesSharedNodeAssetsHashes = {};
|
|
1465
|
+
const appPagesSharedNodeAssets = {};
|
|
1466
|
+
const appPagesSharedNodeAssetsHashes = {};
|
|
1467
|
+
const salt = config.outputHashSalt || '';
|
|
1468
|
+
const moduleTypes = [
|
|
1469
|
+
'app-page',
|
|
1470
|
+
'pages'
|
|
1471
|
+
];
|
|
1472
|
+
for (const type of moduleTypes){
|
|
1473
|
+
const currentDependencies = [];
|
|
1474
|
+
const modulePath = require.resolve(`next/dist/server/route-modules/${type}/module.compiled`);
|
|
1475
|
+
currentDependencies.push(modulePath);
|
|
1476
|
+
const contextDir = _path.default.join(_path.default.dirname(modulePath), 'vendored', 'contexts');
|
|
1477
|
+
for (const item of (await _promises.default.readdir(contextDir))){
|
|
1478
|
+
if (item.match(/\.(mjs|cjs|js)$/)) {
|
|
1479
|
+
currentDependencies.push(_path.default.join(contextDir, item));
|
|
1480
|
+
}
|
|
1481
|
+
}
|
|
1482
|
+
for (const dependencyPath of currentDependencies){
|
|
1483
|
+
const rootRelativeFilePath = _path.default.relative(repoRoot, dependencyPath);
|
|
1484
|
+
if (type === 'pages') {
|
|
1485
|
+
await pushAsset(pagesSharedNodeAssets, pagesSharedNodeAssetsHashes, rootRelativeFilePath, _path.default.join(repoRoot, rootRelativeFilePath), bundler, salt);
|
|
1486
|
+
} else {
|
|
1487
|
+
await pushAsset(appPagesSharedNodeAssets, appPagesSharedNodeAssetsHashes, rootRelativeFilePath, _path.default.join(repoRoot, rootRelativeFilePath), bundler, salt);
|
|
1488
|
+
}
|
|
1489
|
+
}
|
|
1490
|
+
}
|
|
1491
|
+
// add "next/setup-node-env" stub so it can be required top-level
|
|
1492
|
+
// TODO: should we make this always available without adapters
|
|
1493
|
+
const setupNodeStubPath = _path.default.join(_path.default.dirname(require.resolve('next/package.json')), 'setup-node-env.js');
|
|
1494
|
+
await pushAsset(sharedNodeAssets, sharedNodeAssetsHashes, _path.default.relative(repoRoot, setupNodeStubPath), require.resolve('next/dist/build/adapter/setup-node-env.external'), bundler, salt);
|
|
1495
|
+
// Turbopack traces these itself, they are listed in the nft.json files.
|
|
1496
|
+
if (bundler !== _bundler.Bundler.Turbopack) {
|
|
1497
|
+
const { nodeFileTrace } = require('next/dist/compiled/@vercel/nft');
|
|
1498
|
+
const { makeIgnoreFn } = require('../collect-build-traces');
|
|
1499
|
+
const sharedTraceIgnores = [
|
|
1500
|
+
'**/next/dist/compiled/next-server/**/*.dev.js',
|
|
1501
|
+
'**/next/dist/compiled/webpack/*',
|
|
1502
|
+
'**/node_modules/webpack5/**/*',
|
|
1503
|
+
'**/next/dist/server/lib/route-resolver*',
|
|
1504
|
+
'next/dist/compiled/semver/semver/**/*.js',
|
|
1505
|
+
'**/node_modules/react{,-dom,-dom-server-turbopack}/**/*.development.js',
|
|
1506
|
+
'**/*.d.ts',
|
|
1507
|
+
'**/*.map',
|
|
1508
|
+
'**/next/dist/pages/**/*',
|
|
1509
|
+
'**/node_modules/sharp/**/*',
|
|
1510
|
+
'**/@img/sharp-libvips*/**/*',
|
|
1511
|
+
'**/next/dist/compiled/edge-runtime/**/*',
|
|
1512
|
+
'**/next/dist/server/web/sandbox/**/*',
|
|
1513
|
+
'**/next/dist/server/post-process.js'
|
|
1514
|
+
];
|
|
1515
|
+
const sharedIgnoreFn = makeIgnoreFn(outputFileTracingRoot, sharedTraceIgnores);
|
|
1516
|
+
// The require hook redirects shared-runtime imports from external packages
|
|
1517
|
+
// to the Pages vendored contexts. Those contexts load module.compiled, whose
|
|
1518
|
+
// runtime dependency is selected dynamically. Turbopack includes this via
|
|
1519
|
+
// `Project::pages_traced_modules`; trace the Webpack runtime here.
|
|
1520
|
+
const pagesRuntimePath = require.resolve('next/dist/compiled/next-server/pages.runtime.prod.js');
|
|
1521
|
+
const pagesRuntimeTrace = await nodeFileTrace([
|
|
1522
|
+
pagesRuntimePath
|
|
1523
|
+
], {
|
|
1524
|
+
base: outputFileTracingRoot,
|
|
1525
|
+
ignore: sharedIgnoreFn,
|
|
1526
|
+
moduleSyncCatchall: true
|
|
1527
|
+
});
|
|
1528
|
+
pagesRuntimeTrace.esmFileList.forEach((item)=>pagesRuntimeTrace.fileList.add(item));
|
|
1529
|
+
for (const tracingRootRelativeFilePath of pagesRuntimeTrace.fileList){
|
|
1530
|
+
const absoluteFilePath = _path.default.join(outputFileTracingRoot, tracingRootRelativeFilePath);
|
|
1531
|
+
await pushAsset(pagesSharedNodeAssets, pagesSharedNodeAssetsHashes, _path.default.relative(repoRoot, absoluteFilePath), absoluteFilePath, bundler, salt);
|
|
1532
|
+
}
|
|
1533
|
+
// These are modules that are necessary for bootstrapping node env
|
|
1534
|
+
const necessaryNodeDependencies = [
|
|
1535
|
+
require.resolve('next/dist/server/node-environment'),
|
|
1536
|
+
require.resolve('next/dist/server/require-hook'),
|
|
1537
|
+
require.resolve('next/dist/server/node-polyfill-crypto'),
|
|
1538
|
+
// Nothing references these, the require hook resolves them at runtime.
|
|
1539
|
+
// Turbopack traces them via `Project::pages_traced_modules`.
|
|
1540
|
+
...Object.values(_requirehook.defaultOverrides).filter((item)=>_path.default.extname(item))
|
|
1541
|
+
];
|
|
1542
|
+
const { cacheHandler, cacheHandlers } = config;
|
|
1543
|
+
// ensure we trace any dependencies needed for a custom incremental cache handler
|
|
1544
|
+
if (cacheHandler) {
|
|
1545
|
+
const resolvedPath = (0, _formatdynamicimportpath.resolveCacheHandlerPathToFilesystem)(cacheHandler);
|
|
1546
|
+
necessaryNodeDependencies.push(require.resolve(_path.default.isAbsolute(resolvedPath) ? resolvedPath : _path.default.join(dir, resolvedPath)));
|
|
1547
|
+
}
|
|
1548
|
+
if (cacheHandlers) {
|
|
1549
|
+
for (const handlerPath of Object.values(cacheHandlers)){
|
|
1550
|
+
if (handlerPath) {
|
|
1551
|
+
const resolvedPath = (0, _formatdynamicimportpath.resolveCacheHandlerPathToFilesystem)(handlerPath);
|
|
1552
|
+
necessaryNodeDependencies.push(require.resolve(_path.default.isAbsolute(resolvedPath) ? resolvedPath : _path.default.join(dir, resolvedPath)));
|
|
1553
|
+
}
|
|
1554
|
+
}
|
|
1555
|
+
}
|
|
1556
|
+
const { fileList, esmFileList } = await nodeFileTrace(necessaryNodeDependencies, {
|
|
1557
|
+
base: outputFileTracingRoot,
|
|
1558
|
+
ignore: sharedIgnoreFn,
|
|
1559
|
+
moduleSyncCatchall: true
|
|
1560
|
+
});
|
|
1561
|
+
esmFileList.forEach((item)=>fileList.add(item));
|
|
1562
|
+
for (const tracingRootRelativeFilePath of fileList){
|
|
1563
|
+
// nodeFileTrace returns paths relative to `base` (outputFileTracingRoot),
|
|
1564
|
+
// so resolve to an absolute path and re-relativize against repoRoot, which
|
|
1565
|
+
// is the root all adapter output keys/source paths are based on.
|
|
1566
|
+
const absoluteFilePath = _path.default.join(outputFileTracingRoot, tracingRootRelativeFilePath);
|
|
1567
|
+
await pushAsset(sharedNodeAssets, sharedNodeAssetsHashes, _path.default.relative(repoRoot, absoluteFilePath), absoluteFilePath, bundler, salt);
|
|
1568
|
+
}
|
|
1569
|
+
}
|
|
1570
|
+
if (hasInstrumentationHook) {
|
|
1571
|
+
const { entryHash: instrumentationEntryHash } = await loadNFT(sharedNodeAssets, sharedNodeAssetsHashes, repoRoot, _path.default.join(distDir, 'server', 'instrumentation.js.nft.json'), syntheticSymlinks, salt);
|
|
1572
|
+
const fileOutputPath = _path.default.relative(repoRoot, _path.default.join(distDir, 'server', 'instrumentation.js'));
|
|
1573
|
+
await pushAsset(sharedNodeAssets, sharedNodeAssetsHashes, fileOutputPath, _path.default.join(distDir, 'server', 'instrumentation.js'), bundler, salt, instrumentationEntryHash);
|
|
1574
|
+
}
|
|
1575
|
+
// Run after hasInstrumentationHook, which inserts the NFT-provided file hash for .next/server/instrumentation.js
|
|
1576
|
+
for (const file of requiredServerFiles){
|
|
1577
|
+
// add to shared node assets
|
|
1578
|
+
const filePath = _path.default.join(dir, file);
|
|
1579
|
+
const fileOutputPath = _path.default.relative(repoRoot, filePath);
|
|
1580
|
+
await pushAsset(sharedNodeAssets, sharedNodeAssetsHashes, fileOutputPath, filePath, bundler, salt);
|
|
1581
|
+
}
|
|
1582
|
+
return {
|
|
1583
|
+
sharedNodeAssets,
|
|
1584
|
+
sharedNodeAssetsHashes,
|
|
1585
|
+
pagesSharedNodeAssets,
|
|
1586
|
+
pagesSharedNodeAssetsHashes,
|
|
1587
|
+
appPagesSharedNodeAssets,
|
|
1588
|
+
appPagesSharedNodeAssetsHashes
|
|
1589
|
+
};
|
|
1590
|
+
}
|
|
1591
|
+
async function pushAsset(assets, assetsHashes, targetFilePath, sourceFilePath, bundler, salt, hashOverride) {
|
|
1592
|
+
if (!(targetFilePath in assets)) {
|
|
1593
|
+
assets[targetFilePath] = sourceFilePath;
|
|
1594
|
+
if (bundler === _bundler.Bundler.Turbopack) {
|
|
1595
|
+
assetsHashes[targetFilePath] = hashOverride ?? await hashFile(salt, sourceFilePath);
|
|
1596
|
+
}
|
|
1597
|
+
}
|
|
1598
|
+
}
|
|
1599
|
+
async function loadNFT(assets, assetsHashes, repoRoot, traceFilePath, syntheticSymlinks, salt) {
|
|
1600
|
+
const nft = JSON.parse(await _promises.default.readFile(traceFilePath, 'utf8'));
|
|
1601
|
+
for (const entry of (0, _nft.mapNftFileEntries)(nft, traceFilePath, repoRoot)){
|
|
1602
|
+
let source = entry.source;
|
|
1603
|
+
let hash = entry.hash;
|
|
1604
|
+
if (entry.symlinkCrossesRoot) {
|
|
1605
|
+
if (entry.symlinkTarget === undefined) {
|
|
1606
|
+
throw new _invarianterror.InvariantError(`Expected cross-root symlink ${JSON.stringify(entry.destination)} to have a target`);
|
|
1607
|
+
}
|
|
1608
|
+
const linkTarget = _path.default.relative(_path.default.dirname(entry.destination), entry.symlinkTarget) || '.';
|
|
1609
|
+
hash = hashLinkTarget(salt, linkTarget);
|
|
1610
|
+
source = syntheticSymlinks.createLink(entry.source, linkTarget, hash);
|
|
1611
|
+
}
|
|
1612
|
+
assets[entry.destination] = source;
|
|
1613
|
+
if (hash) {
|
|
1614
|
+
assetsHashes[entry.destination] = hash;
|
|
1615
|
+
}
|
|
1616
|
+
}
|
|
1617
|
+
return {
|
|
1618
|
+
entryHash: nft.entryHash
|
|
1619
|
+
};
|
|
1620
|
+
}
|
|
1621
|
+
async function hashFile(salt, filePath) {
|
|
1622
|
+
try {
|
|
1623
|
+
// Try symlink first, since readFile just transparently resolves those (or fails if it's a
|
|
1624
|
+
// directory symlink).
|
|
1625
|
+
const linkTarget = await _promises.default.readlink(filePath);
|
|
1626
|
+
return hashLinkTarget(salt, linkTarget);
|
|
1627
|
+
} catch (e) {
|
|
1628
|
+
if (e.code === 'EINVAL') {
|
|
1629
|
+
// Not a symlink
|
|
1630
|
+
const hash = _crypto.default.createHash('sha256');
|
|
1631
|
+
hash.update(salt);
|
|
1632
|
+
hash.update('file:');
|
|
1633
|
+
hash.update(await _promises.default.readFile(filePath));
|
|
1634
|
+
return hash.digest('hex');
|
|
1635
|
+
} else {
|
|
1636
|
+
throw e;
|
|
1637
|
+
}
|
|
1638
|
+
}
|
|
1639
|
+
}
|
|
1640
|
+
function hashLinkTarget(salt, linkTarget) {
|
|
1641
|
+
const hash = _crypto.default.createHash('sha256');
|
|
1642
|
+
hash.update(salt);
|
|
1643
|
+
hash.update('link');
|
|
1644
|
+
hash.update(linkTarget);
|
|
1645
|
+
return hash.digest('hex');
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
//# sourceMappingURL=build-complete.js.map
|