@claudeye/linux-x64 1.0.0-beta.6
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/assets/public/exospheresmall-dark.png +0 -0
- package/assets/public/exospheresmall.png +0 -0
- package/assets/standalone/.next/BUILD_ID +1 -0
- package/assets/standalone/.next/app-path-routes-manifest.json +16 -0
- package/assets/standalone/.next/build-manifest.json +21 -0
- package/assets/standalone/.next/package.json +1 -0
- package/assets/standalone/.next/prerender-manifest.json +114 -0
- package/assets/standalone/.next/required-server-files.json +321 -0
- package/assets/standalone/.next/routes-manifest.json +139 -0
- package/assets/standalone/.next/server/app/_global-error/page/app-paths-manifest.json +3 -0
- package/assets/standalone/.next/server/app/_global-error/page/build-manifest.json +18 -0
- package/assets/standalone/.next/server/app/_global-error/page/next-font-manifest.json +6 -0
- package/assets/standalone/.next/server/app/_global-error/page/react-loadable-manifest.json +1 -0
- package/assets/standalone/.next/server/app/_global-error/page/server-reference-manifest.json +4 -0
- package/assets/standalone/.next/server/app/_global-error/page.js +10 -0
- package/assets/standalone/.next/server/app/_global-error/page_client-reference-manifest.js +2 -0
- package/assets/standalone/.next/server/app/_global-error.html +2 -0
- package/assets/standalone/.next/server/app/_global-error.meta +15 -0
- package/assets/standalone/.next/server/app/_global-error.rsc +12 -0
- package/assets/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +5 -0
- package/assets/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +12 -0
- package/assets/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +5 -0
- package/assets/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +4 -0
- package/assets/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -0
- package/assets/standalone/.next/server/app/_not-found/page/app-paths-manifest.json +3 -0
- package/assets/standalone/.next/server/app/_not-found/page/build-manifest.json +18 -0
- package/assets/standalone/.next/server/app/_not-found/page/next-font-manifest.json +6 -0
- package/assets/standalone/.next/server/app/_not-found/page/react-loadable-manifest.json +1 -0
- package/assets/standalone/.next/server/app/_not-found/page/server-reference-manifest.json +20 -0
- package/assets/standalone/.next/server/app/_not-found/page.js +19 -0
- package/assets/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +2 -0
- package/assets/standalone/.next/server/app/_not-found.html +30 -0
- package/assets/standalone/.next/server/app/_not-found.meta +16 -0
- package/assets/standalone/.next/server/app/_not-found.rsc +23 -0
- package/assets/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +23 -0
- package/assets/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +6 -0
- package/assets/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +14 -0
- package/assets/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +5 -0
- package/assets/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +4 -0
- package/assets/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -0
- package/assets/standalone/.next/server/app/api/completed-history/route/app-paths-manifest.json +3 -0
- package/assets/standalone/.next/server/app/api/completed-history/route/build-manifest.json +11 -0
- package/assets/standalone/.next/server/app/api/completed-history/route/server-reference-manifest.json +4 -0
- package/assets/standalone/.next/server/app/api/completed-history/route.js +9 -0
- package/assets/standalone/.next/server/app/api/completed-history/route_client-reference-manifest.js +2 -0
- package/assets/standalone/.next/server/app/api/download/[project]/[session]/route/app-paths-manifest.json +3 -0
- package/assets/standalone/.next/server/app/api/download/[project]/[session]/route/build-manifest.json +11 -0
- package/assets/standalone/.next/server/app/api/download/[project]/[session]/route/server-reference-manifest.json +4 -0
- package/assets/standalone/.next/server/app/api/download/[project]/[session]/route.js +7 -0
- package/assets/standalone/.next/server/app/api/download/[project]/[session]/route_client-reference-manifest.js +2 -0
- package/assets/standalone/.next/server/app/api/queue-item/route/app-paths-manifest.json +3 -0
- package/assets/standalone/.next/server/app/api/queue-item/route/build-manifest.json +11 -0
- package/assets/standalone/.next/server/app/api/queue-item/route/server-reference-manifest.json +4 -0
- package/assets/standalone/.next/server/app/api/queue-item/route.js +10 -0
- package/assets/standalone/.next/server/app/api/queue-item/route_client-reference-manifest.js +2 -0
- package/assets/standalone/.next/server/app/api/queue-status/route/app-paths-manifest.json +3 -0
- package/assets/standalone/.next/server/app/api/queue-status/route/build-manifest.json +11 -0
- package/assets/standalone/.next/server/app/api/queue-status/route/server-reference-manifest.json +4 -0
- package/assets/standalone/.next/server/app/api/queue-status/route.js +9 -0
- package/assets/standalone/.next/server/app/api/queue-status/route_client-reference-manifest.js +2 -0
- package/assets/standalone/.next/server/app/dashboard/[viewName]/page/app-paths-manifest.json +3 -0
- package/assets/standalone/.next/server/app/dashboard/[viewName]/page/build-manifest.json +18 -0
- package/assets/standalone/.next/server/app/dashboard/[viewName]/page/next-font-manifest.json +6 -0
- package/assets/standalone/.next/server/app/dashboard/[viewName]/page/react-loadable-manifest.json +1 -0
- package/assets/standalone/.next/server/app/dashboard/[viewName]/page/server-reference-manifest.json +65 -0
- package/assets/standalone/.next/server/app/dashboard/[viewName]/page.js +27 -0
- package/assets/standalone/.next/server/app/dashboard/[viewName]/page_client-reference-manifest.js +2 -0
- package/assets/standalone/.next/server/app/dashboard/page/app-paths-manifest.json +3 -0
- package/assets/standalone/.next/server/app/dashboard/page/build-manifest.json +18 -0
- package/assets/standalone/.next/server/app/dashboard/page/next-font-manifest.json +6 -0
- package/assets/standalone/.next/server/app/dashboard/page/react-loadable-manifest.json +1 -0
- package/assets/standalone/.next/server/app/dashboard/page/server-reference-manifest.json +65 -0
- package/assets/standalone/.next/server/app/dashboard/page.js +25 -0
- package/assets/standalone/.next/server/app/dashboard/page_client-reference-manifest.js +2 -0
- package/assets/standalone/.next/server/app/icon.png/route/app-paths-manifest.json +3 -0
- package/assets/standalone/.next/server/app/icon.png/route/build-manifest.json +11 -0
- package/assets/standalone/.next/server/app/icon.png/route.js +8 -0
- package/assets/standalone/.next/server/app/icon.png.body +0 -0
- package/assets/standalone/.next/server/app/icon.png.meta +1 -0
- package/assets/standalone/.next/server/app/login/page/app-paths-manifest.json +3 -0
- package/assets/standalone/.next/server/app/login/page/build-manifest.json +18 -0
- package/assets/standalone/.next/server/app/login/page/next-font-manifest.json +6 -0
- package/assets/standalone/.next/server/app/login/page/react-loadable-manifest.json +1 -0
- package/assets/standalone/.next/server/app/login/page/server-reference-manifest.json +35 -0
- package/assets/standalone/.next/server/app/login/page.js +21 -0
- package/assets/standalone/.next/server/app/login/page_client-reference-manifest.js +2 -0
- package/assets/standalone/.next/server/app/login.html +30 -0
- package/assets/standalone/.next/server/app/login.meta +15 -0
- package/assets/standalone/.next/server/app/login.rsc +24 -0
- package/assets/standalone/.next/server/app/login.segments/_full.segment.rsc +24 -0
- package/assets/standalone/.next/server/app/login.segments/_head.segment.rsc +6 -0
- package/assets/standalone/.next/server/app/login.segments/_index.segment.rsc +14 -0
- package/assets/standalone/.next/server/app/login.segments/_tree.segment.rsc +2 -0
- package/assets/standalone/.next/server/app/login.segments/login/__PAGE__.segment.rsc +9 -0
- package/assets/standalone/.next/server/app/login.segments/login.segment.rsc +4 -0
- package/assets/standalone/.next/server/app/page/app-paths-manifest.json +3 -0
- package/assets/standalone/.next/server/app/page/build-manifest.json +18 -0
- package/assets/standalone/.next/server/app/page/next-font-manifest.json +6 -0
- package/assets/standalone/.next/server/app/page/react-loadable-manifest.json +1 -0
- package/assets/standalone/.next/server/app/page/server-reference-manifest.json +20 -0
- package/assets/standalone/.next/server/app/page.js +21 -0
- package/assets/standalone/.next/server/app/page_client-reference-manifest.js +2 -0
- package/assets/standalone/.next/server/app/project/[name]/page/app-paths-manifest.json +3 -0
- package/assets/standalone/.next/server/app/project/[name]/page/build-manifest.json +18 -0
- package/assets/standalone/.next/server/app/project/[name]/page/next-font-manifest.json +6 -0
- package/assets/standalone/.next/server/app/project/[name]/page/react-loadable-manifest.json +1 -0
- package/assets/standalone/.next/server/app/project/[name]/page/server-reference-manifest.json +20 -0
- package/assets/standalone/.next/server/app/project/[name]/page.js +24 -0
- package/assets/standalone/.next/server/app/project/[name]/page_client-reference-manifest.js +2 -0
- package/assets/standalone/.next/server/app/project/[name]/session/[sessionId]/page/app-paths-manifest.json +3 -0
- package/assets/standalone/.next/server/app/project/[name]/session/[sessionId]/page/build-manifest.json +18 -0
- package/assets/standalone/.next/server/app/project/[name]/session/[sessionId]/page/next-font-manifest.json +6 -0
- package/assets/standalone/.next/server/app/project/[name]/session/[sessionId]/page/react-loadable-manifest.json +9 -0
- package/assets/standalone/.next/server/app/project/[name]/session/[sessionId]/page/server-reference-manifest.json +125 -0
- package/assets/standalone/.next/server/app/project/[name]/session/[sessionId]/page.js +27 -0
- package/assets/standalone/.next/server/app/project/[name]/session/[sessionId]/page_client-reference-manifest.js +2 -0
- package/assets/standalone/.next/server/app/queue/page/app-paths-manifest.json +3 -0
- package/assets/standalone/.next/server/app/queue/page/build-manifest.json +18 -0
- package/assets/standalone/.next/server/app/queue/page/next-font-manifest.json +6 -0
- package/assets/standalone/.next/server/app/queue/page/react-loadable-manifest.json +1 -0
- package/assets/standalone/.next/server/app/queue/page/server-reference-manifest.json +50 -0
- package/assets/standalone/.next/server/app/queue/page.js +23 -0
- package/assets/standalone/.next/server/app/queue/page_client-reference-manifest.js +2 -0
- package/assets/standalone/.next/server/app-paths-manifest.json +16 -0
- package/assets/standalone/.next/server/chunks/[externals]_next_dist_86eb7852._.js +3 -0
- package/assets/standalone/.next/server/chunks/[externals]_next_dist_db0236a7._.js +3 -0
- package/assets/standalone/.next/server/chunks/[root-of-the-server]__2074634c._.js +3 -0
- package/assets/standalone/.next/server/chunks/[root-of-the-server]__32353857._.js +3 -0
- package/assets/standalone/.next/server/chunks/[root-of-the-server]__57118d1a._.js +3 -0
- package/assets/standalone/.next/server/chunks/[root-of-the-server]__8af5473b._.js +3 -0
- package/assets/standalone/.next/server/chunks/[root-of-the-server]__93f96cbe._.js +3 -0
- package/assets/standalone/.next/server/chunks/[root-of-the-server]__a0230ba0._.js +3 -0
- package/assets/standalone/.next/server/chunks/[root-of-the-server]__a53c6c2f._.js +3 -0
- package/assets/standalone/.next/server/chunks/[root-of-the-server]__b18c2f99._.js +4 -0
- package/assets/standalone/.next/server/chunks/[root-of-the-server]__bf0c3d33._.js +28 -0
- package/assets/standalone/.next/server/chunks/[root-of-the-server]__d7355d04._.js +18 -0
- package/assets/standalone/.next/server/chunks/[turbopack]_runtime.js +795 -0
- package/assets/standalone/.next/server/chunks/_5ab69e50._.js +3 -0
- package/assets/standalone/.next/server/chunks/_63727770._.js +3 -0
- package/assets/standalone/.next/server/chunks/_6a9d92e6._.js +3 -0
- package/assets/standalone/.next/server/chunks/_7cb7a702._.js +3 -0
- package/assets/standalone/.next/server/chunks/_d3c87a9f._.js +4 -0
- package/assets/standalone/.next/server/chunks/_fb07f1d4._.js +4 -0
- package/assets/standalone/.next/server/chunks/_next-internal_server_app_api_completed-history_route_actions_0de2026b.js +3 -0
- package/assets/standalone/.next/server/chunks/_next-internal_server_app_api_queue-item_route_actions_cbc26b12.js +3 -0
- package/assets/standalone/.next/server/chunks/_next-internal_server_app_api_queue-status_route_actions_6b153b6b.js +3 -0
- package/assets/standalone/.next/server/chunks/_next-internal_server_app_icon_png_route_actions_fa3562e2.js +3 -0
- package/assets/standalone/.next/server/chunks/ce889_server_app_api_download_[project]_[session]_route_actions_bbdd823f.js +3 -0
- package/assets/standalone/.next/server/chunks/lib_6cff0ca5._.js +3 -0
- package/assets/standalone/.next/server/chunks/lib_74f62736._.js +3 -0
- package/assets/standalone/.next/server/chunks/lib_auth_ts_22c348a0._.js +3 -0
- package/assets/standalone/.next/server/chunks/lib_auth_ts_cfe39263._.js +3 -0
- package/assets/standalone/.next/server/chunks/lib_eval-queue_ts_32d171f8._.js +3 -0
- package/assets/standalone/.next/server/chunks/lib_eval-queue_ts_642b3543._.js +3 -0
- package/assets/standalone/.next/server/chunks/lib_evals_33da2596._.js +3 -0
- package/assets/standalone/.next/server/chunks/lib_evals_8f3357ca._.js +3 -0
- package/assets/standalone/.next/server/chunks/node_modules_next_286d3fa3._.js +6 -0
- package/assets/standalone/.next/server/chunks/node_modules_next_dist_10532d00._.js +6 -0
- package/assets/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_64175717.js +3 -0
- package/assets/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_7a66d362.js +3 -0
- package/assets/standalone/.next/server/chunks/node_modules_next_f5199d09._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/[root-of-the-server]__0530a7f6._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/[root-of-the-server]__0b2008e0._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/[root-of-the-server]__0b4b7267._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/[root-of-the-server]__1690ee0d._.js +10 -0
- package/assets/standalone/.next/server/chunks/ssr/[root-of-the-server]__35a929f8._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/[root-of-the-server]__3bc7ad0a._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/[root-of-the-server]__4532b0f3._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/[root-of-the-server]__645dade4._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/[root-of-the-server]__6a70107b._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/[root-of-the-server]__7595cbf0._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/[root-of-the-server]__798114ce._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/[root-of-the-server]__95fd3969._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/[root-of-the-server]__9833974c._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/[root-of-the-server]__a457c799._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/[root-of-the-server]__cb11b5eb._.js +4 -0
- package/assets/standalone/.next/server/chunks/ssr/[root-of-the-server]__cf373db0._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/[root-of-the-server]__da7d7793._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/[root-of-the-server]__e2e52c6e._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/[root-of-the-server]__eee26df8._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/[root-of-the-server]__f758248a._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/[turbopack]_runtime.js +795 -0
- package/assets/standalone/.next/server/chunks/ssr/_134e1a0e._.js +4 -0
- package/assets/standalone/.next/server/chunks/ssr/_1d335924._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/_1e78350c._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/_200ed8e0._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/_22a08fac._.js +4 -0
- package/assets/standalone/.next/server/chunks/ssr/_265df3ed._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/_27192124._.js +32 -0
- package/assets/standalone/.next/server/chunks/ssr/_34abf048._.js +4 -0
- package/assets/standalone/.next/server/chunks/ssr/_3e6c3cad._.js +4 -0
- package/assets/standalone/.next/server/chunks/ssr/_3f1ddd0f._.js +4 -0
- package/assets/standalone/.next/server/chunks/ssr/_40b9779b._.js +4 -0
- package/assets/standalone/.next/server/chunks/ssr/_472a5ae2._.js +4 -0
- package/assets/standalone/.next/server/chunks/ssr/_4b5e7c6a._.js +4 -0
- package/assets/standalone/.next/server/chunks/ssr/_76ab933f._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/_87e025a1._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/_a13bff7c._.js +5 -0
- package/assets/standalone/.next/server/chunks/ssr/_ab8d6b5e._.js +4 -0
- package/assets/standalone/.next/server/chunks/ssr/_bcadf6ce._.js +4 -0
- package/assets/standalone/.next/server/chunks/ssr/_cce5033e._.js +4 -0
- package/assets/standalone/.next/server/chunks/ssr/_d7141734._.js +4 -0
- package/assets/standalone/.next/server/chunks/ssr/_d982b289._.js +4 -0
- package/assets/standalone/.next/server/chunks/ssr/_dec9649b._.js +4 -0
- package/assets/standalone/.next/server/chunks/ssr/_f7ec0663._.js +4 -0
- package/assets/standalone/.next/server/chunks/ssr/_fd9b1ff7._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/_next-internal_server_app__global-error_page_actions_75761787.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/app_1b1faab9._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/app_1f418324._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/app_2b7e6da0._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/app_actions_compute-dashboard_ts_fc151dbb._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/app_b23818c3._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/app_dashboard_[viewName]_error_tsx_1abd8d36._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/app_dashboard_[viewName]_loading_tsx_22dfcb19._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/app_dashboard_error_tsx_9bf3f9ca._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/app_dashboard_loading_tsx_05176847._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/app_e744e06a._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/app_error_tsx_5275429f._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/app_fc7a5b13._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/app_loading_tsx_b05711b0._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/app_login_page_tsx_ccc0019b._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/app_project_[name]_error_tsx_34bf44cf._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/app_project_[name]_loading_tsx_cdac5755._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/app_project_[name]_session_[sessionId]_error_tsx_89602adf._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/app_project_[name]_session_[sessionId]_loading_tsx_2afb91a2._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/app_queue_queue-client_tsx_45f040f7._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/components_navbar_tsx_e9e361f1._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/lib_cache_index_ts_35dfbe77._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/lib_eval-queue_ts_e2258485._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/lib_utils_ts_2428e286._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/node_modules_154d37b3._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/node_modules_next_99977b66._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/node_modules_next_dist_08570d7f._.js +4 -0
- package/assets/standalone/.next/server/chunks/ssr/node_modules_next_dist_274ac3eb._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/node_modules_next_dist_2df23979._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/node_modules_next_dist_65e60196._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/node_modules_next_dist_981dc6eb._.js +6 -0
- package/assets/standalone/.next/server/chunks/ssr/node_modules_next_dist_client_components_9774470f._.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_45780354.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_ece394eb.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_15817684.js +3 -0
- package/assets/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_e3d6f561.js +4 -0
- package/assets/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js +6 -0
- package/assets/standalone/.next/server/chunks/ssr/node_modules_next_f2865b38._.js +6 -0
- package/assets/standalone/.next/server/functions-config-manifest.json +14 -0
- package/assets/standalone/.next/server/instrumentation.js +4 -0
- package/assets/standalone/.next/server/middleware-build-manifest.js +22 -0
- package/assets/standalone/.next/server/middleware-manifest.json +6 -0
- package/assets/standalone/.next/server/middleware.js +5 -0
- package/assets/standalone/.next/server/next-font-manifest.js +1 -0
- package/assets/standalone/.next/server/next-font-manifest.json +6 -0
- package/assets/standalone/.next/server/pages/404.html +30 -0
- package/assets/standalone/.next/server/pages/500.html +2 -0
- package/assets/standalone/.next/server/pages-manifest.json +4 -0
- package/assets/standalone/.next/server/server-reference-manifest.js +1 -0
- package/assets/standalone/.next/server/server-reference-manifest.json +286 -0
- package/assets/standalone/.next/static/13xAqFfyzq5c7ZCSmzH2c/_buildManifest.js +11 -0
- package/assets/standalone/.next/static/13xAqFfyzq5c7ZCSmzH2c/_clientMiddlewareManifest.json +6 -0
- package/assets/standalone/.next/static/13xAqFfyzq5c7ZCSmzH2c/_ssgManifest.js +1 -0
- package/assets/standalone/.next/static/chunks/05525d53710bbee3.js +1 -0
- package/assets/standalone/.next/static/chunks/0fc2a7130f591324.js +1 -0
- package/assets/standalone/.next/static/chunks/37a97314f1b17b22.js +1 -0
- package/assets/standalone/.next/static/chunks/45475654848dd556.js +1 -0
- package/assets/standalone/.next/static/chunks/6049e484c84c341e.js +1 -0
- package/assets/standalone/.next/static/chunks/7a046386767828e7.js +4 -0
- package/assets/standalone/.next/static/chunks/7fd5fd158118e843.js +3 -0
- package/assets/standalone/.next/static/chunks/84a96b6d1f18f7b2.js +1 -0
- package/assets/standalone/.next/static/chunks/9609f2e5c7c76a3e.js +1 -0
- package/assets/standalone/.next/static/chunks/97c295191089a1c2.js +1 -0
- package/assets/standalone/.next/static/chunks/a6dad97d9634a72d.js +1 -0
- package/assets/standalone/.next/static/chunks/aee6c7720838f8a2.js +1 -0
- package/assets/standalone/.next/static/chunks/b7a9e6ef231e2f28.js +1 -0
- package/assets/standalone/.next/static/chunks/c070cdf14f593154.js +1 -0
- package/assets/standalone/.next/static/chunks/cb4c7d89be14d280.js +1 -0
- package/assets/standalone/.next/static/chunks/d2be314c3ece3fbe.js +1 -0
- package/assets/standalone/.next/static/chunks/d61413cf4f8738b1.js +1 -0
- package/assets/standalone/.next/static/chunks/dbd7b157081058a6.js +1 -0
- package/assets/standalone/.next/static/chunks/e4aca2c4ff14a715.js +1 -0
- package/assets/standalone/.next/static/chunks/e62e0e2c8b367c21.css +1 -0
- package/assets/standalone/.next/static/chunks/ed79e3f8aab4a1ea.js +2 -0
- package/assets/standalone/.next/static/chunks/ed89f0fc8882380f.js +1 -0
- package/assets/standalone/.next/static/chunks/f091501564eb2ea3.js +4 -0
- package/assets/standalone/.next/static/chunks/ff1a16fafef87110.js +1 -0
- package/assets/standalone/.next/static/chunks/turbopack-3c0c6df5293bf0da.js +4 -0
- package/assets/standalone/.next/static/media/icon.112bf269.png +0 -0
- package/assets/standalone/CONTRIBUTING.md +84 -0
- package/assets/standalone/LICENSE +42 -0
- package/assets/standalone/README.md +2111 -0
- package/assets/standalone/node_modules/@next/env/dist/index.js +1 -0
- package/assets/standalone/node_modules/@next/env/package.json +36 -0
- package/assets/standalone/node_modules/@swc/helpers/cjs/_interop_require_default.cjs +6 -0
- package/assets/standalone/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs +38 -0
- package/assets/standalone/node_modules/@swc/helpers/package.json +471 -0
- package/assets/standalone/node_modules/client-only/index.js +0 -0
- package/assets/standalone/node_modules/client-only/package.json +19 -0
- package/assets/standalone/node_modules/next/dist/build/adapter/build-complete.js +993 -0
- package/assets/standalone/node_modules/next/dist/build/after-production-compile.js +95 -0
- package/assets/standalone/node_modules/next/dist/build/analysis/extract-const-value.js +205 -0
- package/assets/standalone/node_modules/next/dist/build/analysis/get-page-static-info.js +601 -0
- package/assets/standalone/node_modules/next/dist/build/analysis/parse-module.js +20 -0
- package/assets/standalone/node_modules/next/dist/build/analyze/index.js +242 -0
- package/assets/standalone/node_modules/next/dist/build/babel/loader/get-config.js +429 -0
- package/assets/standalone/node_modules/next/dist/build/babel/loader/index.js +56 -0
- package/assets/standalone/node_modules/next/dist/build/babel/loader/transform.js +103 -0
- package/assets/standalone/node_modules/next/dist/build/babel/loader/util.js +20 -0
- package/assets/standalone/node_modules/next/dist/build/babel/plugins/commonjs.js +42 -0
- package/assets/standalone/node_modules/next/dist/build/babel/plugins/jsx-pragma.js +74 -0
- package/assets/standalone/node_modules/next/dist/build/babel/plugins/next-font-unsupported.js +36 -0
- package/assets/standalone/node_modules/next/dist/build/babel/plugins/next-page-config.js +104 -0
- package/assets/standalone/node_modules/next/dist/build/babel/plugins/next-page-disallow-re-export-all-exports.js +29 -0
- package/assets/standalone/node_modules/next/dist/build/babel/plugins/next-ssg-transform.js +345 -0
- package/assets/standalone/node_modules/next/dist/build/babel/plugins/optimize-hook-destructuring.js +60 -0
- package/assets/standalone/node_modules/next/dist/build/babel/plugins/react-loadable-plugin.js +145 -0
- package/assets/standalone/node_modules/next/dist/build/babel/preset.js +250 -0
- package/assets/standalone/node_modules/next/dist/build/build-context.js +58 -0
- package/assets/standalone/node_modules/next/dist/build/collect-build-traces.js +536 -0
- package/assets/standalone/node_modules/next/dist/build/compiler.js +88 -0
- package/assets/standalone/node_modules/next/dist/build/create-compiler-aliases.js +436 -0
- package/assets/standalone/node_modules/next/dist/build/define-env.js +237 -0
- package/assets/standalone/node_modules/next/dist/build/duration-to-string.js +99 -0
- package/assets/standalone/node_modules/next/dist/build/entries.js +798 -0
- package/assets/standalone/node_modules/next/dist/build/generate-build-id.js +31 -0
- package/assets/standalone/node_modules/next/dist/build/generate-routes-manifest.js +91 -0
- package/assets/standalone/node_modules/next/dist/build/get-babel-config-file.js +35 -0
- package/assets/standalone/node_modules/next/dist/build/get-babel-loader-config.js +109 -0
- package/assets/standalone/node_modules/next/dist/build/get-static-info-including-layouts.js +81 -0
- package/assets/standalone/node_modules/next/dist/build/handle-entrypoints.js +176 -0
- package/assets/standalone/node_modules/next/dist/build/handle-externals.js +290 -0
- package/assets/standalone/node_modules/next/dist/build/index.js +2683 -0
- package/assets/standalone/node_modules/next/dist/build/is-writeable.js +26 -0
- package/assets/standalone/node_modules/next/dist/build/jest/__mocks__/empty.js +10 -0
- package/assets/standalone/node_modules/next/dist/build/jest/__mocks__/fileMock.js +15 -0
- package/assets/standalone/node_modules/next/dist/build/jest/__mocks__/nextFontMock.js +20 -0
- package/assets/standalone/node_modules/next/dist/build/jest/__mocks__/styleMock.js +10 -0
- package/assets/standalone/node_modules/next/dist/build/jest/jest.js +227 -0
- package/assets/standalone/node_modules/next/dist/build/jest/object-proxy.js +50 -0
- package/assets/standalone/node_modules/next/dist/build/load-entrypoint.js +30 -0
- package/assets/standalone/node_modules/next/dist/build/load-jsconfig.js +162 -0
- package/assets/standalone/node_modules/next/dist/build/lockfile.js +160 -0
- package/assets/standalone/node_modules/next/dist/build/manifests/formatter/format-manifest.js +19 -0
- package/assets/standalone/node_modules/next/dist/build/next-config-ts/require-hook.js +85 -0
- package/assets/standalone/node_modules/next/dist/build/next-config-ts/transpile-config.js +172 -0
- package/assets/standalone/node_modules/next/dist/build/next-dir-paths.js +37 -0
- package/assets/standalone/node_modules/next/dist/build/normalize-catchall-routes.js +76 -0
- package/assets/standalone/node_modules/next/dist/build/output/format.js +84 -0
- package/assets/standalone/node_modules/next/dist/build/output/index.js +186 -0
- package/assets/standalone/node_modules/next/dist/build/output/log.js +135 -0
- package/assets/standalone/node_modules/next/dist/build/output/store.js +204 -0
- package/assets/standalone/node_modules/next/dist/build/page-extensions-type.js +6 -0
- package/assets/standalone/node_modules/next/dist/build/polyfills/fetch/index.js +6 -0
- package/assets/standalone/node_modules/next/dist/build/polyfills/fetch/whatwg-fetch.js +7 -0
- package/assets/standalone/node_modules/next/dist/build/polyfills/object-assign.js +6 -0
- package/assets/standalone/node_modules/next/dist/build/polyfills/object.assign/auto.js +4 -0
- package/assets/standalone/node_modules/next/dist/build/polyfills/object.assign/implementation.js +4 -0
- package/assets/standalone/node_modules/next/dist/build/polyfills/object.assign/index.js +19 -0
- package/assets/standalone/node_modules/next/dist/build/polyfills/object.assign/polyfill.js +6 -0
- package/assets/standalone/node_modules/next/dist/build/polyfills/object.assign/shim.js +6 -0
- package/assets/standalone/node_modules/next/dist/build/polyfills/polyfill-module.js +1 -0
- package/assets/standalone/node_modules/next/dist/build/polyfills/polyfill-nomodule.js +1 -0
- package/assets/standalone/node_modules/next/dist/build/polyfills/process.js +5 -0
- package/assets/standalone/node_modules/next/dist/build/preview-key-utils.js +91 -0
- package/assets/standalone/node_modules/next/dist/build/progress.js +151 -0
- package/assets/standalone/node_modules/next/dist/build/rendering-mode.js +26 -0
- package/assets/standalone/node_modules/next/dist/build/segment-config/app/app-segment-config.js +145 -0
- package/assets/standalone/node_modules/next/dist/build/segment-config/app/app-segments.js +137 -0
- package/assets/standalone/node_modules/next/dist/build/segment-config/app/collect-root-param-keys.js +52 -0
- package/assets/standalone/node_modules/next/dist/build/segment-config/middleware/middleware-config.js +121 -0
- package/assets/standalone/node_modules/next/dist/build/segment-config/pages/pages-segment-config.js +62 -0
- package/assets/standalone/node_modules/next/dist/build/sort-by-page-exts.js +30 -0
- package/assets/standalone/node_modules/next/dist/build/spinner.js +138 -0
- package/assets/standalone/node_modules/next/dist/build/static-paths/app/extract-pathname-route-param-segments-from-loader-tree.js +137 -0
- package/assets/standalone/node_modules/next/dist/build/static-paths/app.js +682 -0
- package/assets/standalone/node_modules/next/dist/build/static-paths/pages.js +169 -0
- package/assets/standalone/node_modules/next/dist/build/static-paths/types.js +6 -0
- package/assets/standalone/node_modules/next/dist/build/static-paths/utils.js +119 -0
- package/assets/standalone/node_modules/next/dist/build/swc/helpers.js +15 -0
- package/assets/standalone/node_modules/next/dist/build/swc/index.js +1271 -0
- package/assets/standalone/node_modules/next/dist/build/swc/install-bindings.js +30 -0
- package/assets/standalone/node_modules/next/dist/build/swc/jest-transformer.js +75 -0
- package/assets/standalone/node_modules/next/dist/build/swc/options.js +386 -0
- package/assets/standalone/node_modules/next/dist/build/swc/types.js +6 -0
- package/assets/standalone/node_modules/next/dist/build/templates/app-page.js +1073 -0
- package/assets/standalone/node_modules/next/dist/build/templates/app-route.js +420 -0
- package/assets/standalone/node_modules/next/dist/build/templates/edge-app-route.js +85 -0
- package/assets/standalone/node_modules/next/dist/build/templates/edge-ssr-app.js +311 -0
- package/assets/standalone/node_modules/next/dist/build/templates/edge-ssr.js +335 -0
- package/assets/standalone/node_modules/next/dist/build/templates/edge-wrapper.js +24 -0
- package/assets/standalone/node_modules/next/dist/build/templates/helpers.js +36 -0
- package/assets/standalone/node_modules/next/dist/build/templates/middleware.js +115 -0
- package/assets/standalone/node_modules/next/dist/build/templates/pages-api.js +194 -0
- package/assets/standalone/node_modules/next/dist/build/templates/pages-edge-api.js +39 -0
- package/assets/standalone/node_modules/next/dist/build/templates/pages.js +155 -0
- package/assets/standalone/node_modules/next/dist/build/turbopack-analyze/index.js +116 -0
- package/assets/standalone/node_modules/next/dist/build/turbopack-build/impl.js +244 -0
- package/assets/standalone/node_modules/next/dist/build/turbopack-build/index.js +85 -0
- package/assets/standalone/node_modules/next/dist/build/turborepo-access-trace/env.js +29 -0
- package/assets/standalone/node_modules/next/dist/build/turborepo-access-trace/helpers.js +104 -0
- package/assets/standalone/node_modules/next/dist/build/turborepo-access-trace/index.js +30 -0
- package/assets/standalone/node_modules/next/dist/build/turborepo-access-trace/result.js +51 -0
- package/assets/standalone/node_modules/next/dist/build/turborepo-access-trace/tcp.js +41 -0
- package/assets/standalone/node_modules/next/dist/build/turborepo-access-trace/types.js +8 -0
- package/assets/standalone/node_modules/next/dist/build/type-check.js +151 -0
- package/assets/standalone/node_modules/next/dist/build/utils.js +1261 -0
- package/assets/standalone/node_modules/next/dist/build/validate-app-paths.js +242 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/alias/react-dom-server-experimental.js +32 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/alias/react-dom-server.js +32 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/cache-invalidation.js +91 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/config/blocks/base.js +82 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/config/blocks/css/index.js +562 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/config/blocks/css/loaders/client.js +49 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/config/blocks/css/loaders/file-resolve.js +21 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/config/blocks/css/loaders/getCssModuleLocalIdent.js +37 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/config/blocks/css/loaders/global.js +65 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/config/blocks/css/loaders/index.js +22 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/config/blocks/css/loaders/modules.js +86 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/config/blocks/css/loaders/next-font.js +62 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/config/blocks/css/messages.js +45 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/config/blocks/css/plugins.js +190 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/config/blocks/images/index.js +42 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/config/blocks/images/messages.js +16 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/config/helpers.js +78 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/config/index.js +46 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/config/utils.js +13 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/css-loader/src/CssSyntaxError.js +32 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/css-loader/src/camelcase.js +93 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js +287 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/css-loader/src/plugins/index.js +36 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/css-loader/src/plugins/postcss-icss-parser.js +105 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/css-loader/src/plugins/postcss-import-parser.js +220 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/css-loader/src/plugins/postcss-url-parser.js +307 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/css-loader/src/runtime/api.js +83 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/css-loader/src/runtime/getUrl.js +23 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/css-loader/src/utils.js +459 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/devtool/devtool-style-inject.js +129 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/empty-loader.js +14 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/error-loader.js +36 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/get-module-build-info.js +15 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/codegen.js +156 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/index.js +27 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/interface.js +17 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/loader.js +429 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/minify.js +94 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/utils.js +58 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/metadata/discover.js +122 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/metadata/resolve-route-data.js +171 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/metadata/types.js +7 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/modularize-import-loader.js +39 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/next-app-loader/create-app-route-code.js +65 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/next-app-loader/index.js +765 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/next-barrel-loader.js +268 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js +37 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/next-edge-app-route-loader/index.js +51 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/next-edge-function-loader.js +52 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/next-edge-ssr-loader/index.js +93 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/next-error-browser-binary-loader.js +21 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/next-flight-action-entry-loader.js +32 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/next-flight-client-entry-loader.js +45 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/next-flight-client-module-loader.js +49 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/next-flight-css-loader.js +56 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/next-flight-loader/action-client-wrapper.js +33 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/next-flight-loader/action-validate.js +27 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/next-flight-loader/cache-wrapper.js +13 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/next-flight-loader/index.js +211 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/next-flight-loader/module-proxy.js +14 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/next-flight-loader/server-reference.js +13 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/next-flight-loader/track-dynamic-import.js +13 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/next-flight-server-reference-proxy-loader.js +29 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js +133 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/next-font-loader/postcss-next-font.js +169 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/next-image-loader/blur.js +73 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/next-image-loader/index.js +80 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/next-invalid-import-error-loader.js +28 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/next-metadata-image-loader.js +158 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/next-metadata-route-loader.js +342 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/next-middleware-asset-loader.js +46 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/next-middleware-loader.js +59 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/next-middleware-wasm-loader.js +46 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/next-root-params-loader.js +164 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js +141 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/next-style-loader/index.js +220 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/next-style-loader/runtime/injectStylesIntoLinkTag.js +61 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/next-style-loader/runtime/injectStylesIntoStyleTag.js +221 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/next-style-loader/runtime/isEqualLocals.js +27 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js +241 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/Error.js +40 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/Warning.js +35 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js +125 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/utils.js +86 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/index.js +101 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/lib/file-protocol.js +78 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/lib/join-function.js +190 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/lib/postcss.js +92 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/lib/value-processor.js +97 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/loaders/utils.js +100 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/build-manifest-plugin-utils.js +79 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/build-manifest-plugin.js +183 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/copy-file-plugin.js +67 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/css-chunking-plugin.js +277 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/css-minimizer-plugin.js +92 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/devtools-ignore-list-plugin.js +78 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/eval-source-map-dev-tool-plugin.js +191 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/flight-client-entry-plugin.js +793 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/flight-manifest-plugin.js +420 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/force-complete-runtime.js +42 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/jsconfig-paths-plugin.js +219 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/memory-with-gc-cache-plugin.js +114 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/middleware-plugin.js +614 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/mini-css-extract-plugin.js +24 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/minify-webpack-plugin/src/index.js +188 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/next-font-manifest-plugin.js +120 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/next-trace-entrypoints-plugin.js +542 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/next-types-plugin/index.js +428 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/next-types-plugin/shared.js +14 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/nextjs-require-cache-hot-reloader.js +57 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/optional-peer-dependency-resolve-plugin.js +45 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/pages-manifest-plugin.js +146 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/profiling-plugin.js +282 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/react-loadable-plugin.js +169 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/rspack-flight-client-entry-plugin.js +97 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/rspack-profiling-plugin.js +62 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/slow-module-detection-plugin.js +190 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/subresource-integrity-plugin.js +62 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/telemetry-plugin/telemetry-plugin.js +188 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/telemetry-plugin/update-telemetry-loader-context-from-swc.js +28 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/telemetry-plugin/use-cache-tracker-utils.js +43 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/getModuleTrace.js +89 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/index.js +43 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parse-dynamic-code-evaluation-error.js +19 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseBabel.js +29 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseCss.js +29 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseNextAppLoaderError.js +26 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseNextFontError.js +33 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseNextInvalidImportError.js +26 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseNotFoundError.js +166 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseScss.js +42 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/simpleWebpackError.js +18 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/webpackModuleError.js +138 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/stringify-request.js +15 -0
- package/assets/standalone/node_modules/next/dist/build/webpack/utils.js +109 -0
- package/assets/standalone/node_modules/next/dist/build/webpack-build/impl.js +381 -0
- package/assets/standalone/node_modules/next/dist/build/webpack-build/index.js +179 -0
- package/assets/standalone/node_modules/next/dist/build/webpack-config-rules/resolve.js +55 -0
- package/assets/standalone/node_modules/next/dist/build/webpack-config.js +2343 -0
- package/assets/standalone/node_modules/next/dist/build/worker.js +35 -0
- package/assets/standalone/node_modules/next/dist/build/write-build-id.js +19 -0
- package/assets/standalone/node_modules/next/dist/cli/next-test.js +169 -0
- package/assets/standalone/node_modules/next/dist/client/add-base-path.js +24 -0
- package/assets/standalone/node_modules/next/dist/client/app-build-id.js +49 -0
- package/assets/standalone/node_modules/next/dist/client/app-call-server.js +34 -0
- package/assets/standalone/node_modules/next/dist/client/app-find-source-map-url.js +38 -0
- package/assets/standalone/node_modules/next/dist/client/assign-location.js +29 -0
- package/assets/standalone/node_modules/next/dist/client/components/app-router-announcer.js +78 -0
- package/assets/standalone/node_modules/next/dist/client/components/app-router-headers.js +128 -0
- package/assets/standalone/node_modules/next/dist/client/components/app-router-instance.js +319 -0
- package/assets/standalone/node_modules/next/dist/client/components/app-router-utils.js +62 -0
- package/assets/standalone/node_modules/next/dist/client/components/app-router.js +495 -0
- package/assets/standalone/node_modules/next/dist/client/components/builtin/default.js +35 -0
- package/assets/standalone/node_modules/next/dist/client/components/builtin/global-error.js +82 -0
- package/assets/standalone/node_modules/next/dist/client/components/dev-root-http-access-fallback-boundary.js +52 -0
- package/assets/standalone/node_modules/next/dist/client/components/error-boundary.js +134 -0
- package/assets/standalone/node_modules/next/dist/client/components/errors/graceful-degrade-boundary.js +86 -0
- package/assets/standalone/node_modules/next/dist/client/components/errors/root-error-boundary.js +41 -0
- package/assets/standalone/node_modules/next/dist/client/components/forbidden.js +48 -0
- package/assets/standalone/node_modules/next/dist/client/components/handle-isr-error.js +31 -0
- package/assets/standalone/node_modules/next/dist/client/components/hooks-server-context.js +42 -0
- package/assets/standalone/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js +125 -0
- package/assets/standalone/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js +72 -0
- package/assets/standalone/node_modules/next/dist/client/components/is-next-router-error.js +23 -0
- package/assets/standalone/node_modules/next/dist/client/components/links.js +292 -0
- package/assets/standalone/node_modules/next/dist/client/components/match-segments.js +32 -0
- package/assets/standalone/node_modules/next/dist/client/components/nav-failure-handler.js +61 -0
- package/assets/standalone/node_modules/next/dist/client/components/navigation-devtools.js +126 -0
- package/assets/standalone/node_modules/next/dist/client/components/navigation-untracked.js +65 -0
- package/assets/standalone/node_modules/next/dist/client/components/navigation.js +198 -0
- package/assets/standalone/node_modules/next/dist/client/components/navigation.react-server.js +72 -0
- package/assets/standalone/node_modules/next/dist/client/components/not-found.js +42 -0
- package/assets/standalone/node_modules/next/dist/client/components/readonly-url-search-params.js +41 -0
- package/assets/standalone/node_modules/next/dist/client/components/redirect-boundary.js +107 -0
- package/assets/standalone/node_modules/next/dist/client/components/redirect-error.js +52 -0
- package/assets/standalone/node_modules/next/dist/client/components/redirect-status-code.js +24 -0
- package/assets/standalone/node_modules/next/dist/client/components/redirect.js +91 -0
- package/assets/standalone/node_modules/next/dist/client/components/router-reducer/compute-changed-path.js +128 -0
- package/assets/standalone/node_modules/next/dist/client/components/router-reducer/create-href-from-url.js +21 -0
- package/assets/standalone/node_modules/next/dist/client/components/router-reducer/create-initial-router-state.js +59 -0
- package/assets/standalone/node_modules/next/dist/client/components/router-reducer/create-router-cache-key.js +32 -0
- package/assets/standalone/node_modules/next/dist/client/components/router-reducer/fetch-server-response.js +340 -0
- package/assets/standalone/node_modules/next/dist/client/components/router-reducer/handle-mutable.js +66 -0
- package/assets/standalone/node_modules/next/dist/client/components/router-reducer/is-navigating-to-new-root-layout.js +51 -0
- package/assets/standalone/node_modules/next/dist/client/components/router-reducer/ppr-navigations.js +1129 -0
- package/assets/standalone/node_modules/next/dist/client/components/router-reducer/reducers/find-head-in-cache.js +64 -0
- package/assets/standalone/node_modules/next/dist/client/components/router-reducer/reducers/has-interception-route-in-current-tree.js +38 -0
- package/assets/standalone/node_modules/next/dist/client/components/router-reducer/reducers/hmr-refresh-reducer.js +23 -0
- package/assets/standalone/node_modules/next/dist/client/components/router-reducer/reducers/navigate-reducer.js +168 -0
- package/assets/standalone/node_modules/next/dist/client/components/router-reducer/reducers/refresh-reducer.js +68 -0
- package/assets/standalone/node_modules/next/dist/client/components/router-reducer/reducers/restore-reducer.js +78 -0
- package/assets/standalone/node_modules/next/dist/client/components/router-reducer/reducers/server-action-reducer.js +292 -0
- package/assets/standalone/node_modules/next/dist/client/components/router-reducer/reducers/server-patch-reducer.js +56 -0
- package/assets/standalone/node_modules/next/dist/client/components/router-reducer/router-reducer-types.js +61 -0
- package/assets/standalone/node_modules/next/dist/client/components/router-reducer/router-reducer.js +66 -0
- package/assets/standalone/node_modules/next/dist/client/components/router-reducer/set-cache-busting-search-param.js +60 -0
- package/assets/standalone/node_modules/next/dist/client/components/segment-cache/cache-key.js +28 -0
- package/assets/standalone/node_modules/next/dist/client/components/segment-cache/cache-map.js +305 -0
- package/assets/standalone/node_modules/next/dist/client/components/segment-cache/cache.js +1432 -0
- package/assets/standalone/node_modules/next/dist/client/components/segment-cache/lru.js +145 -0
- package/assets/standalone/node_modules/next/dist/client/components/segment-cache/navigation.js +459 -0
- package/assets/standalone/node_modules/next/dist/client/components/segment-cache/prefetch.js +31 -0
- package/assets/standalone/node_modules/next/dist/client/components/segment-cache/scheduler.js +1150 -0
- package/assets/standalone/node_modules/next/dist/client/components/segment-cache/types.js +69 -0
- package/assets/standalone/node_modules/next/dist/client/components/segment-cache/vary-path.js +216 -0
- package/assets/standalone/node_modules/next/dist/client/components/static-generation-bailout.js +42 -0
- package/assets/standalone/node_modules/next/dist/client/components/unauthorized.js +49 -0
- package/assets/standalone/node_modules/next/dist/client/components/unrecognized-action-error.js +39 -0
- package/assets/standalone/node_modules/next/dist/client/components/unresolved-thenable.js +23 -0
- package/assets/standalone/node_modules/next/dist/client/components/unstable-rethrow.browser.js +28 -0
- package/assets/standalone/node_modules/next/dist/client/components/unstable-rethrow.js +25 -0
- package/assets/standalone/node_modules/next/dist/client/components/unstable-rethrow.server.js +32 -0
- package/assets/standalone/node_modules/next/dist/client/components/use-action-queue.js +102 -0
- package/assets/standalone/node_modules/next/dist/client/dev/debug-channel.js +72 -0
- package/assets/standalone/node_modules/next/dist/client/flight-data-helpers.js +219 -0
- package/assets/standalone/node_modules/next/dist/client/has-base-path.js +23 -0
- package/assets/standalone/node_modules/next/dist/client/lib/console.js +177 -0
- package/assets/standalone/node_modules/next/dist/client/normalize-trailing-slash.js +36 -0
- package/assets/standalone/node_modules/next/dist/client/remove-base-path.js +32 -0
- package/assets/standalone/node_modules/next/dist/client/route-params.js +230 -0
- package/assets/standalone/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js +339 -0
- package/assets/standalone/node_modules/next/dist/compiled/@edge-runtime/cookies/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/@edge-runtime/ponyfill/index.js +46 -0
- package/assets/standalone/node_modules/next/dist/compiled/@edge-runtime/ponyfill/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/abort-controller.js.text.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/console.js.text.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/events.js.text.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/index.js +5 -0
- package/assets/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/load.js +18713 -0
- package/assets/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/stream.js +44 -0
- package/assets/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/timers.js.text.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/url.js.text.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/@hapi/accept/index.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/@hapi/accept/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/@mswjs/interceptors/ClientRequest/index.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/@mswjs/interceptors/ClientRequest/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/@napi-rs/triples/index.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/@napi-rs/triples/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/@opentelemetry/api/index.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/@opentelemetry/api/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/async-retry/index.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/async-retry/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/async-sema/index.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/async-sema/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/babel/code-frame.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/babel/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/babel-code-frame/index.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/babel-code-frame/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/busboy/index.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/busboy/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/bytes/index.js +8 -0
- package/assets/standalone/node_modules/next/dist/compiled/bytes/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/ci-info/index.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/ci-info/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/commander/index.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/commander/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/comment-json/index.js +7 -0
- package/assets/standalone/node_modules/next/dist/compiled/comment-json/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/compression/index.js +58 -0
- package/assets/standalone/node_modules/next/dist/compiled/compression/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/conf/index.js +15 -0
- package/assets/standalone/node_modules/next/dist/compiled/conf/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/content-disposition/index.js +6 -0
- package/assets/standalone/node_modules/next/dist/compiled/content-disposition/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/cookie/index.js +7 -0
- package/assets/standalone/node_modules/next/dist/compiled/cookie/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/cross-spawn/index.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/cross-spawn/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/debug/index.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/debug/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/edge-runtime/index.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/edge-runtime/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/find-up/index.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/find-up/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/fresh/index.js +8 -0
- package/assets/standalone/node_modules/next/dist/compiled/fresh/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/http-proxy/index.js +34 -0
- package/assets/standalone/node_modules/next/dist/compiled/http-proxy/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/image-detector/detector.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/image-size/index.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/image-size/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/ipaddr.js/ipaddr.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/ipaddr.js/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/is-animated/index.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/is-animated/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/is-docker/index.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/is-docker/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/is-wsl/index.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/is-wsl/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/jsonwebtoken/index.js +11 -0
- package/assets/standalone/node_modules/next/dist/compiled/jsonwebtoken/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/nanoid/index.cjs +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/nanoid/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +24 -0
- package/assets/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js +24 -0
- package/assets/standalone/node_modules/next/dist/compiled/next-server/app-route-turbo.runtime.prod.js +6 -0
- package/assets/standalone/node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js +20 -0
- package/assets/standalone/node_modules/next/dist/compiled/p-limit/index.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/p-limit/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/p-queue/index.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/p-queue/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/path-browserify/index.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/path-browserify/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/path-to-regexp/index.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/path-to-regexp/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/picomatch/index.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/picomatch/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/react-is/cjs/react-is.development.js +133 -0
- package/assets/standalone/node_modules/next/dist/compiled/react-is/cjs/react-is.production.js +130 -0
- package/assets/standalone/node_modules/next/dist/compiled/react-is/index.js +7 -0
- package/assets/standalone/node_modules/next/dist/compiled/react-is/package.json +26 -0
- package/assets/standalone/node_modules/next/dist/compiled/regenerator-runtime/package.json +19 -0
- package/assets/standalone/node_modules/next/dist/compiled/regenerator-runtime/runtime.js +729 -0
- package/assets/standalone/node_modules/next/dist/compiled/semver/index.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/semver/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/send/index.js +70 -0
- package/assets/standalone/node_modules/next/dist/compiled/send/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/source-map/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/source-map/source-map.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/stacktrace-parser/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/string-hash/index.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/string-hash/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/strip-ansi/index.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/strip-ansi/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/superstruct/index.cjs +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/superstruct/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/tar/index.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/tar/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/text-table/index.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/text-table/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/watchpack/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/watchpack/watchpack.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/ws/index.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/ws/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/zod/index.cjs +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/zod/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/zod-validation-error/index.js +1 -0
- package/assets/standalone/node_modules/next/dist/compiled/zod-validation-error/package.json +1 -0
- package/assets/standalone/node_modules/next/dist/experimental/testmode/context.js +57 -0
- package/assets/standalone/node_modules/next/dist/experimental/testmode/fetch.js +142 -0
- package/assets/standalone/node_modules/next/dist/experimental/testmode/httpget.js +26 -0
- package/assets/standalone/node_modules/next/dist/experimental/testmode/server-edge.js +32 -0
- package/assets/standalone/node_modules/next/dist/experimental/testmode/server.js +62 -0
- package/assets/standalone/node_modules/next/dist/export/helpers/create-incremental-cache.js +61 -0
- package/assets/standalone/node_modules/next/dist/lib/batcher.js +65 -0
- package/assets/standalone/node_modules/next/dist/lib/build-custom-route.js +46 -0
- package/assets/standalone/node_modules/next/dist/lib/bundler.js +97 -0
- package/assets/standalone/node_modules/next/dist/lib/client-and-server-references.js +54 -0
- package/assets/standalone/node_modules/next/dist/lib/coalesced-function.js +39 -0
- package/assets/standalone/node_modules/next/dist/lib/compile-error.js +14 -0
- package/assets/standalone/node_modules/next/dist/lib/constants.js +405 -0
- package/assets/standalone/node_modules/next/dist/lib/create-client-router-filter.js +67 -0
- package/assets/standalone/node_modules/next/dist/lib/default-transpiled-packages.json +1 -0
- package/assets/standalone/node_modules/next/dist/lib/detached-promise.js +32 -0
- package/assets/standalone/node_modules/next/dist/lib/detect-typo.js +51 -0
- package/assets/standalone/node_modules/next/dist/lib/download-swc.js +183 -0
- package/assets/standalone/node_modules/next/dist/lib/error-telemetry-utils.js +42 -0
- package/assets/standalone/node_modules/next/dist/lib/fallback.js +100 -0
- package/assets/standalone/node_modules/next/dist/lib/fatal-error.js +14 -0
- package/assets/standalone/node_modules/next/dist/lib/file-exists.js +53 -0
- package/assets/standalone/node_modules/next/dist/lib/find-config.js +102 -0
- package/assets/standalone/node_modules/next/dist/lib/find-pages-dir.js +65 -0
- package/assets/standalone/node_modules/next/dist/lib/find-root.js +122 -0
- package/assets/standalone/node_modules/next/dist/lib/format-cli-help-output.js +84 -0
- package/assets/standalone/node_modules/next/dist/lib/format-dynamic-import-path.js +24 -0
- package/assets/standalone/node_modules/next/dist/lib/format-server-error.js +74 -0
- package/assets/standalone/node_modules/next/dist/lib/framework/boundary-components.js +62 -0
- package/assets/standalone/node_modules/next/dist/lib/framework/boundary-constants.js +36 -0
- package/assets/standalone/node_modules/next/dist/lib/fs/rename.js +87 -0
- package/assets/standalone/node_modules/next/dist/lib/fs/write-atomic.js +28 -0
- package/assets/standalone/node_modules/next/dist/lib/generate-interception-routes-rewrites.js +69 -0
- package/assets/standalone/node_modules/next/dist/lib/get-files-in-dir.js +33 -0
- package/assets/standalone/node_modules/next/dist/lib/get-network-host.js +44 -0
- package/assets/standalone/node_modules/next/dist/lib/get-package-version.js +118 -0
- package/assets/standalone/node_modules/next/dist/lib/get-project-dir.js +51 -0
- package/assets/standalone/node_modules/next/dist/lib/has-necessary-dependencies.js +49 -0
- package/assets/standalone/node_modules/next/dist/lib/helpers/get-cache-directory.js +66 -0
- package/assets/standalone/node_modules/next/dist/lib/helpers/get-npx-command.js +29 -0
- package/assets/standalone/node_modules/next/dist/lib/helpers/get-online.js +50 -0
- package/assets/standalone/node_modules/next/dist/lib/helpers/get-pkg-manager.js +63 -0
- package/assets/standalone/node_modules/next/dist/lib/helpers/get-registry.js +45 -0
- package/assets/standalone/node_modules/next/dist/lib/helpers/get-reserved-port.js +116 -0
- package/assets/standalone/node_modules/next/dist/lib/helpers/install.js +83 -0
- package/assets/standalone/node_modules/next/dist/lib/import-next-warning.js +50 -0
- package/assets/standalone/node_modules/next/dist/lib/inline-static-env.js +112 -0
- package/assets/standalone/node_modules/next/dist/lib/install-dependencies.js +40 -0
- package/assets/standalone/node_modules/next/dist/lib/interop-default.js +15 -0
- package/assets/standalone/node_modules/next/dist/lib/is-api-route.js +15 -0
- package/assets/standalone/node_modules/next/dist/lib/is-app-page-route.js +15 -0
- package/assets/standalone/node_modules/next/dist/lib/is-app-route-route.js +15 -0
- package/assets/standalone/node_modules/next/dist/lib/is-edge-runtime.js +16 -0
- package/assets/standalone/node_modules/next/dist/lib/is-error.js +78 -0
- package/assets/standalone/node_modules/next/dist/lib/is-internal-component.js +36 -0
- package/assets/standalone/node_modules/next/dist/lib/is-serializable-props.js +106 -0
- package/assets/standalone/node_modules/next/dist/lib/known-edge-safe-packages.json +1 -0
- package/assets/standalone/node_modules/next/dist/lib/load-custom-routes.js +550 -0
- package/assets/standalone/node_modules/next/dist/lib/memory/gc-observer.js +53 -0
- package/assets/standalone/node_modules/next/dist/lib/memory/shutdown.js +29 -0
- package/assets/standalone/node_modules/next/dist/lib/memory/startup.js +47 -0
- package/assets/standalone/node_modules/next/dist/lib/memory/trace.js +109 -0
- package/assets/standalone/node_modules/next/dist/lib/metadata/constants.js +40 -0
- package/assets/standalone/node_modules/next/dist/lib/metadata/default-metadata.js +82 -0
- package/assets/standalone/node_modules/next/dist/lib/metadata/generate/alternate.js +55 -0
- package/assets/standalone/node_modules/next/dist/lib/metadata/generate/basic.js +307 -0
- package/assets/standalone/node_modules/next/dist/lib/metadata/generate/icon-mark.js +22 -0
- package/assets/standalone/node_modules/next/dist/lib/metadata/generate/icons.js +64 -0
- package/assets/standalone/node_modules/next/dist/lib/metadata/generate/meta.js +123 -0
- package/assets/standalone/node_modules/next/dist/lib/metadata/generate/opengraph.js +478 -0
- package/assets/standalone/node_modules/next/dist/lib/metadata/generate/utils.js +52 -0
- package/assets/standalone/node_modules/next/dist/lib/metadata/get-metadata-route.js +114 -0
- package/assets/standalone/node_modules/next/dist/lib/metadata/is-metadata-route.js +221 -0
- package/assets/standalone/node_modules/next/dist/lib/metadata/metadata-context.js +18 -0
- package/assets/standalone/node_modules/next/dist/lib/metadata/metadata.js +243 -0
- package/assets/standalone/node_modules/next/dist/lib/metadata/resolve-metadata.js +859 -0
- package/assets/standalone/node_modules/next/dist/lib/metadata/resolvers/resolve-basics.js +232 -0
- package/assets/standalone/node_modules/next/dist/lib/metadata/resolvers/resolve-icons.js +56 -0
- package/assets/standalone/node_modules/next/dist/lib/metadata/resolvers/resolve-opengraph.js +199 -0
- package/assets/standalone/node_modules/next/dist/lib/metadata/resolvers/resolve-title.js +40 -0
- package/assets/standalone/node_modules/next/dist/lib/metadata/resolvers/resolve-url.js +135 -0
- package/assets/standalone/node_modules/next/dist/lib/metadata/types/alternative-urls-types.js +7 -0
- package/assets/standalone/node_modules/next/dist/lib/metadata/types/extra-types.js +9 -0
- package/assets/standalone/node_modules/next/dist/lib/metadata/types/icons.js +6 -0
- package/assets/standalone/node_modules/next/dist/lib/metadata/types/manifest-types.js +6 -0
- package/assets/standalone/node_modules/next/dist/lib/metadata/types/metadata-interface.js +18 -0
- package/assets/standalone/node_modules/next/dist/lib/metadata/types/metadata-types.js +10 -0
- package/assets/standalone/node_modules/next/dist/lib/metadata/types/opengraph-types.js +6 -0
- package/assets/standalone/node_modules/next/dist/lib/metadata/types/resolvers.js +6 -0
- package/assets/standalone/node_modules/next/dist/lib/metadata/types/twitter-types.js +7 -0
- package/assets/standalone/node_modules/next/dist/lib/mime-type.js +20 -0
- package/assets/standalone/node_modules/next/dist/lib/mkcert.js +204 -0
- package/assets/standalone/node_modules/next/dist/lib/multi-file-writer.js +75 -0
- package/assets/standalone/node_modules/next/dist/lib/needs-experimental-react.js +16 -0
- package/assets/standalone/node_modules/next/dist/lib/non-nullable.js +15 -0
- package/assets/standalone/node_modules/next/dist/lib/normalize-path.js +21 -0
- package/assets/standalone/node_modules/next/dist/lib/oxford-comma-list.js +15 -0
- package/assets/standalone/node_modules/next/dist/lib/page-types.js +18 -0
- package/assets/standalone/node_modules/next/dist/lib/patch-incorrect-lockfile.js +185 -0
- package/assets/standalone/node_modules/next/dist/lib/pick.js +19 -0
- package/assets/standalone/node_modules/next/dist/lib/picocolors.js +177 -0
- package/assets/standalone/node_modules/next/dist/lib/pretty-bytes.js +74 -0
- package/assets/standalone/node_modules/next/dist/lib/realpath.js +20 -0
- package/assets/standalone/node_modules/next/dist/lib/recursive-copy.js +76 -0
- package/assets/standalone/node_modules/next/dist/lib/recursive-delete.js +137 -0
- package/assets/standalone/node_modules/next/dist/lib/recursive-readdir.js +124 -0
- package/assets/standalone/node_modules/next/dist/lib/redirect-status.js +46 -0
- package/assets/standalone/node_modules/next/dist/lib/require-instrumentation-client.js +26 -0
- package/assets/standalone/node_modules/next/dist/lib/resolve-build-paths.js +149 -0
- package/assets/standalone/node_modules/next/dist/lib/resolve-from.js +65 -0
- package/assets/standalone/node_modules/next/dist/lib/route-pattern-normalizer.js +107 -0
- package/assets/standalone/node_modules/next/dist/lib/scheduler.js +64 -0
- package/assets/standalone/node_modules/next/dist/lib/semver-noop.js +18 -0
- package/assets/standalone/node_modules/next/dist/lib/server-external-packages.jsonc +103 -0
- package/assets/standalone/node_modules/next/dist/lib/setup-exception-listeners.js +11 -0
- package/assets/standalone/node_modules/next/dist/lib/static-env.js +92 -0
- package/assets/standalone/node_modules/next/dist/lib/try-to-parse-path.js +68 -0
- package/assets/standalone/node_modules/next/dist/lib/turbopack-warning.js +186 -0
- package/assets/standalone/node_modules/next/dist/lib/typescript/diagnosticFormatter.js +240 -0
- package/assets/standalone/node_modules/next/dist/lib/typescript/getTypeScriptConfiguration.js +73 -0
- package/assets/standalone/node_modules/next/dist/lib/typescript/getTypeScriptIntent.js +52 -0
- package/assets/standalone/node_modules/next/dist/lib/typescript/missingDependencyError.js +27 -0
- package/assets/standalone/node_modules/next/dist/lib/typescript/runTypeCheck.js +151 -0
- package/assets/standalone/node_modules/next/dist/lib/typescript/type-paths.js +56 -0
- package/assets/standalone/node_modules/next/dist/lib/typescript/writeAppTypeDeclarations.js +65 -0
- package/assets/standalone/node_modules/next/dist/lib/typescript/writeConfigurationDefaults.js +394 -0
- package/assets/standalone/node_modules/next/dist/lib/url.js +75 -0
- package/assets/standalone/node_modules/next/dist/lib/verify-partytown-setup.js +115 -0
- package/assets/standalone/node_modules/next/dist/lib/verify-root-layout.js +165 -0
- package/assets/standalone/node_modules/next/dist/lib/verify-typescript-setup.js +178 -0
- package/assets/standalone/node_modules/next/dist/lib/wait.js +19 -0
- package/assets/standalone/node_modules/next/dist/lib/with-promise-cache.js +24 -0
- package/assets/standalone/node_modules/next/dist/lib/worker.js +223 -0
- package/assets/standalone/node_modules/next/dist/next-devtools/server/shared.js +61 -0
- package/assets/standalone/node_modules/next/dist/server/ReactDOMServerPages.js +16 -0
- package/assets/standalone/node_modules/next/dist/server/accept-header.js +132 -0
- package/assets/standalone/node_modules/next/dist/server/after/after-context.js +140 -0
- package/assets/standalone/node_modules/next/dist/server/after/after.js +26 -0
- package/assets/standalone/node_modules/next/dist/server/after/awaiter.js +74 -0
- package/assets/standalone/node_modules/next/dist/server/after/builtin-request-context.js +38 -0
- package/assets/standalone/node_modules/next/dist/server/after/index.js +21 -0
- package/assets/standalone/node_modules/next/dist/server/after/run-with-after.js +35 -0
- package/assets/standalone/node_modules/next/dist/server/api-utils/get-cookie-parser.js +22 -0
- package/assets/standalone/node_modules/next/dist/server/api-utils/index.js +201 -0
- package/assets/standalone/node_modules/next/dist/server/api-utils/node/api-resolver.js +395 -0
- package/assets/standalone/node_modules/next/dist/server/api-utils/node/parse-body.js +79 -0
- package/assets/standalone/node_modules/next/dist/server/api-utils/node/try-get-preview-data.js +86 -0
- package/assets/standalone/node_modules/next/dist/server/api-utils/web.js +17 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/action-async-storage-instance.js +14 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/action-async-storage.external.js +13 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/action-handler.js +952 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/after-task-async-storage-instance.js +14 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/after-task-async-storage.external.js +13 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/app-render-prerender-utils.js +249 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/app-render-render-utils.js +112 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/app-render-scheduling.js +188 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/app-render.js +3526 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/async-local-storage.js +76 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/cache-signal.js +181 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/collect-segment-data.js +276 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/console-async-storage-instance.js +14 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/console-async-storage.external.js +13 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/create-component-styles-and-scripts.js +33 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/create-component-tree.js +754 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/create-error-handler.js +187 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/create-flight-router-state-from-loader-tree.js +76 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/csrf-protection.js +75 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js +14 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js +13 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/dynamic-rendering.js +828 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/encryption-utils-server.js +114 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/encryption-utils.js +93 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/encryption.js +238 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/entry-base.js +237 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/flight-render-result.js +28 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/get-asset-query-string.js +29 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/get-css-inlined-link-tags.js +49 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/get-layer-assets.js +65 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/get-preloadable-fonts.js +39 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/get-script-nonce-from-header.js +44 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/get-short-dynamic-param-type.js +25 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/has-loading-component-in-tree.js +19 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/interop-default.js +17 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/make-get-server-inserted-html.js +92 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/manifests-singleton.js +257 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/metadata-insertion/create-server-inserted-metadata.js +28 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/module-loading/track-dynamic-import.js +57 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js +32 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js +66 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/parse-and-validate-flight-router-state.js +49 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/postponed-state.js +156 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/prospective-render-utils.js +73 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/react-large-shell-error.js +17 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/react-server.node.js +39 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/render-css-resource.js +52 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/required-scripts.js +76 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/rsc/postpone.js +18 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/rsc/preloads.js +74 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/rsc/taint.js +79 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/segment-explorer-path.js +103 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/server-inserted-html.js +77 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/staged-rendering.js +273 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/staged-validation.js +32 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/strip-flight-headers.js +18 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/types.js +59 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/use-flight-response.js +212 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/walk-tree-with-flight-router-state.js +185 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/work-async-storage-instance.js +14 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/work-async-storage.external.js +13 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js +14 -0
- package/assets/standalone/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js +252 -0
- package/assets/standalone/node_modules/next/dist/server/async-storage/draft-mode-provider.js +62 -0
- package/assets/standalone/node_modules/next/dist/server/async-storage/request-store.js +144 -0
- package/assets/standalone/node_modules/next/dist/server/async-storage/with-store.js +6 -0
- package/assets/standalone/node_modules/next/dist/server/async-storage/work-store.js +94 -0
- package/assets/standalone/node_modules/next/dist/server/base-http/helpers.js +36 -0
- package/assets/standalone/node_modules/next/dist/server/base-http/index.js +54 -0
- package/assets/standalone/node_modules/next/dist/server/base-http/node.js +147 -0
- package/assets/standalone/node_modules/next/dist/server/base-http/web.js +124 -0
- package/assets/standalone/node_modules/next/dist/server/base-server.js +1862 -0
- package/assets/standalone/node_modules/next/dist/server/body-streams.js +114 -0
- package/assets/standalone/node_modules/next/dist/server/cache-dir.js +26 -0
- package/assets/standalone/node_modules/next/dist/server/capsize-font-metrics.json +181516 -0
- package/assets/standalone/node_modules/next/dist/server/ci-info.js +41 -0
- package/assets/standalone/node_modules/next/dist/server/client-component-renderer-logger.js +70 -0
- package/assets/standalone/node_modules/next/dist/server/config-schema.js +632 -0
- package/assets/standalone/node_modules/next/dist/server/config-shared.js +319 -0
- package/assets/standalone/node_modules/next/dist/server/config-utils.js +185 -0
- package/assets/standalone/node_modules/next/dist/server/config.js +1474 -0
- package/assets/standalone/node_modules/next/dist/server/create-deduped-by-callsite-server-error-logger.js +96 -0
- package/assets/standalone/node_modules/next/dist/server/crypto-utils.js +70 -0
- package/assets/standalone/node_modules/next/dist/server/dev/browser-logs/file-logger.js +183 -0
- package/assets/standalone/node_modules/next/dist/server/dev/browser-logs/receive-logs.js +512 -0
- package/assets/standalone/node_modules/next/dist/server/dev/browser-logs/source-map.js +225 -0
- package/assets/standalone/node_modules/next/dist/server/dev/debug-channel.js +87 -0
- package/assets/standalone/node_modules/next/dist/server/dev/dev-indicator-server-state.js +15 -0
- package/assets/standalone/node_modules/next/dist/server/dev/get-source-map-from-file.js +100 -0
- package/assets/standalone/node_modules/next/dist/server/dev/hot-middleware.js +274 -0
- package/assets/standalone/node_modules/next/dist/server/dev/hot-reloader-rspack.js +171 -0
- package/assets/standalone/node_modules/next/dist/server/dev/hot-reloader-shared-utils.js +56 -0
- package/assets/standalone/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +1247 -0
- package/assets/standalone/node_modules/next/dist/server/dev/hot-reloader-types.js +58 -0
- package/assets/standalone/node_modules/next/dist/server/dev/hot-reloader-webpack.js +1382 -0
- package/assets/standalone/node_modules/next/dist/server/dev/log-requests.js +141 -0
- package/assets/standalone/node_modules/next/dist/server/dev/messages.js +74 -0
- package/assets/standalone/node_modules/next/dist/server/dev/middleware-turbopack.js +393 -0
- package/assets/standalone/node_modules/next/dist/server/dev/middleware-webpack.js +473 -0
- package/assets/standalone/node_modules/next/dist/server/dev/node-stack-frames.js +72 -0
- package/assets/standalone/node_modules/next/dist/server/dev/on-demand-entry-handler.js +704 -0
- package/assets/standalone/node_modules/next/dist/server/dev/parse-version-info.js +108 -0
- package/assets/standalone/node_modules/next/dist/server/dev/require-cache.js +49 -0
- package/assets/standalone/node_modules/next/dist/server/dev/serialized-errors.js +67 -0
- package/assets/standalone/node_modules/next/dist/server/dev/static-paths-worker.js +103 -0
- package/assets/standalone/node_modules/next/dist/server/dev/turbopack-utils.js +696 -0
- package/assets/standalone/node_modules/next/dist/server/dynamic-rendering-utils.js +86 -0
- package/assets/standalone/node_modules/next/dist/server/font-utils.js +43 -0
- package/assets/standalone/node_modules/next/dist/server/get-app-route-from-entrypoint.js +30 -0
- package/assets/standalone/node_modules/next/dist/server/get-page-files.js +23 -0
- package/assets/standalone/node_modules/next/dist/server/get-route-from-entrypoint.js +35 -0
- package/assets/standalone/node_modules/next/dist/server/htmlescape.js +37 -0
- package/assets/standalone/node_modules/next/dist/server/image-optimizer.js +1090 -0
- package/assets/standalone/node_modules/next/dist/server/instrumentation/types.js +6 -0
- package/assets/standalone/node_modules/next/dist/server/instrumentation/utils.js +21 -0
- package/assets/standalone/node_modules/next/dist/server/internal-utils.js +39 -0
- package/assets/standalone/node_modules/next/dist/server/is-private-ip.js +36 -0
- package/assets/standalone/node_modules/next/dist/server/lib/app-dir-module.js +59 -0
- package/assets/standalone/node_modules/next/dist/server/lib/app-info-log.js +154 -0
- package/assets/standalone/node_modules/next/dist/server/lib/async-callback-set.js +29 -0
- package/assets/standalone/node_modules/next/dist/server/lib/cache-control.js +22 -0
- package/assets/standalone/node_modules/next/dist/server/lib/cache-handlers/default.external.js +18 -0
- package/assets/standalone/node_modules/next/dist/server/lib/cache-handlers/default.js +160 -0
- package/assets/standalone/node_modules/next/dist/server/lib/cache-handlers/types.js +8 -0
- package/assets/standalone/node_modules/next/dist/server/lib/chrome-devtools-workspace.js +116 -0
- package/assets/standalone/node_modules/next/dist/server/lib/clone-response.js +77 -0
- package/assets/standalone/node_modules/next/dist/server/lib/cpu-profile.js +28 -0
- package/assets/standalone/node_modules/next/dist/server/lib/decode-query-path-parameter.js +26 -0
- package/assets/standalone/node_modules/next/dist/server/lib/dedupe-fetch.js +163 -0
- package/assets/standalone/node_modules/next/dist/server/lib/dev-bundler-service.js +95 -0
- package/assets/standalone/node_modules/next/dist/server/lib/etag.js +56 -0
- package/assets/standalone/node_modules/next/dist/server/lib/experimental/create-env-definitions.js +48 -0
- package/assets/standalone/node_modules/next/dist/server/lib/experimental/ppr.js +47 -0
- package/assets/standalone/node_modules/next/dist/server/lib/find-page-file.js +127 -0
- package/assets/standalone/node_modules/next/dist/server/lib/fix-mojibake.js +25 -0
- package/assets/standalone/node_modules/next/dist/server/lib/format-hostname.js +16 -0
- package/assets/standalone/node_modules/next/dist/server/lib/i18n-provider.js +129 -0
- package/assets/standalone/node_modules/next/dist/server/lib/implicit-tags.js +77 -0
- package/assets/standalone/node_modules/next/dist/server/lib/incremental-cache/file-system-cache.js +333 -0
- package/assets/standalone/node_modules/next/dist/server/lib/incremental-cache/index.js +479 -0
- package/assets/standalone/node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js +40 -0
- package/assets/standalone/node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js +73 -0
- package/assets/standalone/node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js +55 -0
- package/assets/standalone/node_modules/next/dist/server/lib/is-ipv6.js +41 -0
- package/assets/standalone/node_modules/next/dist/server/lib/lazy-result.js +46 -0
- package/assets/standalone/node_modules/next/dist/server/lib/lru-cache.js +183 -0
- package/assets/standalone/node_modules/next/dist/server/lib/match-next-data-pathname.js +18 -0
- package/assets/standalone/node_modules/next/dist/server/lib/mock-request.js +416 -0
- package/assets/standalone/node_modules/next/dist/server/lib/module-loader/module-loader.js +8 -0
- package/assets/standalone/node_modules/next/dist/server/lib/module-loader/node-module-loader.js +25 -0
- package/assets/standalone/node_modules/next/dist/server/lib/module-loader/route-module-loader.js +26 -0
- package/assets/standalone/node_modules/next/dist/server/lib/node-fs-methods.js +28 -0
- package/assets/standalone/node_modules/next/dist/server/lib/parse-stack.js +46 -0
- package/assets/standalone/node_modules/next/dist/server/lib/patch-fetch.js +945 -0
- package/assets/standalone/node_modules/next/dist/server/lib/patch-set-header.js +38 -0
- package/assets/standalone/node_modules/next/dist/server/lib/render-server.js +152 -0
- package/assets/standalone/node_modules/next/dist/server/lib/router-server.js +672 -0
- package/assets/standalone/node_modules/next/dist/server/lib/router-utils/block-cross-site.js +76 -0
- package/assets/standalone/node_modules/next/dist/server/lib/router-utils/build-data-route.js +48 -0
- package/assets/standalone/node_modules/next/dist/server/lib/router-utils/build-prefetch-segment-data-route.js +50 -0
- package/assets/standalone/node_modules/next/dist/server/lib/router-utils/cache-life-type-utils.js +211 -0
- package/assets/standalone/node_modules/next/dist/server/lib/router-utils/decode-path-params.js +42 -0
- package/assets/standalone/node_modules/next/dist/server/lib/router-utils/filesystem.js +590 -0
- package/assets/standalone/node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js +89 -0
- package/assets/standalone/node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js +96 -0
- package/assets/standalone/node_modules/next/dist/server/lib/router-utils/is-postpone.js +16 -0
- package/assets/standalone/node_modules/next/dist/server/lib/router-utils/proxy-request.js +118 -0
- package/assets/standalone/node_modules/next/dist/server/lib/router-utils/resolve-routes.js +608 -0
- package/assets/standalone/node_modules/next/dist/server/lib/router-utils/route-types-utils.js +286 -0
- package/assets/standalone/node_modules/next/dist/server/lib/router-utils/router-server-context.js +26 -0
- package/assets/standalone/node_modules/next/dist/server/lib/router-utils/typegen.js +613 -0
- package/assets/standalone/node_modules/next/dist/server/lib/router-utils/types.js +6 -0
- package/assets/standalone/node_modules/next/dist/server/lib/server-action-request-meta.js +53 -0
- package/assets/standalone/node_modules/next/dist/server/lib/server-ipc/utils.js +80 -0
- package/assets/standalone/node_modules/next/dist/server/lib/source-maps.js +196 -0
- package/assets/standalone/node_modules/next/dist/server/lib/start-server.js +460 -0
- package/assets/standalone/node_modules/next/dist/server/lib/streaming-metadata.js +38 -0
- package/assets/standalone/node_modules/next/dist/server/lib/to-route.js +37 -0
- package/assets/standalone/node_modules/next/dist/server/lib/trace/constants.js +203 -0
- package/assets/standalone/node_modules/next/dist/server/lib/trace/tracer.js +270 -0
- package/assets/standalone/node_modules/next/dist/server/lib/trace/utils.js +16 -0
- package/assets/standalone/node_modules/next/dist/server/lib/types.js +6 -0
- package/assets/standalone/node_modules/next/dist/server/lib/utils.js +249 -0
- package/assets/standalone/node_modules/next/dist/server/lib/worker-utils.js +36 -0
- package/assets/standalone/node_modules/next/dist/server/load-components.js +177 -0
- package/assets/standalone/node_modules/next/dist/server/load-default-error-components.js +41 -0
- package/assets/standalone/node_modules/next/dist/server/load-manifest.external.js +97 -0
- package/assets/standalone/node_modules/next/dist/server/match-bundle.js +25 -0
- package/assets/standalone/node_modules/next/dist/server/mcp/get-mcp-middleware.js +49 -0
- package/assets/standalone/node_modules/next/dist/server/mcp/get-or-create-mcp-server.js +41 -0
- package/assets/standalone/node_modules/next/dist/server/mcp/mcp-telemetry-tracker.js +82 -0
- package/assets/standalone/node_modules/next/dist/server/mcp/tools/get-errors.js +107 -0
- package/assets/standalone/node_modules/next/dist/server/mcp/tools/get-logs.js +61 -0
- package/assets/standalone/node_modules/next/dist/server/mcp/tools/get-page-metadata.js +180 -0
- package/assets/standalone/node_modules/next/dist/server/mcp/tools/get-project-metadata.js +55 -0
- package/assets/standalone/node_modules/next/dist/server/mcp/tools/get-routes.js +171 -0
- package/assets/standalone/node_modules/next/dist/server/mcp/tools/get-server-action-by-id.js +113 -0
- package/assets/standalone/node_modules/next/dist/server/mcp/tools/next-instance-error-state.js +31 -0
- package/assets/standalone/node_modules/next/dist/server/mcp/tools/utils/browser-communication.js +90 -0
- package/assets/standalone/node_modules/next/dist/server/mcp/tools/utils/format-errors.js +147 -0
- package/assets/standalone/node_modules/next/dist/server/next-server.js +1459 -0
- package/assets/standalone/node_modules/next/dist/server/next-typescript.js +13 -0
- package/assets/standalone/node_modules/next/dist/server/next.js +452 -0
- package/assets/standalone/node_modules/next/dist/server/node-environment-baseline.js +25 -0
- package/assets/standalone/node_modules/next/dist/server/node-environment-extensions/console-dim.external.js +246 -0
- package/assets/standalone/node_modules/next/dist/server/node-environment-extensions/console-exit.js +49 -0
- package/assets/standalone/node_modules/next/dist/server/node-environment-extensions/console-file.js +56 -0
- package/assets/standalone/node_modules/next/dist/server/node-environment-extensions/date.js +52 -0
- package/assets/standalone/node_modules/next/dist/server/node-environment-extensions/error-inspect.js +8 -0
- package/assets/standalone/node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js +570 -0
- package/assets/standalone/node_modules/next/dist/server/node-environment-extensions/global-behaviors.js +33 -0
- package/assets/standalone/node_modules/next/dist/server/node-environment-extensions/node-crypto.js +103 -0
- package/assets/standalone/node_modules/next/dist/server/node-environment-extensions/random.js +28 -0
- package/assets/standalone/node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.js +489 -0
- package/assets/standalone/node_modules/next/dist/server/node-environment-extensions/utils.js +186 -0
- package/assets/standalone/node_modules/next/dist/server/node-environment-extensions/web-crypto.js +45 -0
- package/assets/standalone/node_modules/next/dist/server/node-environment.js +19 -0
- package/assets/standalone/node_modules/next/dist/server/node-polyfill-crypto.js +21 -0
- package/assets/standalone/node_modules/next/dist/server/normalizers/absolute-filename-normalizer.js +33 -0
- package/assets/standalone/node_modules/next/dist/server/normalizers/built/app/app-bundle-path-normalizer.js +54 -0
- package/assets/standalone/node_modules/next/dist/server/normalizers/built/app/app-filename-normalizer.js +22 -0
- package/assets/standalone/node_modules/next/dist/server/normalizers/built/app/app-page-normalizer.js +40 -0
- package/assets/standalone/node_modules/next/dist/server/normalizers/built/app/app-pathname-normalizer.js +55 -0
- package/assets/standalone/node_modules/next/dist/server/normalizers/built/app/index.js +42 -0
- package/assets/standalone/node_modules/next/dist/server/normalizers/built/pages/index.js +44 -0
- package/assets/standalone/node_modules/next/dist/server/normalizers/built/pages/pages-bundle-path-normalizer.js +55 -0
- package/assets/standalone/node_modules/next/dist/server/normalizers/built/pages/pages-filename-normalizer.js +22 -0
- package/assets/standalone/node_modules/next/dist/server/normalizers/built/pages/pages-page-normalizer.js +19 -0
- package/assets/standalone/node_modules/next/dist/server/normalizers/built/pages/pages-pathname-normalizer.js +19 -0
- package/assets/standalone/node_modules/next/dist/server/normalizers/locale-route-normalizer.js +26 -0
- package/assets/standalone/node_modules/next/dist/server/normalizers/normalizer.js +6 -0
- package/assets/standalone/node_modules/next/dist/server/normalizers/normalizers.js +23 -0
- package/assets/standalone/node_modules/next/dist/server/normalizers/prefixing-normalizer.js +26 -0
- package/assets/standalone/node_modules/next/dist/server/normalizers/request/base-path.js +25 -0
- package/assets/standalone/node_modules/next/dist/server/normalizers/request/next-data.js +38 -0
- package/assets/standalone/node_modules/next/dist/server/normalizers/request/pathname-normalizer.js +6 -0
- package/assets/standalone/node_modules/next/dist/server/normalizers/request/prefix.js +39 -0
- package/assets/standalone/node_modules/next/dist/server/normalizers/request/rsc.js +19 -0
- package/assets/standalone/node_modules/next/dist/server/normalizers/request/segment-prefix-rsc.js +32 -0
- package/assets/standalone/node_modules/next/dist/server/normalizers/request/suffix.js +27 -0
- package/assets/standalone/node_modules/next/dist/server/normalizers/underscore-normalizer.js +17 -0
- package/assets/standalone/node_modules/next/dist/server/normalizers/wrap-normalizer-fn.js +17 -0
- package/assets/standalone/node_modules/next/dist/server/og/image-response.js +53 -0
- package/assets/standalone/node_modules/next/dist/server/patch-error-inspect.js +436 -0
- package/assets/standalone/node_modules/next/dist/server/pipe-readable.js +140 -0
- package/assets/standalone/node_modules/next/dist/server/post-process.js +39 -0
- package/assets/standalone/node_modules/next/dist/server/render-result.js +195 -0
- package/assets/standalone/node_modules/next/dist/server/render.js +1138 -0
- package/assets/standalone/node_modules/next/dist/server/request/connection.js +111 -0
- package/assets/standalone/node_modules/next/dist/server/request/cookies.js +220 -0
- package/assets/standalone/node_modules/next/dist/server/request/draft-mode.js +207 -0
- package/assets/standalone/node_modules/next/dist/server/request/fallback-params.js +69 -0
- package/assets/standalone/node_modules/next/dist/server/request/headers.js +219 -0
- package/assets/standalone/node_modules/next/dist/server/request/params.js +415 -0
- package/assets/standalone/node_modules/next/dist/server/request/pathname.js +104 -0
- package/assets/standalone/node_modules/next/dist/server/request/root-params.js +157 -0
- package/assets/standalone/node_modules/next/dist/server/request/search-params.js +432 -0
- package/assets/standalone/node_modules/next/dist/server/request/utils.js +51 -0
- package/assets/standalone/node_modules/next/dist/server/request-meta.js +55 -0
- package/assets/standalone/node_modules/next/dist/server/require-hook.js +71 -0
- package/assets/standalone/node_modules/next/dist/server/require.js +109 -0
- package/assets/standalone/node_modules/next/dist/server/response-cache/index.js +311 -0
- package/assets/standalone/node_modules/next/dist/server/response-cache/types.js +41 -0
- package/assets/standalone/node_modules/next/dist/server/response-cache/utils.js +103 -0
- package/assets/standalone/node_modules/next/dist/server/response-cache/web.js +101 -0
- package/assets/standalone/node_modules/next/dist/server/resume-data-cache/cache-store.js +84 -0
- package/assets/standalone/node_modules/next/dist/server/resume-data-cache/resume-data-cache.js +115 -0
- package/assets/standalone/node_modules/next/dist/server/revalidation-utils.js +152 -0
- package/assets/standalone/node_modules/next/dist/server/route-definitions/app-page-route-definition.js +16 -0
- package/assets/standalone/node_modules/next/dist/server/route-definitions/app-route-route-definition.js +6 -0
- package/assets/standalone/node_modules/next/dist/server/route-definitions/locale-route-definition.js +6 -0
- package/assets/standalone/node_modules/next/dist/server/route-definitions/pages-api-route-definition.js +6 -0
- package/assets/standalone/node_modules/next/dist/server/route-definitions/pages-route-definition.js +6 -0
- package/assets/standalone/node_modules/next/dist/server/route-definitions/route-definition.js +6 -0
- package/assets/standalone/node_modules/next/dist/server/route-kind.js +32 -0
- package/assets/standalone/node_modules/next/dist/server/route-matcher-managers/default-route-matcher-manager.js +239 -0
- package/assets/standalone/node_modules/next/dist/server/route-matcher-managers/dev-route-matcher-manager.js +120 -0
- package/assets/standalone/node_modules/next/dist/server/route-matcher-managers/route-matcher-manager.js +6 -0
- package/assets/standalone/node_modules/next/dist/server/route-matcher-providers/app-page-route-matcher-provider.js +55 -0
- package/assets/standalone/node_modules/next/dist/server/route-matcher-providers/app-route-route-matcher-provider.js +43 -0
- package/assets/standalone/node_modules/next/dist/server/route-matcher-providers/dev/dev-app-page-route-matcher-provider.js +90 -0
- package/assets/standalone/node_modules/next/dist/server/route-matcher-providers/dev/dev-app-route-route-matcher-provider.js +112 -0
- package/assets/standalone/node_modules/next/dist/server/route-matcher-providers/dev/dev-pages-api-route-matcher-provider.js +77 -0
- package/assets/standalone/node_modules/next/dist/server/route-matcher-providers/dev/dev-pages-route-matcher-provider.js +77 -0
- package/assets/standalone/node_modules/next/dist/server/route-matcher-providers/dev/file-cache-route-matcher-provider.js +28 -0
- package/assets/standalone/node_modules/next/dist/server/route-matcher-providers/dev/helpers/file-reader/batched-file-reader.js +106 -0
- package/assets/standalone/node_modules/next/dist/server/route-matcher-providers/dev/helpers/file-reader/default-file-reader.js +42 -0
- package/assets/standalone/node_modules/next/dist/server/route-matcher-providers/dev/helpers/file-reader/file-reader.js +6 -0
- package/assets/standalone/node_modules/next/dist/server/route-matcher-providers/helpers/cached-route-matcher-provider.js +30 -0
- package/assets/standalone/node_modules/next/dist/server/route-matcher-providers/helpers/manifest-loaders/manifest-loader.js +6 -0
- package/assets/standalone/node_modules/next/dist/server/route-matcher-providers/helpers/manifest-loaders/node-manifest-loader.js +34 -0
- package/assets/standalone/node_modules/next/dist/server/route-matcher-providers/helpers/manifest-loaders/server-manifest-loader.js +20 -0
- package/assets/standalone/node_modules/next/dist/server/route-matcher-providers/manifest-route-matcher-provider.js +21 -0
- package/assets/standalone/node_modules/next/dist/server/route-matcher-providers/pages-api-route-matcher-provider.js +55 -0
- package/assets/standalone/node_modules/next/dist/server/route-matcher-providers/pages-route-matcher-provider.js +64 -0
- package/assets/standalone/node_modules/next/dist/server/route-matcher-providers/route-matcher-provider.js +6 -0
- package/assets/standalone/node_modules/next/dist/server/route-matchers/app-page-route-matcher.js +18 -0
- package/assets/standalone/node_modules/next/dist/server/route-matchers/app-route-route-matcher.js +15 -0
- package/assets/standalone/node_modules/next/dist/server/route-matchers/locale-route-matcher.js +68 -0
- package/assets/standalone/node_modules/next/dist/server/route-matchers/pages-api-route-matcher.js +30 -0
- package/assets/standalone/node_modules/next/dist/server/route-matchers/pages-route-matcher.js +30 -0
- package/assets/standalone/node_modules/next/dist/server/route-matchers/route-matcher.js +54 -0
- package/assets/standalone/node_modules/next/dist/server/route-matches/app-page-route-match.js +6 -0
- package/assets/standalone/node_modules/next/dist/server/route-matches/app-route-route-match.js +6 -0
- package/assets/standalone/node_modules/next/dist/server/route-matches/locale-route-match.js +6 -0
- package/assets/standalone/node_modules/next/dist/server/route-matches/pages-api-route-match.js +16 -0
- package/assets/standalone/node_modules/next/dist/server/route-matches/pages-route-match.js +6 -0
- package/assets/standalone/node_modules/next/dist/server/route-matches/route-match.js +6 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/app-page/helpers/prerender-manifest-matcher.js +48 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/app-page/module.compiled.js +36 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/app-page/module.js +132 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/app-page/module.render.js +24 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/app-router-context.js +4 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/entrypoints.js +87 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/head-manager-context.js +4 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/hooks-client-context.js +4 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/image-config-context.js +4 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/router-context.js +4 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/server-inserted-html.js +4 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/entrypoints.js +140 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-compiler-runtime.js +4 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-dom.js +4 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-jsx-dev-runtime.js +4 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-jsx-runtime.js +4 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-server-dom-turbopack-server.js +4 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-server-dom-turbopack-static.js +4 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-server-dom-webpack-server.js +4 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-server-dom-webpack-static.js +4 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react.js +4 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/entrypoints.js +125 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-compiler-runtime.js +4 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-dom-server.js +4 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-dom.js +4 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-jsx-dev-runtime.js +4 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-jsx-runtime.js +4 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-server-dom-turbopack-client.js +4 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-server-dom-webpack-client.js +4 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react.js +4 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/app-route/helpers/auto-implement-methods.js +85 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/app-route/helpers/clean-url.js +24 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/app-route/helpers/get-pathname-from-absolute-path.js +29 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/app-route/helpers/is-static-gen-enabled.js +15 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/app-route/helpers/parsed-url-query-to-params.js +20 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/app-route/module.compiled.js +36 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/app-route/module.js +889 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/app-route/shared-modules.js +56 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/checks.js +45 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/pages/builtin/_error.js +100 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/pages/module.compiled.js +20 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/pages/module.js +92 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/pages/module.render.js +24 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/pages/pages-handler.js +522 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/app-router-context.js +4 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/entrypoints.js +102 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/head-manager-context.js +4 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/hooks-client-context.js +4 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/html-context.js +4 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/image-config-context.js +4 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable-context.js +4 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable.js +4 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/router-context.js +4 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/server-inserted-html.js +4 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/pages-api/module.compiled.js +20 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/pages-api/module.js +58 -0
- package/assets/standalone/node_modules/next/dist/server/route-modules/route-module.js +597 -0
- package/assets/standalone/node_modules/next/dist/server/runtime-reacts.external.js +46 -0
- package/assets/standalone/node_modules/next/dist/server/send-payload.js +88 -0
- package/assets/standalone/node_modules/next/dist/server/send-response.js +70 -0
- package/assets/standalone/node_modules/next/dist/server/serve-static.js +66 -0
- package/assets/standalone/node_modules/next/dist/server/server-route-utils.js +30 -0
- package/assets/standalone/node_modules/next/dist/server/server-utils.js +323 -0
- package/assets/standalone/node_modules/next/dist/server/setup-http-agent-env.js +31 -0
- package/assets/standalone/node_modules/next/dist/server/stream-utils/encoded-tags.js +114 -0
- package/assets/standalone/node_modules/next/dist/server/stream-utils/node-web-streams-helper.js +737 -0
- package/assets/standalone/node_modules/next/dist/server/stream-utils/uint8array-helpers.js +69 -0
- package/assets/standalone/node_modules/next/dist/server/typescript/constant.js +97 -0
- package/assets/standalone/node_modules/next/dist/server/typescript/index.js +199 -0
- package/assets/standalone/node_modules/next/dist/server/typescript/rules/client-boundary.js +97 -0
- package/assets/standalone/node_modules/next/dist/server/typescript/rules/config.js +501 -0
- package/assets/standalone/node_modules/next/dist/server/typescript/rules/entry.js +149 -0
- package/assets/standalone/node_modules/next/dist/server/typescript/rules/error.js +38 -0
- package/assets/standalone/node_modules/next/dist/server/typescript/rules/metadata.js +234 -0
- package/assets/standalone/node_modules/next/dist/server/typescript/rules/server-boundary.js +115 -0
- package/assets/standalone/node_modules/next/dist/server/typescript/rules/server.js +79 -0
- package/assets/standalone/node_modules/next/dist/server/typescript/utils.js +212 -0
- package/assets/standalone/node_modules/next/dist/server/use-cache/cache-life.js +161 -0
- package/assets/standalone/node_modules/next/dist/server/use-cache/cache-tag.js +50 -0
- package/assets/standalone/node_modules/next/dist/server/use-cache/constants.js +28 -0
- package/assets/standalone/node_modules/next/dist/server/use-cache/handlers.js +121 -0
- package/assets/standalone/node_modules/next/dist/server/use-cache/use-cache-errors.js +36 -0
- package/assets/standalone/node_modules/next/dist/server/use-cache/use-cache-wrapper.js +1336 -0
- package/assets/standalone/node_modules/next/dist/server/utils.js +73 -0
- package/assets/standalone/node_modules/next/dist/server/web/adapter.js +388 -0
- package/assets/standalone/node_modules/next/dist/server/web/edge-route-module-wrapper.js +122 -0
- package/assets/standalone/node_modules/next/dist/server/web/error.js +54 -0
- package/assets/standalone/node_modules/next/dist/server/web/exports/index.js +56 -0
- package/assets/standalone/node_modules/next/dist/server/web/get-edge-preview-props.js +23 -0
- package/assets/standalone/node_modules/next/dist/server/web/globals.js +128 -0
- package/assets/standalone/node_modules/next/dist/server/web/http.js +39 -0
- package/assets/standalone/node_modules/next/dist/server/web/internal-edge-wait-until.js +64 -0
- package/assets/standalone/node_modules/next/dist/server/web/next-url.js +195 -0
- package/assets/standalone/node_modules/next/dist/server/web/sandbox/context.js +462 -0
- package/assets/standalone/node_modules/next/dist/server/web/sandbox/fetch-inline-assets.js +35 -0
- package/assets/standalone/node_modules/next/dist/server/web/sandbox/index.js +28 -0
- package/assets/standalone/node_modules/next/dist/server/web/sandbox/resource-managers.js +88 -0
- package/assets/standalone/node_modules/next/dist/server/web/sandbox/sandbox.js +134 -0
- package/assets/standalone/node_modules/next/dist/server/web/spec-extension/adapters/headers.js +192 -0
- package/assets/standalone/node_modules/next/dist/server/web/spec-extension/adapters/next-request.js +142 -0
- package/assets/standalone/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js +30 -0
- package/assets/standalone/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js +211 -0
- package/assets/standalone/node_modules/next/dist/server/web/spec-extension/cookies.js +29 -0
- package/assets/standalone/node_modules/next/dist/server/web/spec-extension/fetch-event.js +98 -0
- package/assets/standalone/node_modules/next/dist/server/web/spec-extension/image-response.js +22 -0
- package/assets/standalone/node_modules/next/dist/server/web/spec-extension/request.js +99 -0
- package/assets/standalone/node_modules/next/dist/server/web/spec-extension/response.js +136 -0
- package/assets/standalone/node_modules/next/dist/server/web/spec-extension/revalidate.js +206 -0
- package/assets/standalone/node_modules/next/dist/server/web/spec-extension/unstable-cache.js +284 -0
- package/assets/standalone/node_modules/next/dist/server/web/spec-extension/unstable-no-store.js +49 -0
- package/assets/standalone/node_modules/next/dist/server/web/spec-extension/url-pattern.js +14 -0
- package/assets/standalone/node_modules/next/dist/server/web/spec-extension/user-agent.js +46 -0
- package/assets/standalone/node_modules/next/dist/server/web/types.js +6 -0
- package/assets/standalone/node_modules/next/dist/server/web/utils.js +151 -0
- package/assets/standalone/node_modules/next/dist/server/web/web-on-close.js +87 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/action-revalidation-kind.js +31 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js +50 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/app-router-types.js +27 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/constants.js +448 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/deep-freeze.js +30 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/deployment-id.js +36 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/dset.js +34 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/encode-uri-path.js +15 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/entry-constants.js +36 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/error-source.js +36 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/errors/canary-only-config-error.js +39 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/errors/constants.js +19 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/errors/empty-generate-static-params-error.js +24 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/errors/hard-deprecated-config-error.js +20 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/escape-regexp.js +22 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/get-hostname.js +23 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/hash.js +42 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js +18 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/head.js +163 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js +60 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/html-context.shared-runtime.js +40 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +25 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/i18n/get-locale-redirect.js +59 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +54 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/image-blur-svg.js +22 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js +19 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/image-config.js +75 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/invariant-error.js +18 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/is-internal.js +39 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/is-plain-object.js +42 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/is-thenable.js +20 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/isomorphic/path.js +14 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js +37 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/loadable-context.shared-runtime.js +19 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/loadable.shared-runtime.js +246 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/magic-identifier.js +218 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/match-local-pattern.js +46 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/match-remote-pattern.js +63 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/modern-browserslist-target.js +15 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/no-fallback-error.external.js +18 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/normalized-asset-prefix.js +28 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/page-path/absolute-path-to-page.js +26 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js +18 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +18 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/page-path/get-page-paths.js +40 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/page-path/normalize-data-path.js +23 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/page-path/normalize-page-path.js +26 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js +19 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/page-path/remove-page-path-tail.js +20 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/promise-with-resolvers.js +26 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/router/adapters.js +136 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/router/routes/app.js +122 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/router/utils/add-locale.js +28 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +20 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js +20 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/router/utils/app-paths.js +51 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/router/utils/as-path-to-search-params.js +17 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/router/utils/cache-busting-search-param.js +24 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/router/utils/escape-path-delimiters.js +16 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js +27 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/router/utils/format-url.js +111 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +167 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js +52 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/router/utils/get-route-from-asset-path.js +25 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +90 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/router/utils/html-bots.js +17 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/router/utils/index.js +30 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/router/utils/interception-prefix-from-param-type.js +33 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +108 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/router/utils/is-bot.js +57 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +26 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/router/utils/middleware-route-matcher.js +31 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +29 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/router/utils/parse-path.js +33 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js +36 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/router/utils/parse-url.js +32 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +20 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/router/utils/path-match.js +49 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/router/utils/prepare-destination.js +292 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/router/utils/querystring.js +79 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/router/utils/relativize-url.js +40 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js +39 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +21 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/router/utils/resolve-param-value.js +116 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js +113 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +45 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/router/utils/route-regex.js +256 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +244 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +18 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/segment-cache/output-export-prefetch-encoding.js +52 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/segment-cache/segment-value-encoding.js +99 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/segment.js +102 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js +35 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/server-reference-info.js +52 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/side-effect.js +63 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/size-limit.js +35 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/turbopack/internal-error.js +53 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/turbopack/utils.js +279 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/utils/warn-once.js +22 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/utils.js +207 -0
- package/assets/standalone/node_modules/next/dist/shared/lib/zod.js +101 -0
- package/assets/standalone/node_modules/next/dist/telemetry/anonymous-meta.js +89 -0
- package/assets/standalone/node_modules/next/dist/telemetry/detached-flush.js +56 -0
- package/assets/standalone/node_modules/next/dist/telemetry/events/build.js +174 -0
- package/assets/standalone/node_modules/next/dist/telemetry/events/index.js +41 -0
- package/assets/standalone/node_modules/next/dist/telemetry/events/plugins.js +51 -0
- package/assets/standalone/node_modules/next/dist/telemetry/events/swc-load-failure.js +55 -0
- package/assets/standalone/node_modules/next/dist/telemetry/events/version.js +66 -0
- package/assets/standalone/node_modules/next/dist/telemetry/flush-telemetry.js +19 -0
- package/assets/standalone/node_modules/next/dist/telemetry/post-telemetry-payload.js +48 -0
- package/assets/standalone/node_modules/next/dist/telemetry/project-id.js +48 -0
- package/assets/standalone/node_modules/next/dist/telemetry/storage.js +301 -0
- package/assets/standalone/node_modules/next/dist/trace/index.js +54 -0
- package/assets/standalone/node_modules/next/dist/trace/report/index.js +37 -0
- package/assets/standalone/node_modules/next/dist/trace/report/to-json-build.js +137 -0
- package/assets/standalone/node_modules/next/dist/trace/report/to-json.js +151 -0
- package/assets/standalone/node_modules/next/dist/trace/report/to-telemetry.js +36 -0
- package/assets/standalone/node_modules/next/dist/trace/shared.js +39 -0
- package/assets/standalone/node_modules/next/dist/trace/trace.js +197 -0
- package/assets/standalone/node_modules/next/package.json +380 -0
- package/assets/standalone/node_modules/react/cjs/react-compiler-runtime.production.js +16 -0
- package/assets/standalone/node_modules/react/cjs/react-jsx-dev-runtime.production.js +14 -0
- package/assets/standalone/node_modules/react/cjs/react-jsx-runtime.production.js +34 -0
- package/assets/standalone/node_modules/react/cjs/react.production.js +542 -0
- package/assets/standalone/node_modules/react/compiler-runtime.js +14 -0
- package/assets/standalone/node_modules/react/index.js +7 -0
- package/assets/standalone/node_modules/react/jsx-dev-runtime.js +7 -0
- package/assets/standalone/node_modules/react/jsx-runtime.js +7 -0
- package/assets/standalone/node_modules/react/package.json +51 -0
- package/assets/standalone/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.js +6603 -0
- package/assets/standalone/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.js +6692 -0
- package/assets/standalone/node_modules/react-dom/cjs/react-dom-server.browser.production.js +7410 -0
- package/assets/standalone/node_modules/react-dom/cjs/react-dom-server.edge.production.js +7512 -0
- package/assets/standalone/node_modules/react-dom/cjs/react-dom-server.node.production.js +7707 -0
- package/assets/standalone/node_modules/react-dom/cjs/react-dom.production.js +210 -0
- package/assets/standalone/node_modules/react-dom/index.js +38 -0
- package/assets/standalone/node_modules/react-dom/package.json +117 -0
- package/assets/standalone/node_modules/react-dom/server.browser.js +16 -0
- package/assets/standalone/node_modules/react-dom/server.edge.js +17 -0
- package/assets/standalone/node_modules/react-dom/server.node.js +18 -0
- package/assets/standalone/node_modules/react-dom/static.node.js +14 -0
- package/assets/standalone/node_modules/styled-jsx/dist/index/index.js +499 -0
- package/assets/standalone/node_modules/styled-jsx/index.js +1 -0
- package/assets/standalone/node_modules/styled-jsx/package.json +132 -0
- package/assets/standalone/node_modules/styled-jsx/style.js +1 -0
- package/assets/standalone/package.json +93 -0
- package/assets/standalone/public/exospheresmall-dark.png +0 -0
- package/assets/standalone/public/exospheresmall.png +0 -0
- package/assets/standalone/server.js +38 -0
- package/bin/claudeye +0 -0
- package/package.json +21 -0
|
@@ -0,0 +1,2683 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
0 && (module.exports = {
|
|
6
|
+
createStaticWorker: null,
|
|
7
|
+
default: null
|
|
8
|
+
});
|
|
9
|
+
function _export(target, all) {
|
|
10
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: all[name]
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
_export(exports, {
|
|
16
|
+
createStaticWorker: function() {
|
|
17
|
+
return createStaticWorker;
|
|
18
|
+
},
|
|
19
|
+
default: function() {
|
|
20
|
+
return build;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
require("../lib/setup-exception-listeners");
|
|
24
|
+
const _env = require("@next/env");
|
|
25
|
+
const _picocolors = require("../lib/picocolors");
|
|
26
|
+
const _picomatch = require("next/dist/compiled/picomatch");
|
|
27
|
+
const _fs = require("fs");
|
|
28
|
+
const _os = /*#__PURE__*/ _interop_require_default(require("os"));
|
|
29
|
+
const _worker = require("../lib/worker");
|
|
30
|
+
const _configshared = require("../server/config-shared");
|
|
31
|
+
const _devalue = /*#__PURE__*/ _interop_require_default(require("next/dist/compiled/devalue"));
|
|
32
|
+
const _findup = /*#__PURE__*/ _interop_require_default(require("next/dist/compiled/find-up"));
|
|
33
|
+
const _indexcjs = require("next/dist/compiled/nanoid/index.cjs");
|
|
34
|
+
const _path = /*#__PURE__*/ _interop_require_default(require("path"));
|
|
35
|
+
const _constants = require("../lib/constants");
|
|
36
|
+
const _fileexists = require("../lib/file-exists");
|
|
37
|
+
const _findpagesdir = require("../lib/find-pages-dir");
|
|
38
|
+
const _loadcustomroutes = /*#__PURE__*/ _interop_require_wildcard(require("../lib/load-custom-routes"));
|
|
39
|
+
const _nonnullable = require("../lib/non-nullable");
|
|
40
|
+
const _recursivedelete = require("../lib/recursive-delete");
|
|
41
|
+
const _verifypartytownsetup = require("../lib/verify-partytown-setup");
|
|
42
|
+
const _constants1 = require("../shared/lib/constants");
|
|
43
|
+
const _entryconstants = require("../shared/lib/entry-constants");
|
|
44
|
+
const _utils = require("../shared/lib/router/utils");
|
|
45
|
+
const _bundler = require("../lib/bundler");
|
|
46
|
+
const _config = /*#__PURE__*/ _interop_require_default(require("../server/config"));
|
|
47
|
+
const _normalizepagepath = require("../shared/lib/page-path/normalize-page-path");
|
|
48
|
+
const _require = require("../server/require");
|
|
49
|
+
const _ciinfo = /*#__PURE__*/ _interop_require_wildcard(require("../server/ci-info"));
|
|
50
|
+
const _turborepoaccesstrace = require("./turborepo-access-trace");
|
|
51
|
+
const _events = require("../telemetry/events");
|
|
52
|
+
const _storage = require("../telemetry/storage");
|
|
53
|
+
const _entries = require("./entries");
|
|
54
|
+
const _sortbypageexts = require("./sort-by-page-exts");
|
|
55
|
+
const _getstaticinfoincludinglayouts = require("./get-static-info-including-layouts");
|
|
56
|
+
const _pagetypes = require("../lib/page-types");
|
|
57
|
+
const _generatebuildid = require("./generate-build-id");
|
|
58
|
+
const _iswriteable = require("./is-writeable");
|
|
59
|
+
const _log = /*#__PURE__*/ _interop_require_wildcard(require("./output/log"));
|
|
60
|
+
const _spinner = /*#__PURE__*/ _interop_require_default(require("./spinner"));
|
|
61
|
+
const _trace = require("../trace");
|
|
62
|
+
const _utils1 = require("./utils");
|
|
63
|
+
const _writebuildid = require("./write-build-id");
|
|
64
|
+
const _normalizelocalepath = require("../shared/lib/i18n/normalize-locale-path");
|
|
65
|
+
const _iserror = /*#__PURE__*/ _interop_require_default(require("../lib/is-error"));
|
|
66
|
+
const _isedgeruntime = require("../lib/is-edge-runtime");
|
|
67
|
+
const _recursivecopy = require("../lib/recursive-copy");
|
|
68
|
+
const _swc = require("./swc");
|
|
69
|
+
const _installbindings = require("./swc/install-bindings");
|
|
70
|
+
const _routeregex = require("../shared/lib/router/utils/route-regex");
|
|
71
|
+
const _getfilesindir = require("../lib/get-files-in-dir");
|
|
72
|
+
const _swcplugins = require("../telemetry/events/swc-plugins");
|
|
73
|
+
const _apppaths = require("../shared/lib/router/utils/app-paths");
|
|
74
|
+
const _approuterheaders = require("../client/components/app-router-headers");
|
|
75
|
+
const _webpackbuild = require("./webpack-build");
|
|
76
|
+
const _buildcontext = require("./build-context");
|
|
77
|
+
const _normalizepathsep = require("../shared/lib/page-path/normalize-path-sep");
|
|
78
|
+
const _isapprouteroute = require("../lib/is-app-route-route");
|
|
79
|
+
const _createclientrouterfilter = require("../lib/create-client-router-filter");
|
|
80
|
+
const _findpagefile = require("../server/lib/find-page-file");
|
|
81
|
+
const _typecheck = require("./type-check");
|
|
82
|
+
const _generateinterceptionroutesrewrites = require("../lib/generate-interception-routes-rewrites");
|
|
83
|
+
const _builddataroute = require("../server/lib/router-utils/build-data-route");
|
|
84
|
+
const _collectbuildtraces = require("./collect-build-traces");
|
|
85
|
+
const _formatmanifest = require("./manifests/formatter/format-manifest");
|
|
86
|
+
const _builddiagnostics = require("../diagnostics/build-diagnostics");
|
|
87
|
+
const _appinfolog = require("../server/lib/app-info-log");
|
|
88
|
+
const _utils2 = require("../export/utils");
|
|
89
|
+
const _trace1 = require("../lib/memory/trace");
|
|
90
|
+
const _encryptionutilsserver = require("../server/app-render/encryption-utils-server");
|
|
91
|
+
const _uploadtrace = /*#__PURE__*/ _interop_require_default(require("../trace/upload-trace"));
|
|
92
|
+
const _ppr = require("../server/lib/experimental/ppr");
|
|
93
|
+
const _fallback = require("../lib/fallback");
|
|
94
|
+
const _renderingmode = require("./rendering-mode");
|
|
95
|
+
const _invarianterror = require("../shared/lib/invariant-error");
|
|
96
|
+
const _isbot = require("../shared/lib/router/utils/is-bot");
|
|
97
|
+
const _turbopackbuild = require("./turbopack-build");
|
|
98
|
+
const _utils3 = require("../shared/lib/turbopack/utils");
|
|
99
|
+
const _inlinestaticenv = require("../lib/inline-static-env");
|
|
100
|
+
const _staticenv = require("../lib/static-env");
|
|
101
|
+
const _durationtostring = require("./duration-to-string");
|
|
102
|
+
const _shared = require("../trace/shared");
|
|
103
|
+
const _errortelemetryutils = require("../lib/error-telemetry-utils");
|
|
104
|
+
const _afterproductioncompile = require("./after-production-compile");
|
|
105
|
+
const _previewkeyutils = require("./preview-key-utils");
|
|
106
|
+
const _buildcomplete = require("./adapter/build-complete");
|
|
107
|
+
const _sortableroutes = require("../shared/lib/router/utils/sortable-routes");
|
|
108
|
+
const _promises = require("fs/promises");
|
|
109
|
+
const _routetypesutils = require("../server/lib/router-utils/route-types-utils");
|
|
110
|
+
const _lockfile = require("./lockfile");
|
|
111
|
+
const _buildprefetchsegmentdataroute = require("../server/lib/router-utils/build-prefetch-segment-data-route");
|
|
112
|
+
const _generateroutesmanifest = require("./generate-routes-manifest");
|
|
113
|
+
const _validateapppaths = require("./validate-app-paths");
|
|
114
|
+
function _interop_require_default(obj) {
|
|
115
|
+
return obj && obj.__esModule ? obj : {
|
|
116
|
+
default: obj
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
120
|
+
if (typeof WeakMap !== "function") return null;
|
|
121
|
+
var cacheBabelInterop = new WeakMap();
|
|
122
|
+
var cacheNodeInterop = new WeakMap();
|
|
123
|
+
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
124
|
+
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
125
|
+
})(nodeInterop);
|
|
126
|
+
}
|
|
127
|
+
function _interop_require_wildcard(obj, nodeInterop) {
|
|
128
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
|
129
|
+
return obj;
|
|
130
|
+
}
|
|
131
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
132
|
+
return {
|
|
133
|
+
default: obj
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
137
|
+
if (cache && cache.has(obj)) {
|
|
138
|
+
return cache.get(obj);
|
|
139
|
+
}
|
|
140
|
+
var newObj = {
|
|
141
|
+
__proto__: null
|
|
142
|
+
};
|
|
143
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
144
|
+
for(var key in obj){
|
|
145
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
146
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
147
|
+
if (desc && (desc.get || desc.set)) {
|
|
148
|
+
Object.defineProperty(newObj, key, desc);
|
|
149
|
+
} else {
|
|
150
|
+
newObj[key] = obj[key];
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
newObj.default = obj;
|
|
155
|
+
if (cache) {
|
|
156
|
+
cache.set(obj, newObj);
|
|
157
|
+
}
|
|
158
|
+
return newObj;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* The headers that are allowed to be used when revalidating routes. Currently
|
|
162
|
+
* this includes both headers used by the pages and app routers.
|
|
163
|
+
*/ const ALLOWED_HEADERS = [
|
|
164
|
+
'host',
|
|
165
|
+
_constants.MATCHED_PATH_HEADER,
|
|
166
|
+
_constants.PRERENDER_REVALIDATE_HEADER,
|
|
167
|
+
_constants.PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER,
|
|
168
|
+
_constants.NEXT_CACHE_REVALIDATED_TAGS_HEADER,
|
|
169
|
+
_constants.NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER
|
|
170
|
+
];
|
|
171
|
+
function getCacheDir(distDir) {
|
|
172
|
+
const cacheDir = _path.default.join(distDir, 'cache');
|
|
173
|
+
if (_ciinfo.isCI && !_ciinfo.hasNextSupport) {
|
|
174
|
+
const hasCache = (0, _fs.existsSync)(cacheDir);
|
|
175
|
+
if (!hasCache) {
|
|
176
|
+
// Intentionally not piping to stderr which is what `Log.warn` does in case people fail in CI when
|
|
177
|
+
// stderr is detected.
|
|
178
|
+
console.log(`${_log.prefixes.warn} No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache`);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
return cacheDir;
|
|
182
|
+
}
|
|
183
|
+
async function writeFileUtf8(filePath, content) {
|
|
184
|
+
await _fs.promises.writeFile(filePath, content, 'utf-8');
|
|
185
|
+
}
|
|
186
|
+
function readFileUtf8(filePath) {
|
|
187
|
+
return _fs.promises.readFile(filePath, 'utf8');
|
|
188
|
+
}
|
|
189
|
+
async function writeManifest(filePath, manifest) {
|
|
190
|
+
await writeFileUtf8(filePath, (0, _formatmanifest.formatManifest)(manifest));
|
|
191
|
+
}
|
|
192
|
+
async function readManifest(filePath) {
|
|
193
|
+
return JSON.parse(await readFileUtf8(filePath));
|
|
194
|
+
}
|
|
195
|
+
async function writePrerenderManifest(distDir, manifest) {
|
|
196
|
+
await writeManifest(_path.default.join(distDir, _constants1.PRERENDER_MANIFEST), manifest);
|
|
197
|
+
}
|
|
198
|
+
async function writeClientSsgManifest(prerenderManifest, { buildId, distDir, locales }) {
|
|
199
|
+
const ssgPages = new Set([
|
|
200
|
+
...Object.entries(prerenderManifest.routes)// Filter out dynamic routes
|
|
201
|
+
.filter(([, { srcRoute }])=>srcRoute == null).map(([route])=>(0, _normalizelocalepath.normalizeLocalePath)(route, locales).pathname),
|
|
202
|
+
...Object.keys(prerenderManifest.dynamicRoutes)
|
|
203
|
+
].sort());
|
|
204
|
+
const clientSsgManifestContent = `self.__SSG_MANIFEST=${(0, _devalue.default)(ssgPages)};self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB()`;
|
|
205
|
+
await writeFileUtf8(_path.default.join(distDir, _constants1.CLIENT_STATIC_FILES_PATH, buildId, '_ssgManifest.js'), clientSsgManifestContent);
|
|
206
|
+
}
|
|
207
|
+
async function writeFunctionsConfigManifest(distDir, manifest) {
|
|
208
|
+
let sortedManifest = {
|
|
209
|
+
version: manifest.version,
|
|
210
|
+
functions: Object.fromEntries(Object.entries(manifest.functions).sort(([a], [b])=>a.localeCompare(b)))
|
|
211
|
+
};
|
|
212
|
+
await writeManifest(_path.default.join(distDir, _constants1.SERVER_DIRECTORY, _constants1.FUNCTIONS_CONFIG_MANIFEST), sortedManifest);
|
|
213
|
+
}
|
|
214
|
+
async function writeRequiredServerFilesManifest(distDir, requiredServerFiles) {
|
|
215
|
+
await writeManifest(_path.default.join(distDir, _constants1.SERVER_FILES_MANIFEST + '.json'), requiredServerFiles);
|
|
216
|
+
await writeFileUtf8(_path.default.join(distDir, _constants1.SERVER_FILES_MANIFEST + '.js'), `self.__SERVER_FILES_MANIFEST=${(0, _formatmanifest.formatManifest)(requiredServerFiles)}`);
|
|
217
|
+
}
|
|
218
|
+
async function writeImagesManifest(distDir, config) {
|
|
219
|
+
var _config_images, _config_images1;
|
|
220
|
+
const images = {
|
|
221
|
+
...config.images
|
|
222
|
+
};
|
|
223
|
+
const { deviceSizes, imageSizes } = images;
|
|
224
|
+
images.sizes = [
|
|
225
|
+
...deviceSizes,
|
|
226
|
+
...imageSizes
|
|
227
|
+
];
|
|
228
|
+
// By default, remotePatterns will allow no remote images ([])
|
|
229
|
+
images.remotePatterns = ((config == null ? void 0 : (_config_images = config.images) == null ? void 0 : _config_images.remotePatterns) || []).map((p)=>{
|
|
230
|
+
var _p_protocol;
|
|
231
|
+
return {
|
|
232
|
+
// Modifying the manifest should also modify matchRemotePattern()
|
|
233
|
+
protocol: (_p_protocol = p.protocol) == null ? void 0 : _p_protocol.replace(/:$/, ''),
|
|
234
|
+
hostname: (0, _picomatch.makeRe)(p.hostname).source,
|
|
235
|
+
port: p.port,
|
|
236
|
+
pathname: (0, _picomatch.makeRe)(p.pathname ?? '**', {
|
|
237
|
+
dot: true
|
|
238
|
+
}).source,
|
|
239
|
+
search: p.search
|
|
240
|
+
};
|
|
241
|
+
});
|
|
242
|
+
// By default, localPatterns will allow all local images (undefined)
|
|
243
|
+
if (config == null ? void 0 : (_config_images1 = config.images) == null ? void 0 : _config_images1.localPatterns) {
|
|
244
|
+
images.localPatterns = config.images.localPatterns.map((p)=>({
|
|
245
|
+
// Modifying the manifest should also modify matchLocalPattern()
|
|
246
|
+
pathname: (0, _picomatch.makeRe)(p.pathname ?? '**', {
|
|
247
|
+
dot: true
|
|
248
|
+
}).source,
|
|
249
|
+
search: p.search
|
|
250
|
+
}));
|
|
251
|
+
}
|
|
252
|
+
await writeManifest(_path.default.join(distDir, _constants1.IMAGES_MANIFEST), {
|
|
253
|
+
version: 1,
|
|
254
|
+
images
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
const STANDALONE_DIRECTORY = 'standalone';
|
|
258
|
+
async function writeStandaloneDirectory(nextBuildSpan, distDir, pageKeys, denormalizedAppPages, outputFileTracingRoot, requiredServerFiles, middlewareManifest, hasNodeMiddleware, hasInstrumentationHook, staticPages, loadedEnvFiles, appDir) {
|
|
259
|
+
await nextBuildSpan.traceChild('write-standalone-directory').traceAsyncFn(async ()=>{
|
|
260
|
+
await (0, _utils1.copyTracedFiles)(// requiredServerFiles.appDir Refers to the application directory, not App Router.
|
|
261
|
+
requiredServerFiles.appDir, distDir, pageKeys.pages, denormalizedAppPages, outputFileTracingRoot, requiredServerFiles.config, middlewareManifest, hasNodeMiddleware, hasInstrumentationHook, staticPages);
|
|
262
|
+
for (const file of [
|
|
263
|
+
...requiredServerFiles.files,
|
|
264
|
+
_path.default.join(requiredServerFiles.config.distDir, _constants1.SERVER_FILES_MANIFEST + '.json'),
|
|
265
|
+
...loadedEnvFiles.reduce((acc, envFile)=>{
|
|
266
|
+
if ([
|
|
267
|
+
'.env',
|
|
268
|
+
'.env.production'
|
|
269
|
+
].includes(envFile.path)) {
|
|
270
|
+
acc.push(envFile.path);
|
|
271
|
+
}
|
|
272
|
+
return acc;
|
|
273
|
+
}, [])
|
|
274
|
+
]){
|
|
275
|
+
// requiredServerFiles.appDir Refers to the application directory, not App Router.
|
|
276
|
+
const filePath = _path.default.join(requiredServerFiles.appDir, file);
|
|
277
|
+
const outputPath = _path.default.join(distDir, STANDALONE_DIRECTORY, _path.default.relative(outputFileTracingRoot, filePath));
|
|
278
|
+
await _fs.promises.mkdir(_path.default.dirname(outputPath), {
|
|
279
|
+
recursive: true
|
|
280
|
+
});
|
|
281
|
+
await _fs.promises.copyFile(filePath, outputPath);
|
|
282
|
+
}
|
|
283
|
+
if (hasNodeMiddleware) {
|
|
284
|
+
const middlewareOutput = _path.default.join(distDir, STANDALONE_DIRECTORY, _path.default.relative(outputFileTracingRoot, distDir), _constants1.SERVER_DIRECTORY, 'middleware.js');
|
|
285
|
+
await _fs.promises.mkdir(_path.default.dirname(middlewareOutput), {
|
|
286
|
+
recursive: true
|
|
287
|
+
});
|
|
288
|
+
await _fs.promises.copyFile(_path.default.join(distDir, _constants1.SERVER_DIRECTORY, 'middleware.js'), middlewareOutput);
|
|
289
|
+
}
|
|
290
|
+
const originalPagesDir = _path.default.join(distDir, _constants1.SERVER_DIRECTORY, 'pages');
|
|
291
|
+
if ((0, _fs.existsSync)(originalPagesDir)) {
|
|
292
|
+
await (0, _recursivecopy.recursiveCopy)(originalPagesDir, _path.default.join(distDir, STANDALONE_DIRECTORY, _path.default.relative(outputFileTracingRoot, distDir), _constants1.SERVER_DIRECTORY, 'pages'), {
|
|
293
|
+
overwrite: true
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
if (appDir) {
|
|
297
|
+
const originalServerApp = _path.default.join(distDir, _constants1.SERVER_DIRECTORY, 'app');
|
|
298
|
+
if ((0, _fs.existsSync)(originalServerApp)) {
|
|
299
|
+
await (0, _recursivecopy.recursiveCopy)(originalServerApp, _path.default.join(distDir, STANDALONE_DIRECTORY, _path.default.relative(outputFileTracingRoot, distDir), _constants1.SERVER_DIRECTORY, 'app'), {
|
|
300
|
+
overwrite: true
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
function getNumberOfWorkers(config) {
|
|
307
|
+
if (config.experimental.cpus && config.experimental.cpus !== _configshared.defaultConfig.experimental.cpus) {
|
|
308
|
+
return config.experimental.cpus;
|
|
309
|
+
}
|
|
310
|
+
if (config.experimental.memoryBasedWorkersCount) {
|
|
311
|
+
return Math.max(Math.min(config.experimental.cpus || 1, Math.floor(_os.default.freemem() / 1e9)), // enforce a minimum of 4 workers
|
|
312
|
+
4);
|
|
313
|
+
}
|
|
314
|
+
if (config.experimental.cpus) {
|
|
315
|
+
return config.experimental.cpus;
|
|
316
|
+
}
|
|
317
|
+
// Fall back to 4 workers if a count is not specified
|
|
318
|
+
return 4;
|
|
319
|
+
}
|
|
320
|
+
const staticWorkerPath = require.resolve('./worker');
|
|
321
|
+
const staticWorkerExposedMethods = [
|
|
322
|
+
'hasCustomGetInitialProps',
|
|
323
|
+
'isPageStatic',
|
|
324
|
+
'getDefinedNamedExports',
|
|
325
|
+
'exportPages'
|
|
326
|
+
];
|
|
327
|
+
function createStaticWorker(config, options) {
|
|
328
|
+
const { numberOfWorkers, debuggerPortOffset, progress } = options;
|
|
329
|
+
return new _worker.Worker(staticWorkerPath, {
|
|
330
|
+
logger: _log,
|
|
331
|
+
numWorkers: numberOfWorkers,
|
|
332
|
+
onActivity: ()=>{
|
|
333
|
+
progress == null ? void 0 : progress.run();
|
|
334
|
+
},
|
|
335
|
+
onActivityAbort: ()=>{
|
|
336
|
+
progress == null ? void 0 : progress.clear();
|
|
337
|
+
},
|
|
338
|
+
debuggerPortOffset,
|
|
339
|
+
enableSourceMaps: config.enablePrerenderSourceMaps,
|
|
340
|
+
// remove --max-old-space-size flag as it can cause memory issues.
|
|
341
|
+
isolatedMemory: true,
|
|
342
|
+
enableWorkerThreads: config.experimental.workerThreads,
|
|
343
|
+
exposedMethods: staticWorkerExposedMethods
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
async function writeFullyStaticExport(config, dir, enabledDirectories, configOutDir, nextBuildSpan, appDirOnly) {
|
|
347
|
+
const exportApp = require('../export').default;
|
|
348
|
+
await exportApp(dir, {
|
|
349
|
+
buildExport: false,
|
|
350
|
+
nextConfig: config,
|
|
351
|
+
enabledDirectories,
|
|
352
|
+
silent: true,
|
|
353
|
+
outdir: _path.default.join(dir, configOutDir),
|
|
354
|
+
numWorkers: getNumberOfWorkers(config),
|
|
355
|
+
appDirOnly
|
|
356
|
+
}, nextBuildSpan);
|
|
357
|
+
}
|
|
358
|
+
async function getBuildId(isGenerateMode, distDir, nextBuildSpan, config) {
|
|
359
|
+
if (isGenerateMode) {
|
|
360
|
+
return await _fs.promises.readFile(_path.default.join(distDir, 'BUILD_ID'), 'utf8');
|
|
361
|
+
}
|
|
362
|
+
return await nextBuildSpan.traceChild('generate-buildid').traceAsyncFn(()=>(0, _generatebuildid.generateBuildId)(config.generateBuildId, _indexcjs.nanoid));
|
|
363
|
+
}
|
|
364
|
+
async function build(dir, experimentalAnalyze = false, reactProductionProfiling = false, debugOutput = false, debugPrerender = false, noMangling = false, appDirOnly = false, bundler = _bundler.Bundler.Turbopack, experimentalBuildMode, traceUploadUrl, debugBuildAppPaths, debugBuildPagePaths) {
|
|
365
|
+
const isCompileMode = experimentalBuildMode === 'compile';
|
|
366
|
+
const isGenerateMode = experimentalBuildMode === 'generate';
|
|
367
|
+
_buildcontext.NextBuildContext.isCompileMode = isCompileMode;
|
|
368
|
+
_buildcontext.NextBuildContext.analyze = experimentalAnalyze;
|
|
369
|
+
const buildStartTime = Date.now();
|
|
370
|
+
let appType;
|
|
371
|
+
let loadedConfig;
|
|
372
|
+
let staticWorker;
|
|
373
|
+
try {
|
|
374
|
+
const nextBuildSpan = (0, _trace.trace)('next-build', undefined, {
|
|
375
|
+
buildMode: experimentalBuildMode,
|
|
376
|
+
version: "16.1.6"
|
|
377
|
+
});
|
|
378
|
+
_buildcontext.NextBuildContext.nextBuildSpan = nextBuildSpan;
|
|
379
|
+
_buildcontext.NextBuildContext.dir = dir;
|
|
380
|
+
_buildcontext.NextBuildContext.appDirOnly = appDirOnly;
|
|
381
|
+
_buildcontext.NextBuildContext.reactProductionProfiling = reactProductionProfiling;
|
|
382
|
+
_buildcontext.NextBuildContext.noMangling = noMangling;
|
|
383
|
+
_buildcontext.NextBuildContext.debugPrerender = debugPrerender;
|
|
384
|
+
await nextBuildSpan.traceAsyncFn(async ()=>{
|
|
385
|
+
var _config_experimental, _mappedPages_404, _mappedPages__error;
|
|
386
|
+
// attempt to load global env values so they are available in next.config.js
|
|
387
|
+
const { loadedEnvFiles } = nextBuildSpan.traceChild('load-dotenv').traceFn(()=>(0, _env.loadEnvConfig)(dir, false, _log));
|
|
388
|
+
_buildcontext.NextBuildContext.loadedEnvFiles = loadedEnvFiles;
|
|
389
|
+
const turborepoAccessTraceResult = new _turborepoaccesstrace.TurborepoAccessTraceResult();
|
|
390
|
+
const config = await nextBuildSpan.traceChild('load-next-config').traceAsyncFn(()=>(0, _turborepoaccesstrace.turborepoTraceAccess)(()=>(0, _config.default)(_constants1.PHASE_PRODUCTION_BUILD, dir, {
|
|
391
|
+
// Log for next.config loading process
|
|
392
|
+
silent: false,
|
|
393
|
+
reactProductionProfiling,
|
|
394
|
+
debugPrerender
|
|
395
|
+
}), turborepoAccessTraceResult));
|
|
396
|
+
loadedConfig = config;
|
|
397
|
+
// Reading the config can modify environment variables that influence the bundler selection.
|
|
398
|
+
bundler = (0, _bundler.finalizeBundlerFromConfig)(bundler);
|
|
399
|
+
nextBuildSpan.setAttribute('bundler', getBundlerForTelemetry(bundler));
|
|
400
|
+
// Install the native bindings early so we can have synchronous access later.
|
|
401
|
+
await (0, _installbindings.installBindings)((_config_experimental = config.experimental) == null ? void 0 : _config_experimental.useWasmBinary);
|
|
402
|
+
process.env.NEXT_DEPLOYMENT_ID = config.deploymentId || '';
|
|
403
|
+
_buildcontext.NextBuildContext.config = config;
|
|
404
|
+
let configOutDir = 'out';
|
|
405
|
+
if ((0, _utils2.hasCustomExportOutput)(config)) {
|
|
406
|
+
configOutDir = config.distDir;
|
|
407
|
+
config.distDir = '.next';
|
|
408
|
+
}
|
|
409
|
+
const distDir = _path.default.join(dir, config.distDir);
|
|
410
|
+
_buildcontext.NextBuildContext.distDir = distDir;
|
|
411
|
+
(0, _trace.setGlobal)('phase', _constants1.PHASE_PRODUCTION_BUILD);
|
|
412
|
+
(0, _trace.setGlobal)('distDir', distDir);
|
|
413
|
+
const buildId = await getBuildId(isGenerateMode, distDir, nextBuildSpan, config);
|
|
414
|
+
_buildcontext.NextBuildContext.buildId = buildId;
|
|
415
|
+
if (experimentalBuildMode === 'generate-env') {
|
|
416
|
+
if (bundler === _bundler.Bundler.Turbopack) {
|
|
417
|
+
_log.warn('generate-env is not needed with turbopack');
|
|
418
|
+
process.exit(0);
|
|
419
|
+
}
|
|
420
|
+
_log.info('Inlining static env ...');
|
|
421
|
+
await nextBuildSpan.traceChild('inline-static-env').traceAsyncFn(async ()=>{
|
|
422
|
+
await (0, _inlinestaticenv.inlineStaticEnv)({
|
|
423
|
+
distDir,
|
|
424
|
+
config
|
|
425
|
+
});
|
|
426
|
+
});
|
|
427
|
+
_log.info('Complete');
|
|
428
|
+
await (0, _trace.flushAllTraces)();
|
|
429
|
+
(0, _swc.teardownTraceSubscriber)();
|
|
430
|
+
process.exit(0);
|
|
431
|
+
}
|
|
432
|
+
// when using compile mode static env isn't inlined so we
|
|
433
|
+
// need to populate in normal runtime env
|
|
434
|
+
if (isCompileMode || isGenerateMode) {
|
|
435
|
+
(0, _staticenv.populateStaticEnv)(config, config.deploymentId);
|
|
436
|
+
}
|
|
437
|
+
const customRoutes = await nextBuildSpan.traceChild('load-custom-routes').traceAsyncFn(()=>(0, _loadcustomroutes.default)(config));
|
|
438
|
+
const { headers, rewrites, redirects } = customRoutes;
|
|
439
|
+
const combinedRewrites = [
|
|
440
|
+
...rewrites.beforeFiles,
|
|
441
|
+
...rewrites.afterFiles,
|
|
442
|
+
...rewrites.fallback
|
|
443
|
+
];
|
|
444
|
+
const hasRewrites = combinedRewrites.length > 0;
|
|
445
|
+
_buildcontext.NextBuildContext.hasRewrites = hasRewrites;
|
|
446
|
+
_buildcontext.NextBuildContext.originalRewrites = config._originalRewrites;
|
|
447
|
+
_buildcontext.NextBuildContext.originalRedirects = config._originalRedirects;
|
|
448
|
+
const distDirCreated = await nextBuildSpan.traceChild('create-dist-dir').traceAsyncFn(async ()=>{
|
|
449
|
+
try {
|
|
450
|
+
await _fs.promises.mkdir(distDir, {
|
|
451
|
+
recursive: true
|
|
452
|
+
});
|
|
453
|
+
return true;
|
|
454
|
+
} catch (err) {
|
|
455
|
+
if ((0, _iserror.default)(err) && err.code === 'EPERM') {
|
|
456
|
+
return false;
|
|
457
|
+
}
|
|
458
|
+
throw err;
|
|
459
|
+
}
|
|
460
|
+
});
|
|
461
|
+
if (!distDirCreated || !await (0, _iswriteable.isWriteable)(distDir)) {
|
|
462
|
+
throw Object.defineProperty(new Error('> Build directory is not writeable. https://nextjs.org/docs/messages/build-dir-not-writeable'), "__NEXT_ERROR_CODE", {
|
|
463
|
+
value: "E202",
|
|
464
|
+
enumerable: false,
|
|
465
|
+
configurable: true
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
if (config.experimental.lockDistDir) {
|
|
469
|
+
// This leaks the lock file descriptor. That's okay, it'll be cleaned up by the OS upon
|
|
470
|
+
// process exit.
|
|
471
|
+
await _lockfile.Lockfile.acquireWithRetriesOrExit(_path.default.join(distDir, 'lock'), 'next build');
|
|
472
|
+
}
|
|
473
|
+
if (config.cleanDistDir && !isGenerateMode) {
|
|
474
|
+
await nextBuildSpan.traceChild('clean').traceAsyncFn(()=>(0, _recursivedelete.recursiveDeleteSyncWithAsyncRetries)(distDir, /^(cache|dev|lock)/));
|
|
475
|
+
}
|
|
476
|
+
const cacheDir = getCacheDir(distDir);
|
|
477
|
+
const telemetry = new _storage.Telemetry({
|
|
478
|
+
distDir
|
|
479
|
+
});
|
|
480
|
+
(0, _trace.setGlobal)('telemetry', telemetry);
|
|
481
|
+
const publicDir = _path.default.join(dir, 'public');
|
|
482
|
+
const { pagesDir, appDir } = (0, _findpagesdir.findPagesDir)(dir);
|
|
483
|
+
if (pagesDir && appDir) {
|
|
484
|
+
appType = 'hybrid';
|
|
485
|
+
} else if (pagesDir) {
|
|
486
|
+
appType = 'pages';
|
|
487
|
+
} else if (appDir) {
|
|
488
|
+
appType = 'app';
|
|
489
|
+
}
|
|
490
|
+
if (!appDirOnly && !pagesDir) {
|
|
491
|
+
appDirOnly = true;
|
|
492
|
+
}
|
|
493
|
+
_buildcontext.NextBuildContext.pagesDir = pagesDir;
|
|
494
|
+
_buildcontext.NextBuildContext.appDir = appDir;
|
|
495
|
+
const enabledDirectories = {
|
|
496
|
+
app: typeof appDir === 'string',
|
|
497
|
+
pages: typeof pagesDir === 'string'
|
|
498
|
+
};
|
|
499
|
+
// Generate a random encryption key for this build.
|
|
500
|
+
// This key is used to encrypt cross boundary values and can be used to generate hashes.
|
|
501
|
+
const encryptionKey = await (0, _encryptionutilsserver.generateEncryptionKeyBase64)({
|
|
502
|
+
isBuild: true,
|
|
503
|
+
distDir
|
|
504
|
+
});
|
|
505
|
+
_buildcontext.NextBuildContext.encryptionKey = encryptionKey;
|
|
506
|
+
const isSrcDir = _path.default.relative(dir, pagesDir || appDir || '').startsWith('src');
|
|
507
|
+
const hasPublicDir = (0, _fs.existsSync)(publicDir);
|
|
508
|
+
telemetry.record((0, _events.eventCliSession)(config, {
|
|
509
|
+
webpackVersion: 5,
|
|
510
|
+
cliCommand: 'build',
|
|
511
|
+
isSrcDir,
|
|
512
|
+
hasNowJson: !!await (0, _findup.default)('now.json', {
|
|
513
|
+
cwd: dir
|
|
514
|
+
}),
|
|
515
|
+
isCustomServer: null,
|
|
516
|
+
turboFlag: false,
|
|
517
|
+
pagesDir: !!pagesDir,
|
|
518
|
+
appDir: !!appDir
|
|
519
|
+
}));
|
|
520
|
+
(0, _events.eventNextPlugins)(_path.default.resolve(dir)).then((events)=>telemetry.record(events));
|
|
521
|
+
(0, _swcplugins.eventSwcPlugins)(_path.default.resolve(dir), config).then((events)=>telemetry.record(events));
|
|
522
|
+
// Always log next version first then start rest jobs
|
|
523
|
+
const { envInfo, experimentalFeatures, cacheComponents } = await (0, _appinfolog.getStartServerInfo)({
|
|
524
|
+
dir,
|
|
525
|
+
dev: false,
|
|
526
|
+
debugPrerender
|
|
527
|
+
});
|
|
528
|
+
(0, _appinfolog.logStartInfo)({
|
|
529
|
+
networkUrl: null,
|
|
530
|
+
appUrl: null,
|
|
531
|
+
envInfo,
|
|
532
|
+
experimentalFeatures,
|
|
533
|
+
logBundler: true,
|
|
534
|
+
cacheComponents
|
|
535
|
+
});
|
|
536
|
+
const typeCheckingOptions = {
|
|
537
|
+
dir,
|
|
538
|
+
appDir,
|
|
539
|
+
pagesDir,
|
|
540
|
+
telemetry,
|
|
541
|
+
nextBuildSpan,
|
|
542
|
+
config,
|
|
543
|
+
cacheDir,
|
|
544
|
+
debugBuildPaths: debugBuildAppPaths !== undefined || debugBuildPagePaths !== undefined ? {
|
|
545
|
+
app: debugBuildAppPaths,
|
|
546
|
+
pages: debugBuildPagePaths
|
|
547
|
+
} : undefined
|
|
548
|
+
};
|
|
549
|
+
if (appDir && 'exportPathMap' in config) {
|
|
550
|
+
const errorMessage = 'The "exportPathMap" configuration cannot be used with the "app" directory. Please use generateStaticParams() instead.';
|
|
551
|
+
_log.error(errorMessage);
|
|
552
|
+
await telemetry.flush();
|
|
553
|
+
throw Object.defineProperty(new Error(errorMessage), "__NEXT_ERROR_CODE", {
|
|
554
|
+
value: "E394",
|
|
555
|
+
enumerable: false,
|
|
556
|
+
configurable: true
|
|
557
|
+
});
|
|
558
|
+
}
|
|
559
|
+
const validFileMatcher = (0, _findpagefile.createValidFileMatcher)(config.pageExtensions, appDir);
|
|
560
|
+
const providedPagePaths = JSON.parse(process.env.NEXT_PRIVATE_PAGE_PATHS || '[]');
|
|
561
|
+
let pagesPaths = Boolean(process.env.NEXT_PRIVATE_PAGE_PATHS) ? providedPagePaths : !appDirOnly && pagesDir ? await nextBuildSpan.traceChild('collect-pages').traceAsyncFn(()=>(0, _entries.collectPagesFiles)(pagesDir, validFileMatcher)) : [];
|
|
562
|
+
// Apply debug build paths filter if specified
|
|
563
|
+
// If debugBuildPagePaths is defined (even if empty), only build specified pages
|
|
564
|
+
if (debugBuildPagePaths !== undefined) {
|
|
565
|
+
if (debugBuildPagePaths.length > 0) {
|
|
566
|
+
const debugPathsSet = new Set(debugBuildPagePaths);
|
|
567
|
+
pagesPaths = pagesPaths.filter((pagePath)=>debugPathsSet.has(pagePath));
|
|
568
|
+
} else {
|
|
569
|
+
// Empty array means build no pages
|
|
570
|
+
pagesPaths = [];
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
const middlewareDetectionRegExp = new RegExp(`^${_constants.MIDDLEWARE_FILENAME}\\.(?:${config.pageExtensions.join('|')})$`);
|
|
574
|
+
const proxyDetectionRegExp = new RegExp(`^${_constants.PROXY_FILENAME}\\.(?:${config.pageExtensions.join('|')})$`);
|
|
575
|
+
const instrumentationHookDetectionRegExp = new RegExp(`^${_constants.INSTRUMENTATION_HOOK_FILENAME}\\.(?:${config.pageExtensions.join('|')})$`);
|
|
576
|
+
const rootDir = _path.default.join(pagesDir || appDir, '..');
|
|
577
|
+
const includes = [
|
|
578
|
+
middlewareDetectionRegExp,
|
|
579
|
+
proxyDetectionRegExp,
|
|
580
|
+
instrumentationHookDetectionRegExp
|
|
581
|
+
];
|
|
582
|
+
const rootPaths = Array.from(await (0, _getfilesindir.getFilesInDir)(rootDir)).filter((file)=>includes.some((include)=>include.test(file))).sort((0, _sortbypageexts.sortByPageExts)(config.pageExtensions)).map((file)=>_path.default.join(rootDir, file).replace(dir, ''));
|
|
583
|
+
let instrumentationHookFilePath;
|
|
584
|
+
let proxyFilePath;
|
|
585
|
+
let middlewareFilePath;
|
|
586
|
+
for (const rootPath of rootPaths){
|
|
587
|
+
const { name: fileBaseName, dir: fileDir } = _path.default.parse(rootPath);
|
|
588
|
+
const normalizedFileDir = (0, _normalizepathsep.normalizePathSep)(fileDir);
|
|
589
|
+
const isAtConventionLevel = normalizedFileDir === '/' || normalizedFileDir === '/src';
|
|
590
|
+
if (isAtConventionLevel && fileBaseName === _constants.MIDDLEWARE_FILENAME) {
|
|
591
|
+
middlewareFilePath = rootPath;
|
|
592
|
+
}
|
|
593
|
+
if (isAtConventionLevel && fileBaseName === _constants.PROXY_FILENAME) {
|
|
594
|
+
proxyFilePath = rootPath;
|
|
595
|
+
}
|
|
596
|
+
if (isAtConventionLevel && fileBaseName === _constants.INSTRUMENTATION_HOOK_FILENAME) {
|
|
597
|
+
instrumentationHookFilePath = rootPath;
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
if (middlewareFilePath) {
|
|
601
|
+
if (proxyFilePath) {
|
|
602
|
+
const cwd = process.cwd();
|
|
603
|
+
const absoluteProxyPath = _path.default.join(rootDir, proxyFilePath);
|
|
604
|
+
const absoluteMiddlewarePath = _path.default.join(rootDir, middlewareFilePath);
|
|
605
|
+
throw Object.defineProperty(new Error(`Both ${_constants.MIDDLEWARE_FILENAME} file "./${_path.default.relative(cwd, absoluteMiddlewarePath)}" and ${_constants.PROXY_FILENAME} file "./${_path.default.relative(cwd, absoluteProxyPath)}" are detected. Please use "./${_path.default.relative(cwd, absoluteProxyPath)}" only. Learn more: https://nextjs.org/docs/messages/middleware-to-proxy`), "__NEXT_ERROR_CODE", {
|
|
606
|
+
value: "E900",
|
|
607
|
+
enumerable: false,
|
|
608
|
+
configurable: true
|
|
609
|
+
});
|
|
610
|
+
}
|
|
611
|
+
_log.warnOnce(`The "${_constants.MIDDLEWARE_FILENAME}" file convention is deprecated. Please use "${_constants.PROXY_FILENAME}" instead. Learn more: https://nextjs.org/docs/messages/middleware-to-proxy`);
|
|
612
|
+
}
|
|
613
|
+
const hasInstrumentationHook = Boolean(instrumentationHookFilePath);
|
|
614
|
+
const hasMiddlewareFile = Boolean(middlewareFilePath);
|
|
615
|
+
const hasProxyFile = Boolean(proxyFilePath);
|
|
616
|
+
_buildcontext.NextBuildContext.hasInstrumentationHook = hasInstrumentationHook;
|
|
617
|
+
const previewProps = await (0, _previewkeyutils.generatePreviewKeys)({
|
|
618
|
+
isBuild: true,
|
|
619
|
+
distDir
|
|
620
|
+
});
|
|
621
|
+
_buildcontext.NextBuildContext.previewProps = previewProps;
|
|
622
|
+
const mappedPages = await nextBuildSpan.traceChild('create-pages-mapping').traceAsyncFn(()=>(0, _entries.createPagesMapping)({
|
|
623
|
+
isDev: false,
|
|
624
|
+
pageExtensions: config.pageExtensions,
|
|
625
|
+
pagesType: _pagetypes.PAGE_TYPES.PAGES,
|
|
626
|
+
pagePaths: pagesPaths,
|
|
627
|
+
pagesDir,
|
|
628
|
+
appDir,
|
|
629
|
+
appDirOnly
|
|
630
|
+
}));
|
|
631
|
+
_buildcontext.NextBuildContext.mappedPages = mappedPages;
|
|
632
|
+
// Update appDirOnly if no user pages routes are found
|
|
633
|
+
if (Object.keys(mappedPages).length === 0 && !appDirOnly) {
|
|
634
|
+
_buildcontext.NextBuildContext.appDirOnly = appDirOnly = true;
|
|
635
|
+
}
|
|
636
|
+
let mappedAppPages;
|
|
637
|
+
let mappedAppLayouts;
|
|
638
|
+
let denormalizedAppPages;
|
|
639
|
+
if (appDir) {
|
|
640
|
+
const providedAppPaths = JSON.parse(process.env.NEXT_PRIVATE_APP_PATHS || '[]');
|
|
641
|
+
let appPaths;
|
|
642
|
+
let layoutPaths;
|
|
643
|
+
if (Boolean(process.env.NEXT_PRIVATE_APP_PATHS)) {
|
|
644
|
+
// used for testing
|
|
645
|
+
appPaths = providedAppPaths;
|
|
646
|
+
layoutPaths = [];
|
|
647
|
+
} else {
|
|
648
|
+
// Collect app pages, layouts, and default files in a single directory traversal
|
|
649
|
+
const result = await nextBuildSpan.traceChild('collect-app-files').traceAsyncFn(()=>(0, _entries.collectAppFiles)(appDir, validFileMatcher));
|
|
650
|
+
appPaths = result.appPaths;
|
|
651
|
+
layoutPaths = result.layoutPaths;
|
|
652
|
+
// Apply debug build paths filter if specified
|
|
653
|
+
// If debugBuildAppPaths is defined (even if empty), only build specified app paths
|
|
654
|
+
if (debugBuildAppPaths !== undefined) {
|
|
655
|
+
if (debugBuildAppPaths.length > 0) {
|
|
656
|
+
const debugPathsSet = new Set(debugBuildAppPaths);
|
|
657
|
+
appPaths = appPaths.filter((appPath)=>debugPathsSet.has(appPath));
|
|
658
|
+
} else {
|
|
659
|
+
// Empty array means build no app paths
|
|
660
|
+
appPaths = [];
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
// Note: defaultPaths are not used in the build process, only for slot detection in generating route types
|
|
664
|
+
}
|
|
665
|
+
mappedAppPages = await nextBuildSpan.traceChild('create-app-mapping').traceAsyncFn(()=>(0, _entries.createPagesMapping)({
|
|
666
|
+
pagePaths: appPaths,
|
|
667
|
+
isDev: false,
|
|
668
|
+
pagesType: _pagetypes.PAGE_TYPES.APP,
|
|
669
|
+
pageExtensions: config.pageExtensions,
|
|
670
|
+
pagesDir,
|
|
671
|
+
appDir,
|
|
672
|
+
appDirOnly
|
|
673
|
+
}));
|
|
674
|
+
mappedAppLayouts = await nextBuildSpan.traceChild('create-app-layouts').traceAsyncFn(()=>(0, _entries.createPagesMapping)({
|
|
675
|
+
pagePaths: layoutPaths,
|
|
676
|
+
isDev: false,
|
|
677
|
+
pagesType: _pagetypes.PAGE_TYPES.APP,
|
|
678
|
+
pageExtensions: config.pageExtensions,
|
|
679
|
+
pagesDir,
|
|
680
|
+
appDir,
|
|
681
|
+
appDirOnly
|
|
682
|
+
}));
|
|
683
|
+
_buildcontext.NextBuildContext.mappedAppPages = mappedAppPages;
|
|
684
|
+
}
|
|
685
|
+
const mappedRootPaths = await (0, _entries.createPagesMapping)({
|
|
686
|
+
isDev: false,
|
|
687
|
+
pageExtensions: config.pageExtensions,
|
|
688
|
+
pagePaths: rootPaths,
|
|
689
|
+
pagesType: _pagetypes.PAGE_TYPES.ROOT,
|
|
690
|
+
pagesDir: pagesDir,
|
|
691
|
+
appDir,
|
|
692
|
+
appDirOnly
|
|
693
|
+
});
|
|
694
|
+
_buildcontext.NextBuildContext.mappedRootPaths = mappedRootPaths;
|
|
695
|
+
const pagesPageKeys = Object.keys(mappedPages);
|
|
696
|
+
const conflictingAppPagePaths = [];
|
|
697
|
+
const appPageKeys = new Set();
|
|
698
|
+
if (mappedAppPages) {
|
|
699
|
+
denormalizedAppPages = Object.keys(mappedAppPages);
|
|
700
|
+
for (const appKey of denormalizedAppPages){
|
|
701
|
+
const normalizedAppPageKey = (0, _apppaths.normalizeAppPath)(appKey);
|
|
702
|
+
const pagePath = mappedPages[normalizedAppPageKey];
|
|
703
|
+
if (pagePath) {
|
|
704
|
+
const appPath = mappedAppPages[appKey];
|
|
705
|
+
conflictingAppPagePaths.push([
|
|
706
|
+
pagePath.replace(/^private-next-pages/, 'pages'),
|
|
707
|
+
appPath.replace(/^private-next-app-dir/, 'app')
|
|
708
|
+
]);
|
|
709
|
+
}
|
|
710
|
+
appPageKeys.add(normalizedAppPageKey);
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
const appPaths = Array.from(appPageKeys);
|
|
714
|
+
// Validate that the app paths are valid. This is currently duplicating
|
|
715
|
+
// the logic from packages/next/src/shared/lib/router/utils/sorted-routes.ts
|
|
716
|
+
// but is instead specifically focused on code that can be shared
|
|
717
|
+
// eventually with the development code.
|
|
718
|
+
(0, _validateapppaths.validateAppPaths)(appPaths);
|
|
719
|
+
// Interception routes are modelled as beforeFiles rewrites
|
|
720
|
+
rewrites.beforeFiles.push(...(0, _generateinterceptionroutesrewrites.generateInterceptionRoutesRewrites)(appPaths, config.basePath));
|
|
721
|
+
_buildcontext.NextBuildContext.rewrites = rewrites;
|
|
722
|
+
const totalAppPagesCount = appPaths.length;
|
|
723
|
+
const pageKeys = {
|
|
724
|
+
pages: pagesPageKeys,
|
|
725
|
+
app: appPaths.length > 0 ? appPaths : undefined
|
|
726
|
+
};
|
|
727
|
+
await nextBuildSpan.traceChild('generate-route-types').traceAsyncFn(async ()=>{
|
|
728
|
+
const routeTypesFilePath = _path.default.join(distDir, 'types', 'routes.d.ts');
|
|
729
|
+
const validatorFilePath = _path.default.join(distDir, 'types', 'validator.ts');
|
|
730
|
+
await (0, _promises.mkdir)(_path.default.dirname(routeTypesFilePath), {
|
|
731
|
+
recursive: true
|
|
732
|
+
});
|
|
733
|
+
let appRoutes = [];
|
|
734
|
+
let appRouteHandlers = [];
|
|
735
|
+
let layoutRoutes = [];
|
|
736
|
+
let slots = [];
|
|
737
|
+
const { pageRoutes, pageApiRoutes } = (0, _entries.processPageRoutes)(mappedPages, dir, isSrcDir);
|
|
738
|
+
// Build app routes
|
|
739
|
+
if (appDir && mappedAppPages) {
|
|
740
|
+
// Extract slots from both pages and default files
|
|
741
|
+
const slotsFromPages = (0, _entries.extractSlotsFromAppRoutes)(mappedAppPages);
|
|
742
|
+
let slotsFromDefaults = [];
|
|
743
|
+
// Collect and map default files for slot extraction
|
|
744
|
+
const { defaultPaths } = await nextBuildSpan.traceChild('collect-default-files').traceAsyncFn(()=>(0, _entries.collectAppFiles)(appDir, validFileMatcher));
|
|
745
|
+
if (defaultPaths.length > 0) {
|
|
746
|
+
const mappedDefaultFiles = await nextBuildSpan.traceChild('create-default-mapping').traceAsyncFn(()=>(0, _entries.createPagesMapping)({
|
|
747
|
+
pagePaths: defaultPaths,
|
|
748
|
+
isDev: false,
|
|
749
|
+
pagesType: _pagetypes.PAGE_TYPES.APP,
|
|
750
|
+
pageExtensions: config.pageExtensions,
|
|
751
|
+
pagesDir,
|
|
752
|
+
appDir,
|
|
753
|
+
appDirOnly
|
|
754
|
+
}));
|
|
755
|
+
slotsFromDefaults = (0, _entries.extractSlotsFromDefaultFiles)(mappedDefaultFiles);
|
|
756
|
+
}
|
|
757
|
+
// Combine slots and deduplicate using Set
|
|
758
|
+
slots = (0, _entries.combineSlots)(slotsFromPages, slotsFromDefaults);
|
|
759
|
+
const result = (0, _entries.processAppRoutes)(mappedAppPages, validFileMatcher, dir, isSrcDir);
|
|
760
|
+
appRoutes = result.appRoutes;
|
|
761
|
+
appRouteHandlers = result.appRouteHandlers;
|
|
762
|
+
}
|
|
763
|
+
// Build app layouts
|
|
764
|
+
if (appDir && mappedAppLayouts) {
|
|
765
|
+
layoutRoutes = (0, _entries.processLayoutRoutes)(mappedAppLayouts, dir, isSrcDir);
|
|
766
|
+
}
|
|
767
|
+
const routeTypesManifest = await (0, _routetypesutils.createRouteTypesManifest)({
|
|
768
|
+
dir,
|
|
769
|
+
pageRoutes,
|
|
770
|
+
appRoutes,
|
|
771
|
+
appRouteHandlers,
|
|
772
|
+
pageApiRoutes,
|
|
773
|
+
layoutRoutes,
|
|
774
|
+
slots,
|
|
775
|
+
redirects: config.redirects,
|
|
776
|
+
rewrites: config.rewrites,
|
|
777
|
+
validatorFilePath
|
|
778
|
+
});
|
|
779
|
+
await (0, _routetypesutils.writeRouteTypesManifest)(routeTypesManifest, routeTypesFilePath, config);
|
|
780
|
+
await (0, _routetypesutils.writeValidatorFile)(routeTypesManifest, validatorFilePath);
|
|
781
|
+
});
|
|
782
|
+
// Turbopack already handles conflicting app and page routes.
|
|
783
|
+
if (bundler !== _bundler.Bundler.Turbopack) {
|
|
784
|
+
const numConflictingAppPaths = conflictingAppPagePaths.length;
|
|
785
|
+
if (mappedAppPages && numConflictingAppPaths > 0) {
|
|
786
|
+
const errorMessage = `Conflicting app and page file${numConflictingAppPaths === 1 ? ' was' : 's were'} found, please remove the conflicting files to continue:`;
|
|
787
|
+
_log.error(errorMessage);
|
|
788
|
+
for (const [pagePath, appPath] of conflictingAppPagePaths){
|
|
789
|
+
_log.error(` "${pagePath}" - "${appPath}"`);
|
|
790
|
+
}
|
|
791
|
+
await telemetry.flush();
|
|
792
|
+
throw Object.defineProperty(new Error(errorMessage), "__NEXT_ERROR_CODE", {
|
|
793
|
+
value: "E394",
|
|
794
|
+
enumerable: false,
|
|
795
|
+
configurable: true
|
|
796
|
+
});
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
const conflictingPublicFiles = [];
|
|
800
|
+
const hasPages404 = (_mappedPages_404 = mappedPages['/404']) == null ? void 0 : _mappedPages_404.startsWith(_constants.PAGES_DIR_ALIAS);
|
|
801
|
+
const hasApp404 = !!(mappedAppPages == null ? void 0 : mappedAppPages[_entryconstants.UNDERSCORE_NOT_FOUND_ROUTE_ENTRY]);
|
|
802
|
+
const hasAppGlobalError = !!(mappedAppPages == null ? void 0 : mappedAppPages[_entryconstants.UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY]);
|
|
803
|
+
const hasCustomErrorPage = (_mappedPages__error = mappedPages['/_error']) == null ? void 0 : _mappedPages__error.startsWith(_constants.PAGES_DIR_ALIAS);
|
|
804
|
+
// Check if there are any user pages (non-reserved pages) in the pages router
|
|
805
|
+
const hasUserPagesRoutes = Object.keys(mappedPages).some((route)=>!(0, _utils1.isReservedPage)(route));
|
|
806
|
+
if (hasPublicDir) {
|
|
807
|
+
const hasPublicUnderScoreNextDir = (0, _fs.existsSync)(_path.default.join(publicDir, '_next'));
|
|
808
|
+
if (hasPublicUnderScoreNextDir) {
|
|
809
|
+
throw Object.defineProperty(new Error(_constants.PUBLIC_DIR_MIDDLEWARE_CONFLICT), "__NEXT_ERROR_CODE", {
|
|
810
|
+
value: "E394",
|
|
811
|
+
enumerable: false,
|
|
812
|
+
configurable: true
|
|
813
|
+
});
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
await nextBuildSpan.traceChild('public-dir-conflict-check').traceAsyncFn(async ()=>{
|
|
817
|
+
// Check if pages conflict with files in `public`
|
|
818
|
+
// Only a page of public file can be served, not both.
|
|
819
|
+
for(const page in mappedPages){
|
|
820
|
+
const hasPublicPageFile = await (0, _fileexists.fileExists)(_path.default.join(publicDir, page === '/' ? '/index' : page), _fileexists.FileType.File);
|
|
821
|
+
if (hasPublicPageFile) {
|
|
822
|
+
conflictingPublicFiles.push(page);
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
const numConflicting = conflictingPublicFiles.length;
|
|
826
|
+
if (numConflicting) {
|
|
827
|
+
throw Object.defineProperty(new Error(`Conflicting public and page file${numConflicting === 1 ? ' was' : 's were'} found. https://nextjs.org/docs/messages/conflicting-public-file-page\n${conflictingPublicFiles.join('\n')}`), "__NEXT_ERROR_CODE", {
|
|
828
|
+
value: "E270",
|
|
829
|
+
enumerable: false,
|
|
830
|
+
configurable: true
|
|
831
|
+
});
|
|
832
|
+
}
|
|
833
|
+
});
|
|
834
|
+
const nestedReservedPages = pageKeys.pages.filter((page)=>{
|
|
835
|
+
return page.match(/\/(_app|_document|_error)$/) && _path.default.dirname(page) !== '/';
|
|
836
|
+
});
|
|
837
|
+
if (nestedReservedPages.length) {
|
|
838
|
+
_log.warn(`The following reserved Next.js pages were detected not directly under the pages directory:\n` + nestedReservedPages.join('\n') + `\nSee more info here: https://nextjs.org/docs/messages/nested-reserved-page\n`);
|
|
839
|
+
}
|
|
840
|
+
const restrictedRedirectPaths = [
|
|
841
|
+
'/_next'
|
|
842
|
+
].map((p)=>config.basePath ? `${config.basePath}${p}` : p);
|
|
843
|
+
const isAppCacheComponentsEnabled = Boolean(config.cacheComponents);
|
|
844
|
+
const isAuthInterruptsEnabled = Boolean(config.experimental.authInterrupts);
|
|
845
|
+
const isAppPPREnabled = (0, _ppr.checkIsAppPPREnabled)(config.experimental.ppr);
|
|
846
|
+
const routesManifestPath = _path.default.join(distDir, _constants1.ROUTES_MANIFEST);
|
|
847
|
+
// Generate the routes manifest using the extracted helper
|
|
848
|
+
const { routesManifest, dynamicRoutes, sourcePages } = nextBuildSpan.traceChild('generate-routes-manifest').traceFn(()=>(0, _generateroutesmanifest.generateRoutesManifest)({
|
|
849
|
+
appType,
|
|
850
|
+
pageKeys,
|
|
851
|
+
config,
|
|
852
|
+
redirects,
|
|
853
|
+
headers,
|
|
854
|
+
rewrites,
|
|
855
|
+
restrictedRedirectPaths,
|
|
856
|
+
isAppPPREnabled
|
|
857
|
+
}));
|
|
858
|
+
// For pages directory, we run type checking after route collection but before build.
|
|
859
|
+
if (!appDir && !isCompileMode) {
|
|
860
|
+
await (0, _typecheck.startTypeChecking)(typeCheckingOptions);
|
|
861
|
+
}
|
|
862
|
+
let clientRouterFilters;
|
|
863
|
+
if (config.experimental.clientRouterFilter) {
|
|
864
|
+
const nonInternalRedirects = (config._originalRedirects || []).filter((r)=>!r.internal);
|
|
865
|
+
clientRouterFilters = (0, _createclientrouterfilter.createClientRouterFilter)([
|
|
866
|
+
...appPaths
|
|
867
|
+
], config.experimental.clientRouterFilterRedirects ? nonInternalRedirects : [], config.experimental.clientRouterFilterAllowedRate);
|
|
868
|
+
_buildcontext.NextBuildContext.clientRouterFilters = clientRouterFilters;
|
|
869
|
+
}
|
|
870
|
+
// Ensure commonjs handling is used for files in the distDir (generally .next)
|
|
871
|
+
// Files outside of the distDir can be "type": "module"
|
|
872
|
+
await writeFileUtf8(_path.default.join(distDir, 'package.json'), '{"type": "commonjs"}');
|
|
873
|
+
// These are written to distDir, so they need to come after creating and cleaning distDr.
|
|
874
|
+
await (0, _builddiagnostics.recordFrameworkVersion)("16.1.6");
|
|
875
|
+
await (0, _builddiagnostics.updateBuildDiagnostics)({
|
|
876
|
+
buildStage: 'start'
|
|
877
|
+
});
|
|
878
|
+
const outputFileTracingRoot = config.outputFileTracingRoot || dir;
|
|
879
|
+
const pagesManifestPath = _path.default.join(distDir, _constants1.SERVER_DIRECTORY, _constants1.PAGES_MANIFEST);
|
|
880
|
+
let buildTraceContext;
|
|
881
|
+
let buildTracesPromise = undefined;
|
|
882
|
+
// If there's has a custom webpack config and disable the build worker.
|
|
883
|
+
// Otherwise respect the option if it's set.
|
|
884
|
+
const useBuildWorker = config.experimental.webpackBuildWorker || config.experimental.webpackBuildWorker === undefined && !config.webpack;
|
|
885
|
+
const runServerAndEdgeInParallel = config.experimental.parallelServerCompiles;
|
|
886
|
+
const collectServerBuildTracesInParallel = config.experimental.parallelServerBuildTraces || config.experimental.parallelServerBuildTraces === undefined && isCompileMode;
|
|
887
|
+
nextBuildSpan.setAttribute('has-custom-webpack-config', String(!!config.webpack));
|
|
888
|
+
nextBuildSpan.setAttribute('use-build-worker', String(useBuildWorker));
|
|
889
|
+
if (!useBuildWorker && (runServerAndEdgeInParallel || collectServerBuildTracesInParallel)) {
|
|
890
|
+
throw Object.defineProperty(new Error('The "parallelServerBuildTraces" and "parallelServerCompiles" options may only be used when build workers can be used. Read more: https://nextjs.org/docs/messages/parallel-build-without-worker'), "__NEXT_ERROR_CODE", {
|
|
891
|
+
value: "E101",
|
|
892
|
+
enumerable: false,
|
|
893
|
+
configurable: true
|
|
894
|
+
});
|
|
895
|
+
}
|
|
896
|
+
_log.info('Creating an optimized production build ...');
|
|
897
|
+
(0, _trace1.traceMemoryUsage)('Starting build', nextBuildSpan);
|
|
898
|
+
await (0, _builddiagnostics.updateBuildDiagnostics)({
|
|
899
|
+
buildStage: 'compile',
|
|
900
|
+
buildOptions: {
|
|
901
|
+
useBuildWorker: String(useBuildWorker)
|
|
902
|
+
}
|
|
903
|
+
});
|
|
904
|
+
let shutdownPromise = Promise.resolve();
|
|
905
|
+
if (!isGenerateMode) {
|
|
906
|
+
if (bundler === _bundler.Bundler.Turbopack) {
|
|
907
|
+
const { duration: compilerDuration, shutdownPromise: p, ...rest } = await (0, _turbopackbuild.turbopackBuild)(process.env.NEXT_TURBOPACK_USE_WORKER === undefined || process.env.NEXT_TURBOPACK_USE_WORKER !== '0');
|
|
908
|
+
shutdownPromise = p;
|
|
909
|
+
(0, _trace1.traceMemoryUsage)('Finished build', nextBuildSpan);
|
|
910
|
+
buildTraceContext = rest.buildTraceContext;
|
|
911
|
+
const durationString = (0, _durationtostring.durationToString)(compilerDuration);
|
|
912
|
+
_log.event(`Compiled successfully in ${durationString}`);
|
|
913
|
+
telemetry.record((0, _events.eventBuildCompleted)(pagesPaths, {
|
|
914
|
+
bundler: 'turbopack',
|
|
915
|
+
durationInSeconds: Math.round(compilerDuration),
|
|
916
|
+
totalAppPagesCount
|
|
917
|
+
}));
|
|
918
|
+
} else {
|
|
919
|
+
if (runServerAndEdgeInParallel || collectServerBuildTracesInParallel) {
|
|
920
|
+
let durationInSeconds = 0;
|
|
921
|
+
await (0, _builddiagnostics.updateBuildDiagnostics)({
|
|
922
|
+
buildStage: 'compile-server'
|
|
923
|
+
});
|
|
924
|
+
const serverBuildPromise = (0, _webpackbuild.webpackBuild)(useBuildWorker, [
|
|
925
|
+
'server'
|
|
926
|
+
]).then((res)=>{
|
|
927
|
+
(0, _trace1.traceMemoryUsage)('Finished server compilation', nextBuildSpan);
|
|
928
|
+
buildTraceContext = res.buildTraceContext;
|
|
929
|
+
durationInSeconds += res.duration;
|
|
930
|
+
if (collectServerBuildTracesInParallel) {
|
|
931
|
+
const buildTraceWorker = new _worker.Worker(require.resolve('./collect-build-traces'), {
|
|
932
|
+
debuggerPortOffset: -1,
|
|
933
|
+
isolatedMemory: false,
|
|
934
|
+
numWorkers: 1,
|
|
935
|
+
exposedMethods: [
|
|
936
|
+
'collectBuildTraces'
|
|
937
|
+
]
|
|
938
|
+
});
|
|
939
|
+
buildTracesPromise = nextBuildSpan.traceChild('collect-build-traces').traceAsyncFn(()=>{
|
|
940
|
+
return buildTraceWorker.collectBuildTraces({
|
|
941
|
+
dir,
|
|
942
|
+
config,
|
|
943
|
+
distDir,
|
|
944
|
+
// Serialize Map as this is sent to the worker.
|
|
945
|
+
edgeRuntimeRoutes: (0, _utils1.collectRoutesUsingEdgeRuntime)(new Map()),
|
|
946
|
+
staticPages: [],
|
|
947
|
+
buildTraceContext,
|
|
948
|
+
outputFileTracingRoot
|
|
949
|
+
}).catch((err)=>{
|
|
950
|
+
console.error(err);
|
|
951
|
+
throw err;
|
|
952
|
+
});
|
|
953
|
+
});
|
|
954
|
+
}
|
|
955
|
+
});
|
|
956
|
+
if (!runServerAndEdgeInParallel) {
|
|
957
|
+
await serverBuildPromise;
|
|
958
|
+
await (0, _builddiagnostics.updateBuildDiagnostics)({
|
|
959
|
+
buildStage: 'webpack-compile-edge-server'
|
|
960
|
+
});
|
|
961
|
+
}
|
|
962
|
+
const edgeBuildPromise = (0, _webpackbuild.webpackBuild)(useBuildWorker, [
|
|
963
|
+
'edge-server'
|
|
964
|
+
]).then((res)=>{
|
|
965
|
+
durationInSeconds += res.duration;
|
|
966
|
+
(0, _trace1.traceMemoryUsage)('Finished edge-server compilation', nextBuildSpan);
|
|
967
|
+
});
|
|
968
|
+
if (runServerAndEdgeInParallel) {
|
|
969
|
+
await serverBuildPromise;
|
|
970
|
+
await (0, _builddiagnostics.updateBuildDiagnostics)({
|
|
971
|
+
buildStage: 'webpack-compile-edge-server'
|
|
972
|
+
});
|
|
973
|
+
}
|
|
974
|
+
await edgeBuildPromise;
|
|
975
|
+
await (0, _builddiagnostics.updateBuildDiagnostics)({
|
|
976
|
+
buildStage: 'webpack-compile-client'
|
|
977
|
+
});
|
|
978
|
+
await (0, _webpackbuild.webpackBuild)(useBuildWorker, [
|
|
979
|
+
'client'
|
|
980
|
+
]).then((res)=>{
|
|
981
|
+
durationInSeconds += res.duration;
|
|
982
|
+
(0, _trace1.traceMemoryUsage)('Finished client compilation', nextBuildSpan);
|
|
983
|
+
});
|
|
984
|
+
const durationString = (0, _durationtostring.durationToString)(durationInSeconds);
|
|
985
|
+
_log.event(`Compiled successfully in ${durationString}`);
|
|
986
|
+
telemetry.record((0, _events.eventBuildCompleted)(pagesPaths, {
|
|
987
|
+
bundler: getBundlerForTelemetry(bundler),
|
|
988
|
+
durationInSeconds,
|
|
989
|
+
totalAppPagesCount
|
|
990
|
+
}));
|
|
991
|
+
} else {
|
|
992
|
+
const { duration: compilerDuration, ...rest } = await (0, _webpackbuild.webpackBuild)(useBuildWorker, null);
|
|
993
|
+
(0, _trace1.traceMemoryUsage)('Finished build', nextBuildSpan);
|
|
994
|
+
buildTraceContext = rest.buildTraceContext;
|
|
995
|
+
telemetry.record((0, _events.eventBuildCompleted)(pagesPaths, {
|
|
996
|
+
bundler: getBundlerForTelemetry(bundler),
|
|
997
|
+
durationInSeconds: compilerDuration,
|
|
998
|
+
totalAppPagesCount
|
|
999
|
+
}));
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
await (0, _afterproductioncompile.runAfterProductionCompile)({
|
|
1003
|
+
config,
|
|
1004
|
+
buildSpan: nextBuildSpan,
|
|
1005
|
+
telemetry,
|
|
1006
|
+
metadata: {
|
|
1007
|
+
projectDir: dir,
|
|
1008
|
+
distDir
|
|
1009
|
+
}
|
|
1010
|
+
});
|
|
1011
|
+
}
|
|
1012
|
+
// For app directory, we run type checking after build.
|
|
1013
|
+
if (appDir && !isCompileMode && !isGenerateMode) {
|
|
1014
|
+
await (0, _builddiagnostics.updateBuildDiagnostics)({
|
|
1015
|
+
buildStage: 'type-checking'
|
|
1016
|
+
});
|
|
1017
|
+
await (0, _typecheck.startTypeChecking)(typeCheckingOptions);
|
|
1018
|
+
(0, _trace1.traceMemoryUsage)('Finished type checking', nextBuildSpan);
|
|
1019
|
+
}
|
|
1020
|
+
const requiredServerFilesManifest = await nextBuildSpan.traceChild('generate-required-server-files').traceAsyncFn(async ()=>{
|
|
1021
|
+
let runtimeConfig = (0, _configshared.getNextConfigRuntime)(config);
|
|
1022
|
+
const normalizedCacheHandlers = {};
|
|
1023
|
+
for (const [key, value] of Object.entries(runtimeConfig.cacheHandlers || {})){
|
|
1024
|
+
if (key && value) {
|
|
1025
|
+
normalizedCacheHandlers[key] = _path.default.relative(distDir, value);
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
// getNextConfigRuntime only filters if experimental.runtimeServerDeploymentId is true,
|
|
1029
|
+
// but we unconditionally want to remove configFile for this manifest
|
|
1030
|
+
let runtimeConfigWithoutFilePath = {
|
|
1031
|
+
...runtimeConfig
|
|
1032
|
+
};
|
|
1033
|
+
delete runtimeConfigWithoutFilePath.configFile;
|
|
1034
|
+
const serverFilesManifest = {
|
|
1035
|
+
version: 1,
|
|
1036
|
+
config: {
|
|
1037
|
+
...runtimeConfigWithoutFilePath,
|
|
1038
|
+
..._ciinfo.hasNextSupport ? {
|
|
1039
|
+
compress: false
|
|
1040
|
+
} : {},
|
|
1041
|
+
cacheHandler: runtimeConfig.cacheHandler ? _path.default.relative(distDir, runtimeConfig.cacheHandler) : runtimeConfig.cacheHandler,
|
|
1042
|
+
cacheHandlers: normalizedCacheHandlers,
|
|
1043
|
+
experimental: {
|
|
1044
|
+
...runtimeConfig.experimental,
|
|
1045
|
+
trustHostHeader: _ciinfo.hasNextSupport,
|
|
1046
|
+
isExperimentalCompile: isCompileMode
|
|
1047
|
+
}
|
|
1048
|
+
},
|
|
1049
|
+
appDir: dir,
|
|
1050
|
+
relativeAppDir: _path.default.relative(outputFileTracingRoot, dir),
|
|
1051
|
+
files: [
|
|
1052
|
+
_constants1.ROUTES_MANIFEST,
|
|
1053
|
+
_path.default.relative(distDir, pagesManifestPath),
|
|
1054
|
+
_constants1.BUILD_MANIFEST,
|
|
1055
|
+
_constants1.PRERENDER_MANIFEST,
|
|
1056
|
+
_path.default.join(_constants1.SERVER_DIRECTORY, _constants1.FUNCTIONS_CONFIG_MANIFEST),
|
|
1057
|
+
_path.default.join(_constants1.SERVER_DIRECTORY, _constants1.MIDDLEWARE_MANIFEST),
|
|
1058
|
+
_path.default.join(_constants1.SERVER_DIRECTORY, _constants1.MIDDLEWARE_BUILD_MANIFEST + '.js'),
|
|
1059
|
+
...bundler !== _bundler.Bundler.Turbopack ? [
|
|
1060
|
+
_path.default.join(_constants1.SERVER_DIRECTORY, _constants1.MIDDLEWARE_REACT_LOADABLE_MANIFEST + '.js'),
|
|
1061
|
+
_constants1.REACT_LOADABLE_MANIFEST
|
|
1062
|
+
] : [],
|
|
1063
|
+
...appDir ? [
|
|
1064
|
+
...config.experimental.sri ? [
|
|
1065
|
+
_path.default.join(_constants1.SERVER_DIRECTORY, _constants1.SUBRESOURCE_INTEGRITY_MANIFEST + '.js'),
|
|
1066
|
+
_path.default.join(_constants1.SERVER_DIRECTORY, _constants1.SUBRESOURCE_INTEGRITY_MANIFEST + '.json')
|
|
1067
|
+
] : [],
|
|
1068
|
+
_path.default.join(_constants1.SERVER_DIRECTORY, _constants1.APP_PATHS_MANIFEST),
|
|
1069
|
+
_path.default.join(_constants1.APP_PATH_ROUTES_MANIFEST),
|
|
1070
|
+
_path.default.join(_constants1.SERVER_DIRECTORY, _constants1.SERVER_REFERENCE_MANIFEST + '.js'),
|
|
1071
|
+
_path.default.join(_constants1.SERVER_DIRECTORY, _constants1.SERVER_REFERENCE_MANIFEST + '.json')
|
|
1072
|
+
] : [],
|
|
1073
|
+
...pagesDir && bundler !== _bundler.Bundler.Turbopack ? [
|
|
1074
|
+
_constants1.DYNAMIC_CSS_MANIFEST + '.json',
|
|
1075
|
+
_path.default.join(_constants1.SERVER_DIRECTORY, _constants1.DYNAMIC_CSS_MANIFEST + '.js')
|
|
1076
|
+
] : [],
|
|
1077
|
+
_constants1.BUILD_ID_FILE,
|
|
1078
|
+
_path.default.join(_constants1.SERVER_DIRECTORY, _constants1.NEXT_FONT_MANIFEST + '.js'),
|
|
1079
|
+
_path.default.join(_constants1.SERVER_DIRECTORY, _constants1.NEXT_FONT_MANIFEST + '.json'),
|
|
1080
|
+
_constants1.SERVER_FILES_MANIFEST + '.json'
|
|
1081
|
+
].filter(_nonnullable.nonNullable).map((file)=>_path.default.join(config.distDir, file)),
|
|
1082
|
+
ignore: []
|
|
1083
|
+
};
|
|
1084
|
+
if (hasInstrumentationHook) {
|
|
1085
|
+
serverFilesManifest.files.push(_path.default.join(config.distDir, _constants1.SERVER_DIRECTORY, `${_constants.INSTRUMENTATION_HOOK_FILENAME}.js`));
|
|
1086
|
+
// If there are edge routes, append the edge instrumentation hook
|
|
1087
|
+
// Turbopack generates this chunk with a hashed name and references it in middleware-manifest.
|
|
1088
|
+
let edgeInstrumentationHook = _path.default.join(config.distDir, _constants1.SERVER_DIRECTORY, `edge-${_constants.INSTRUMENTATION_HOOK_FILENAME}.js`);
|
|
1089
|
+
if (bundler !== _bundler.Bundler.Turbopack && (0, _fs.existsSync)(_path.default.join(dir, edgeInstrumentationHook))) {
|
|
1090
|
+
serverFilesManifest.files.push(edgeInstrumentationHook);
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
if (config.experimental.optimizeCss) {
|
|
1094
|
+
const globOrig = require('next/dist/compiled/glob');
|
|
1095
|
+
const cssFilePaths = await new Promise((resolve, reject)=>{
|
|
1096
|
+
globOrig('**/*.css', {
|
|
1097
|
+
cwd: _path.default.join(distDir, 'static')
|
|
1098
|
+
}, (err, files)=>{
|
|
1099
|
+
if (err) {
|
|
1100
|
+
return reject(err);
|
|
1101
|
+
}
|
|
1102
|
+
resolve(files);
|
|
1103
|
+
});
|
|
1104
|
+
});
|
|
1105
|
+
serverFilesManifest.files.push(...cssFilePaths.map((filePath)=>_path.default.join(config.distDir, 'static', filePath)));
|
|
1106
|
+
}
|
|
1107
|
+
// Under standalone mode, we need to ensure that the cache entry debug
|
|
1108
|
+
// handler is copied so that it can be used in the test. This is required
|
|
1109
|
+
// for the turbopack test to run as it's more strict about the build
|
|
1110
|
+
// directories. This is only used for testing and is not used in
|
|
1111
|
+
// production.
|
|
1112
|
+
if (process.env.__NEXT_TEST_MODE && process.env.NEXT_PRIVATE_DEBUG_CACHE_ENTRY_HANDLERS) {
|
|
1113
|
+
serverFilesManifest.files.push(_path.default.relative(dir, _path.default.isAbsolute(process.env.NEXT_PRIVATE_DEBUG_CACHE_ENTRY_HANDLERS) ? process.env.NEXT_PRIVATE_DEBUG_CACHE_ENTRY_HANDLERS : _path.default.join(dir, process.env.NEXT_PRIVATE_DEBUG_CACHE_ENTRY_HANDLERS)));
|
|
1114
|
+
}
|
|
1115
|
+
return serverFilesManifest;
|
|
1116
|
+
});
|
|
1117
|
+
await writeRequiredServerFilesManifest(distDir, requiredServerFilesManifest);
|
|
1118
|
+
const numberOfWorkers = getNumberOfWorkers(config);
|
|
1119
|
+
const collectingPageDataStart = process.hrtime();
|
|
1120
|
+
const postCompileSpinner = (0, _spinner.default)(`Collecting page data using ${numberOfWorkers} worker${numberOfWorkers > 1 ? 's' : ''}`);
|
|
1121
|
+
const buildManifestPath = _path.default.join(distDir, _constants1.BUILD_MANIFEST);
|
|
1122
|
+
let staticAppPagesCount = 0;
|
|
1123
|
+
let serverAppPagesCount = 0;
|
|
1124
|
+
let edgeRuntimeAppCount = 0;
|
|
1125
|
+
let edgeRuntimePagesCount = 0;
|
|
1126
|
+
const ssgPages = new Set();
|
|
1127
|
+
const ssgStaticFallbackPages = new Set();
|
|
1128
|
+
const ssgBlockingFallbackPages = new Set();
|
|
1129
|
+
const staticPages = new Set();
|
|
1130
|
+
const invalidPages = new Set();
|
|
1131
|
+
const serverPropsPages = new Set();
|
|
1132
|
+
const additionalPaths = new Map();
|
|
1133
|
+
const staticPaths = new Map();
|
|
1134
|
+
const appNormalizedPaths = new Map();
|
|
1135
|
+
const fallbackModes = new Map();
|
|
1136
|
+
const appDefaultConfigs = new Map();
|
|
1137
|
+
const pageInfos = new Map();
|
|
1138
|
+
let pagesManifest = await readManifest(pagesManifestPath);
|
|
1139
|
+
const buildManifest = await readManifest(buildManifestPath);
|
|
1140
|
+
const appPathRoutes = {};
|
|
1141
|
+
if (appDir) {
|
|
1142
|
+
const appPathsManifest = await readManifest(_path.default.join(distDir, _constants1.SERVER_DIRECTORY, _constants1.APP_PATHS_MANIFEST));
|
|
1143
|
+
for(const key in appPathsManifest){
|
|
1144
|
+
appPathRoutes[key] = (0, _apppaths.normalizeAppPath)(key);
|
|
1145
|
+
}
|
|
1146
|
+
await writeManifest(_path.default.join(distDir, _constants1.APP_PATH_ROUTES_MANIFEST), appPathRoutes);
|
|
1147
|
+
}
|
|
1148
|
+
process.env.NEXT_PHASE = _constants1.PHASE_PRODUCTION_BUILD;
|
|
1149
|
+
staticWorker = createStaticWorker(config, {
|
|
1150
|
+
numberOfWorkers,
|
|
1151
|
+
debuggerPortOffset: -1
|
|
1152
|
+
});
|
|
1153
|
+
const analysisBegin = process.hrtime();
|
|
1154
|
+
const staticCheckSpan = nextBuildSpan.traceChild('static-check');
|
|
1155
|
+
const functionsConfigManifest = {
|
|
1156
|
+
version: 1,
|
|
1157
|
+
functions: {}
|
|
1158
|
+
};
|
|
1159
|
+
const { customAppGetInitialProps, namedExports, isNextImageImported, hasNonStaticErrorPage } = await staticCheckSpan.traceAsyncFn(async ()=>{
|
|
1160
|
+
var _config_experimental_sri;
|
|
1161
|
+
if (isCompileMode) {
|
|
1162
|
+
return {
|
|
1163
|
+
customAppGetInitialProps: false,
|
|
1164
|
+
namedExports: [],
|
|
1165
|
+
isNextImageImported: true,
|
|
1166
|
+
hasNonStaticErrorPage: hasUserPagesRoutes
|
|
1167
|
+
};
|
|
1168
|
+
}
|
|
1169
|
+
const { configFileName } = config;
|
|
1170
|
+
const sriEnabled = Boolean((_config_experimental_sri = config.experimental.sri) == null ? void 0 : _config_experimental_sri.algorithm);
|
|
1171
|
+
const nonStaticErrorPageSpan = staticCheckSpan.traceChild('check-static-error-page');
|
|
1172
|
+
const errorPageHasCustomGetInitialProps = nonStaticErrorPageSpan.traceAsyncFn(async ()=>hasCustomErrorPage && await staticWorker.hasCustomGetInitialProps({
|
|
1173
|
+
page: '/_error',
|
|
1174
|
+
distDir,
|
|
1175
|
+
checkingApp: false,
|
|
1176
|
+
sriEnabled
|
|
1177
|
+
}));
|
|
1178
|
+
const errorPageStaticResult = nonStaticErrorPageSpan.traceAsyncFn(async ()=>{
|
|
1179
|
+
var _config_i18n, _config_i18n1;
|
|
1180
|
+
return hasCustomErrorPage && staticWorker.isPageStatic({
|
|
1181
|
+
dir,
|
|
1182
|
+
page: '/_error',
|
|
1183
|
+
distDir,
|
|
1184
|
+
configFileName,
|
|
1185
|
+
cacheComponents: isAppCacheComponentsEnabled,
|
|
1186
|
+
authInterrupts: isAuthInterruptsEnabled,
|
|
1187
|
+
httpAgentOptions: config.httpAgentOptions,
|
|
1188
|
+
locales: (_config_i18n = config.i18n) == null ? void 0 : _config_i18n.locales,
|
|
1189
|
+
defaultLocale: (_config_i18n1 = config.i18n) == null ? void 0 : _config_i18n1.defaultLocale,
|
|
1190
|
+
nextConfigOutput: config.output,
|
|
1191
|
+
pprConfig: config.experimental.ppr,
|
|
1192
|
+
cacheLifeProfiles: config.cacheLife,
|
|
1193
|
+
buildId,
|
|
1194
|
+
sriEnabled,
|
|
1195
|
+
cacheMaxMemorySize: config.cacheMaxMemorySize
|
|
1196
|
+
});
|
|
1197
|
+
});
|
|
1198
|
+
const appPageToCheck = '/_app';
|
|
1199
|
+
const customAppGetInitialPropsPromise = hasUserPagesRoutes ? staticWorker.hasCustomGetInitialProps({
|
|
1200
|
+
page: appPageToCheck,
|
|
1201
|
+
distDir,
|
|
1202
|
+
checkingApp: true,
|
|
1203
|
+
sriEnabled
|
|
1204
|
+
}) : Promise.resolve(false);
|
|
1205
|
+
const namedExportsPromise = hasUserPagesRoutes ? staticWorker.getDefinedNamedExports({
|
|
1206
|
+
page: appPageToCheck,
|
|
1207
|
+
distDir,
|
|
1208
|
+
sriEnabled
|
|
1209
|
+
}) : Promise.resolve([]);
|
|
1210
|
+
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
1211
|
+
let isNextImageImported;
|
|
1212
|
+
const middlewareManifest = require(_path.default.join(distDir, _constants1.SERVER_DIRECTORY, _constants1.MIDDLEWARE_MANIFEST));
|
|
1213
|
+
const actionManifest = appDir ? require(_path.default.join(distDir, _constants1.SERVER_DIRECTORY, _constants1.SERVER_REFERENCE_MANIFEST + '.json')) : null;
|
|
1214
|
+
const entriesWithAction = actionManifest ? new Set() : null;
|
|
1215
|
+
if (actionManifest && entriesWithAction) {
|
|
1216
|
+
for(const id in actionManifest.node){
|
|
1217
|
+
for(const entry in actionManifest.node[id].workers){
|
|
1218
|
+
entriesWithAction.add(entry);
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
for(const id in actionManifest.edge){
|
|
1222
|
+
for(const entry in actionManifest.edge[id].workers){
|
|
1223
|
+
entriesWithAction.add(entry);
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
for (const key of Object.keys(middlewareManifest == null ? void 0 : middlewareManifest.functions)){
|
|
1228
|
+
if (key.startsWith('/api')) {
|
|
1229
|
+
edgeRuntimePagesCount++;
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1232
|
+
await Promise.all(Object.entries(pageKeys).reduce((acc, [key, files])=>{
|
|
1233
|
+
if (!files) {
|
|
1234
|
+
return acc;
|
|
1235
|
+
}
|
|
1236
|
+
const pageType = key;
|
|
1237
|
+
for (const page of files){
|
|
1238
|
+
acc.push({
|
|
1239
|
+
pageType,
|
|
1240
|
+
page
|
|
1241
|
+
});
|
|
1242
|
+
}
|
|
1243
|
+
return acc;
|
|
1244
|
+
}, []).map(({ pageType, page })=>{
|
|
1245
|
+
const checkPageSpan = staticCheckSpan.traceChild('check-page', {
|
|
1246
|
+
page
|
|
1247
|
+
});
|
|
1248
|
+
return checkPageSpan.traceAsyncFn(async ()=>{
|
|
1249
|
+
const actualPage = (0, _normalizepagepath.normalizePagePath)(page);
|
|
1250
|
+
let isRoutePPREnabled = false;
|
|
1251
|
+
let isSSG = false;
|
|
1252
|
+
let isStatic = false;
|
|
1253
|
+
let isServerComponent = false;
|
|
1254
|
+
let ssgPageRoutes = null;
|
|
1255
|
+
let pagePath = '';
|
|
1256
|
+
if (pageType === 'pages') {
|
|
1257
|
+
pagePath = pagesPaths.find((p)=>{
|
|
1258
|
+
p = (0, _normalizepathsep.normalizePathSep)(p);
|
|
1259
|
+
return p.startsWith(actualPage + '.') || p.startsWith(actualPage + '/index.');
|
|
1260
|
+
}) || '';
|
|
1261
|
+
}
|
|
1262
|
+
let originalAppPath;
|
|
1263
|
+
if (pageType === 'app' && mappedAppPages) {
|
|
1264
|
+
for (const [originalPath, normalizedPath] of Object.entries(appPathRoutes)){
|
|
1265
|
+
if (normalizedPath === page) {
|
|
1266
|
+
pagePath = mappedAppPages[originalPath].replace(/^private-next-app-dir/, '');
|
|
1267
|
+
originalAppPath = originalPath;
|
|
1268
|
+
break;
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
}
|
|
1272
|
+
const pageFilePath = (0, _utils1.isAppBuiltinPage)(pagePath) ? pagePath : _path.default.join((pageType === 'pages' ? pagesDir : appDir) || '', pagePath);
|
|
1273
|
+
const isInsideAppDir = pageType === 'app';
|
|
1274
|
+
const staticInfo = pagePath ? await (0, _getstaticinfoincludinglayouts.getStaticInfoIncludingLayouts)({
|
|
1275
|
+
isInsideAppDir,
|
|
1276
|
+
pageFilePath,
|
|
1277
|
+
pageExtensions: config.pageExtensions,
|
|
1278
|
+
appDir,
|
|
1279
|
+
config,
|
|
1280
|
+
isDev: false,
|
|
1281
|
+
// If this route is an App Router page route, inherit the
|
|
1282
|
+
// route segment configs (e.g. `runtime`) from the layout by
|
|
1283
|
+
// passing the `originalAppPath`, which should end with `/page`.
|
|
1284
|
+
page: isInsideAppDir ? originalAppPath : page
|
|
1285
|
+
}) : undefined;
|
|
1286
|
+
if (staticInfo == null ? void 0 : staticInfo.hadUnsupportedValue) {
|
|
1287
|
+
errorFromUnsupportedSegmentConfig();
|
|
1288
|
+
}
|
|
1289
|
+
// If there's any thing that would contribute to the functions
|
|
1290
|
+
// configuration, we need to add it to the manifest.
|
|
1291
|
+
if (typeof (staticInfo == null ? void 0 : staticInfo.runtime) !== 'undefined' || typeof (staticInfo == null ? void 0 : staticInfo.maxDuration) !== 'undefined' || typeof (staticInfo == null ? void 0 : staticInfo.preferredRegion) !== 'undefined') {
|
|
1292
|
+
const regions = (staticInfo == null ? void 0 : staticInfo.preferredRegion) ? typeof staticInfo.preferredRegion === 'string' ? [
|
|
1293
|
+
staticInfo.preferredRegion
|
|
1294
|
+
] : staticInfo.preferredRegion : undefined;
|
|
1295
|
+
functionsConfigManifest.functions[page] = {
|
|
1296
|
+
maxDuration: staticInfo == null ? void 0 : staticInfo.maxDuration,
|
|
1297
|
+
...regions && {
|
|
1298
|
+
regions
|
|
1299
|
+
}
|
|
1300
|
+
};
|
|
1301
|
+
}
|
|
1302
|
+
const pageRuntime = middlewareManifest.functions[originalAppPath || page] ? 'edge' : staticInfo == null ? void 0 : staticInfo.runtime;
|
|
1303
|
+
if (!isCompileMode) {
|
|
1304
|
+
isServerComponent = pageType === 'app' && (staticInfo == null ? void 0 : staticInfo.rsc) !== _constants1.RSC_MODULE_TYPES.client;
|
|
1305
|
+
if (pageType === 'app' || !(0, _utils1.isReservedPage)(page)) {
|
|
1306
|
+
try {
|
|
1307
|
+
let edgeInfo;
|
|
1308
|
+
if ((0, _isedgeruntime.isEdgeRuntime)(pageRuntime)) {
|
|
1309
|
+
if (pageType === 'app') {
|
|
1310
|
+
edgeRuntimeAppCount++;
|
|
1311
|
+
} else {
|
|
1312
|
+
edgeRuntimePagesCount++;
|
|
1313
|
+
}
|
|
1314
|
+
const manifestKey = pageType === 'pages' ? page : originalAppPath || '';
|
|
1315
|
+
edgeInfo = middlewareManifest.functions[manifestKey];
|
|
1316
|
+
}
|
|
1317
|
+
let isPageStaticSpan = checkPageSpan.traceChild('is-page-static');
|
|
1318
|
+
let workerResult = await isPageStaticSpan.traceAsyncFn(()=>{
|
|
1319
|
+
var _config_i18n, _config_i18n1;
|
|
1320
|
+
return staticWorker.isPageStatic({
|
|
1321
|
+
dir,
|
|
1322
|
+
page,
|
|
1323
|
+
originalAppPath,
|
|
1324
|
+
distDir,
|
|
1325
|
+
configFileName,
|
|
1326
|
+
httpAgentOptions: config.httpAgentOptions,
|
|
1327
|
+
locales: (_config_i18n = config.i18n) == null ? void 0 : _config_i18n.locales,
|
|
1328
|
+
defaultLocale: (_config_i18n1 = config.i18n) == null ? void 0 : _config_i18n1.defaultLocale,
|
|
1329
|
+
parentId: isPageStaticSpan.getId(),
|
|
1330
|
+
pageRuntime,
|
|
1331
|
+
edgeInfo,
|
|
1332
|
+
pageType,
|
|
1333
|
+
cacheComponents: isAppCacheComponentsEnabled,
|
|
1334
|
+
authInterrupts: isAuthInterruptsEnabled,
|
|
1335
|
+
cacheHandler: config.cacheHandler,
|
|
1336
|
+
cacheHandlers: config.cacheHandlers,
|
|
1337
|
+
isrFlushToDisk: _ciinfo.hasNextSupport ? false : config.experimental.isrFlushToDisk,
|
|
1338
|
+
cacheMaxMemorySize: config.cacheMaxMemorySize,
|
|
1339
|
+
nextConfigOutput: config.output,
|
|
1340
|
+
pprConfig: config.experimental.ppr,
|
|
1341
|
+
cacheLifeProfiles: config.cacheLife,
|
|
1342
|
+
buildId,
|
|
1343
|
+
sriEnabled
|
|
1344
|
+
});
|
|
1345
|
+
});
|
|
1346
|
+
if (pageType === 'app' && originalAppPath) {
|
|
1347
|
+
appNormalizedPaths.set(originalAppPath, page);
|
|
1348
|
+
// TODO-APP: handle prerendering with edge
|
|
1349
|
+
if ((0, _isedgeruntime.isEdgeRuntime)(pageRuntime)) {
|
|
1350
|
+
isStatic = false;
|
|
1351
|
+
isSSG = false;
|
|
1352
|
+
_log.warnOnce(`Using edge runtime on a page currently disables static generation for that page`);
|
|
1353
|
+
} else {
|
|
1354
|
+
const isDynamic = (0, _utils.isDynamicRoute)(page);
|
|
1355
|
+
if (typeof workerResult.isRoutePPREnabled === 'boolean') {
|
|
1356
|
+
isRoutePPREnabled = workerResult.isRoutePPREnabled;
|
|
1357
|
+
}
|
|
1358
|
+
// If this route can be partially pre-rendered, then
|
|
1359
|
+
// mark it as such and mark that it can be
|
|
1360
|
+
// generated server-side.
|
|
1361
|
+
if (workerResult.isRoutePPREnabled) {
|
|
1362
|
+
isSSG = true;
|
|
1363
|
+
isStatic = true;
|
|
1364
|
+
staticPaths.set(originalAppPath, []);
|
|
1365
|
+
}
|
|
1366
|
+
if (workerResult.prerenderedRoutes) {
|
|
1367
|
+
staticPaths.set(originalAppPath, workerResult.prerenderedRoutes);
|
|
1368
|
+
ssgPageRoutes = workerResult.prerenderedRoutes.map((route)=>route.pathname);
|
|
1369
|
+
isSSG = true;
|
|
1370
|
+
}
|
|
1371
|
+
const appConfig = workerResult.appConfig || {};
|
|
1372
|
+
if (appConfig.revalidate !== 0) {
|
|
1373
|
+
const hasGenerateStaticParams = workerResult.prerenderedRoutes && workerResult.prerenderedRoutes.length > 0;
|
|
1374
|
+
if (config.output === 'export' && isDynamic && !hasGenerateStaticParams) {
|
|
1375
|
+
throw Object.defineProperty(new Error(`Page "${page}" is missing "generateStaticParams()" so it cannot be used with "output: export" config.`), "__NEXT_ERROR_CODE", {
|
|
1376
|
+
value: "E87",
|
|
1377
|
+
enumerable: false,
|
|
1378
|
+
configurable: true
|
|
1379
|
+
});
|
|
1380
|
+
}
|
|
1381
|
+
// Mark the app as static if:
|
|
1382
|
+
// - It has no dynamic param
|
|
1383
|
+
// - It doesn't have generateStaticParams but `dynamic` is set to
|
|
1384
|
+
// `error` or `force-static`
|
|
1385
|
+
if (!isDynamic) {
|
|
1386
|
+
staticPaths.set(originalAppPath, [
|
|
1387
|
+
{
|
|
1388
|
+
params: {},
|
|
1389
|
+
pathname: page,
|
|
1390
|
+
encodedPathname: page,
|
|
1391
|
+
fallbackRouteParams: [],
|
|
1392
|
+
fallbackMode: workerResult.prerenderFallbackMode,
|
|
1393
|
+
fallbackRootParams: [],
|
|
1394
|
+
throwOnEmptyStaticShell: true
|
|
1395
|
+
}
|
|
1396
|
+
]);
|
|
1397
|
+
isStatic = true;
|
|
1398
|
+
} else if (!hasGenerateStaticParams && (appConfig.dynamic === 'error' || appConfig.dynamic === 'force-static')) {
|
|
1399
|
+
staticPaths.set(originalAppPath, []);
|
|
1400
|
+
isStatic = true;
|
|
1401
|
+
isRoutePPREnabled = false;
|
|
1402
|
+
}
|
|
1403
|
+
}
|
|
1404
|
+
if (workerResult.prerenderFallbackMode) {
|
|
1405
|
+
fallbackModes.set(originalAppPath, workerResult.prerenderFallbackMode);
|
|
1406
|
+
}
|
|
1407
|
+
appDefaultConfigs.set(originalAppPath, appConfig);
|
|
1408
|
+
}
|
|
1409
|
+
} else {
|
|
1410
|
+
if ((0, _isedgeruntime.isEdgeRuntime)(pageRuntime)) {
|
|
1411
|
+
if (workerResult.hasStaticProps) {
|
|
1412
|
+
console.warn(`"getStaticProps" is not yet supported fully with "experimental-edge", detected on ${page}`);
|
|
1413
|
+
}
|
|
1414
|
+
workerResult.isStatic = false;
|
|
1415
|
+
workerResult.hasStaticProps = false;
|
|
1416
|
+
}
|
|
1417
|
+
if (workerResult.isNextImageImported) {
|
|
1418
|
+
isNextImageImported = true;
|
|
1419
|
+
}
|
|
1420
|
+
if (workerResult.hasStaticProps) {
|
|
1421
|
+
ssgPages.add(page);
|
|
1422
|
+
isSSG = true;
|
|
1423
|
+
if (workerResult.prerenderedRoutes && workerResult.prerenderedRoutes.length > 0) {
|
|
1424
|
+
additionalPaths.set(page, workerResult.prerenderedRoutes);
|
|
1425
|
+
ssgPageRoutes = workerResult.prerenderedRoutes.map((route)=>route.pathname);
|
|
1426
|
+
}
|
|
1427
|
+
if (workerResult.prerenderFallbackMode === _fallback.FallbackMode.BLOCKING_STATIC_RENDER) {
|
|
1428
|
+
ssgBlockingFallbackPages.add(page);
|
|
1429
|
+
} else if (workerResult.prerenderFallbackMode === _fallback.FallbackMode.PRERENDER) {
|
|
1430
|
+
ssgStaticFallbackPages.add(page);
|
|
1431
|
+
}
|
|
1432
|
+
} else if (workerResult.hasServerProps) {
|
|
1433
|
+
serverPropsPages.add(page);
|
|
1434
|
+
} else if (workerResult.isStatic && !isServerComponent && await customAppGetInitialPropsPromise === false) {
|
|
1435
|
+
staticPages.add(page);
|
|
1436
|
+
isStatic = true;
|
|
1437
|
+
} else if (isServerComponent) {
|
|
1438
|
+
// This is a static server component page that doesn't have
|
|
1439
|
+
// gSP or gSSP. We still treat it as a SSG page.
|
|
1440
|
+
ssgPages.add(page);
|
|
1441
|
+
isSSG = true;
|
|
1442
|
+
}
|
|
1443
|
+
if (hasPages404 && page === '/404') {
|
|
1444
|
+
if (!workerResult.isStatic && !workerResult.hasStaticProps) {
|
|
1445
|
+
throw Object.defineProperty(new Error(`\`pages/404\` ${_constants.STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR}`), "__NEXT_ERROR_CODE", {
|
|
1446
|
+
value: "E134",
|
|
1447
|
+
enumerable: false,
|
|
1448
|
+
configurable: true
|
|
1449
|
+
});
|
|
1450
|
+
}
|
|
1451
|
+
// we need to ensure the 404 lambda is present since we use
|
|
1452
|
+
// it when _app has getInitialProps
|
|
1453
|
+
if (await customAppGetInitialPropsPromise && !workerResult.hasStaticProps) {
|
|
1454
|
+
staticPages.delete(page);
|
|
1455
|
+
}
|
|
1456
|
+
}
|
|
1457
|
+
if (_constants1.STATIC_STATUS_PAGES.includes(page) && !workerResult.isStatic && !workerResult.hasStaticProps) {
|
|
1458
|
+
throw Object.defineProperty(new Error(`\`pages${page}\` ${_constants.STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR}`), "__NEXT_ERROR_CODE", {
|
|
1459
|
+
value: "E125",
|
|
1460
|
+
enumerable: false,
|
|
1461
|
+
configurable: true
|
|
1462
|
+
});
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
} catch (err) {
|
|
1466
|
+
if (!(0, _iserror.default)(err) || err.message !== 'INVALID_DEFAULT_EXPORT') throw err;
|
|
1467
|
+
invalidPages.add(page);
|
|
1468
|
+
}
|
|
1469
|
+
}
|
|
1470
|
+
if (pageType === 'app') {
|
|
1471
|
+
if (isSSG || isStatic) {
|
|
1472
|
+
staticAppPagesCount++;
|
|
1473
|
+
} else {
|
|
1474
|
+
serverAppPagesCount++;
|
|
1475
|
+
}
|
|
1476
|
+
}
|
|
1477
|
+
}
|
|
1478
|
+
pageInfos.set(page, {
|
|
1479
|
+
originalAppPath,
|
|
1480
|
+
isStatic,
|
|
1481
|
+
isSSG,
|
|
1482
|
+
isRoutePPREnabled,
|
|
1483
|
+
ssgPageRoutes,
|
|
1484
|
+
initialCacheControl: undefined,
|
|
1485
|
+
runtime: pageRuntime,
|
|
1486
|
+
pageDuration: undefined,
|
|
1487
|
+
ssgPageDurations: undefined,
|
|
1488
|
+
hasEmptyStaticShell: undefined
|
|
1489
|
+
});
|
|
1490
|
+
});
|
|
1491
|
+
}));
|
|
1492
|
+
const errorPageResult = await errorPageStaticResult;
|
|
1493
|
+
const nonStaticErrorPage = await errorPageHasCustomGetInitialProps || errorPageResult && errorPageResult.hasServerProps;
|
|
1494
|
+
const returnValue = {
|
|
1495
|
+
customAppGetInitialProps: await customAppGetInitialPropsPromise,
|
|
1496
|
+
namedExports: await namedExportsPromise,
|
|
1497
|
+
isNextImageImported,
|
|
1498
|
+
hasNonStaticErrorPage: nonStaticErrorPage
|
|
1499
|
+
};
|
|
1500
|
+
return returnValue;
|
|
1501
|
+
});
|
|
1502
|
+
if (postCompileSpinner) {
|
|
1503
|
+
const collectingPageDataEnd = process.hrtime(collectingPageDataStart);
|
|
1504
|
+
postCompileSpinner.setText(`Collecting page data using ${numberOfWorkers} worker${numberOfWorkers > 1 ? 's' : ''} in ${(0, _durationtostring.hrtimeDurationToString)(collectingPageDataEnd)}`);
|
|
1505
|
+
postCompileSpinner.stopAndPersist();
|
|
1506
|
+
}
|
|
1507
|
+
(0, _trace1.traceMemoryUsage)('Finished collecting page data', nextBuildSpan);
|
|
1508
|
+
if (customAppGetInitialProps) {
|
|
1509
|
+
console.warn((0, _picocolors.bold)((0, _picocolors.yellow)(`Warning: `)) + (0, _picocolors.yellow)(`You have opted-out of Automatic Static Optimization due to \`getInitialProps\` in \`pages/_app\`. This does not opt-out pages with \`getStaticProps\``));
|
|
1510
|
+
console.warn('Read more: https://nextjs.org/docs/messages/opt-out-auto-static-optimization\n');
|
|
1511
|
+
}
|
|
1512
|
+
const middlewareFile = (0, _normalizepathsep.normalizePathSep)(proxyFilePath || middlewareFilePath || '');
|
|
1513
|
+
let hasNodeMiddleware = false;
|
|
1514
|
+
if (middlewareFile) {
|
|
1515
|
+
// Is format of `(/src)/(proxy|middleware).<ext>`, so split by
|
|
1516
|
+
// "." and get the first part, regard rest of the extensions
|
|
1517
|
+
// to match the `page` value format.
|
|
1518
|
+
const page = middlewareFile.split('.')[0];
|
|
1519
|
+
const staticInfo = await (0, _getstaticinfoincludinglayouts.getStaticInfoIncludingLayouts)({
|
|
1520
|
+
isInsideAppDir: false,
|
|
1521
|
+
pageFilePath: _path.default.join(dir, middlewareFile),
|
|
1522
|
+
config,
|
|
1523
|
+
appDir,
|
|
1524
|
+
pageExtensions: config.pageExtensions,
|
|
1525
|
+
isDev: false,
|
|
1526
|
+
page
|
|
1527
|
+
});
|
|
1528
|
+
if (staticInfo.hadUnsupportedValue) {
|
|
1529
|
+
errorFromUnsupportedSegmentConfig();
|
|
1530
|
+
}
|
|
1531
|
+
if (staticInfo.runtime === 'nodejs' || (0, _utils1.isProxyFile)(page)) {
|
|
1532
|
+
var _staticInfo_middleware;
|
|
1533
|
+
hasNodeMiddleware = true;
|
|
1534
|
+
functionsConfigManifest.functions['/_middleware'] = {
|
|
1535
|
+
runtime: 'nodejs',
|
|
1536
|
+
matchers: ((_staticInfo_middleware = staticInfo.middleware) == null ? void 0 : _staticInfo_middleware.matchers) ?? [
|
|
1537
|
+
{
|
|
1538
|
+
regexp: '^.*$',
|
|
1539
|
+
originalSource: '/:path*'
|
|
1540
|
+
}
|
|
1541
|
+
]
|
|
1542
|
+
};
|
|
1543
|
+
if (bundler === _bundler.Bundler.Turbopack) {
|
|
1544
|
+
await writeManifest(_path.default.join(distDir, 'static', buildId, _constants1.TURBOPACK_CLIENT_MIDDLEWARE_MANIFEST), functionsConfigManifest.functions['/_middleware'].matchers || []);
|
|
1545
|
+
}
|
|
1546
|
+
}
|
|
1547
|
+
}
|
|
1548
|
+
await writeFunctionsConfigManifest(distDir, functionsConfigManifest);
|
|
1549
|
+
if (bundler !== _bundler.Bundler.Turbopack && !isGenerateMode && !buildTracesPromise) {
|
|
1550
|
+
buildTracesPromise = nextBuildSpan.traceChild('collect-build-traces').traceAsyncFn(()=>{
|
|
1551
|
+
return (0, _collectbuildtraces.collectBuildTraces)({
|
|
1552
|
+
dir,
|
|
1553
|
+
config,
|
|
1554
|
+
distDir,
|
|
1555
|
+
edgeRuntimeRoutes: (0, _utils1.collectRoutesUsingEdgeRuntime)(pageInfos),
|
|
1556
|
+
staticPages: [
|
|
1557
|
+
...staticPages
|
|
1558
|
+
],
|
|
1559
|
+
nextBuildSpan,
|
|
1560
|
+
buildTraceContext,
|
|
1561
|
+
outputFileTracingRoot
|
|
1562
|
+
}).catch((err)=>{
|
|
1563
|
+
console.error(err);
|
|
1564
|
+
throw err;
|
|
1565
|
+
});
|
|
1566
|
+
});
|
|
1567
|
+
}
|
|
1568
|
+
if (serverPropsPages.size > 0 || ssgPages.size > 0) {
|
|
1569
|
+
// We update the routes manifest after the build with the
|
|
1570
|
+
// data routes since we can't determine these until after build
|
|
1571
|
+
routesManifest.dataRoutes = (0, _sortableroutes.sortPages)([
|
|
1572
|
+
...serverPropsPages,
|
|
1573
|
+
...ssgPages
|
|
1574
|
+
]).map((page)=>{
|
|
1575
|
+
return (0, _builddataroute.buildDataRoute)(page, buildId);
|
|
1576
|
+
});
|
|
1577
|
+
}
|
|
1578
|
+
// We need to write the manifest with rewrites before build
|
|
1579
|
+
await nextBuildSpan.traceChild('write-routes-manifest').traceAsyncFn(()=>writeManifest(routesManifestPath, routesManifest));
|
|
1580
|
+
// Since custom _app.js can wrap the 404 page we have to opt-out of static optimization if it has getInitialProps
|
|
1581
|
+
// Only export the static 404 when there is no /_error present
|
|
1582
|
+
const useStaticPages404 = !customAppGetInitialProps && (!hasNonStaticErrorPage || hasPages404);
|
|
1583
|
+
if (invalidPages.size > 0) {
|
|
1584
|
+
const err = Object.defineProperty(new Error(`Build optimization failed: found page${invalidPages.size === 1 ? '' : 's'} without a React Component as default export in \n${[
|
|
1585
|
+
...invalidPages
|
|
1586
|
+
].map((pg)=>`pages${pg}`).join('\n')}\n\nSee https://nextjs.org/docs/messages/page-without-valid-component for more info.\n`), "__NEXT_ERROR_CODE", {
|
|
1587
|
+
value: "E474",
|
|
1588
|
+
enumerable: false,
|
|
1589
|
+
configurable: true
|
|
1590
|
+
});
|
|
1591
|
+
err.code = 'BUILD_OPTIMIZATION_FAILED';
|
|
1592
|
+
throw err;
|
|
1593
|
+
}
|
|
1594
|
+
await (0, _writebuildid.writeBuildId)(distDir, buildId);
|
|
1595
|
+
const features = [
|
|
1596
|
+
{
|
|
1597
|
+
featureName: 'experimental/cacheComponents',
|
|
1598
|
+
invocationCount: config.cacheComponents ? 1 : 0
|
|
1599
|
+
},
|
|
1600
|
+
{
|
|
1601
|
+
featureName: 'experimental/optimizeCss',
|
|
1602
|
+
invocationCount: config.experimental.optimizeCss ? 1 : 0
|
|
1603
|
+
},
|
|
1604
|
+
{
|
|
1605
|
+
featureName: 'experimental/nextScriptWorkers',
|
|
1606
|
+
invocationCount: config.experimental.nextScriptWorkers ? 1 : 0
|
|
1607
|
+
},
|
|
1608
|
+
{
|
|
1609
|
+
featureName: 'experimental/ppr',
|
|
1610
|
+
invocationCount: config.experimental.ppr ? 1 : 0
|
|
1611
|
+
},
|
|
1612
|
+
{
|
|
1613
|
+
featureName: 'experimental/isolatedDevBuild',
|
|
1614
|
+
invocationCount: config.experimental.isolatedDevBuild ? 1 : 0
|
|
1615
|
+
},
|
|
1616
|
+
{
|
|
1617
|
+
featureName: 'turbopackFileSystemCache',
|
|
1618
|
+
invocationCount: (0, _utils3.isFileSystemCacheEnabledForBuild)(config) ? 1 : 0
|
|
1619
|
+
}
|
|
1620
|
+
];
|
|
1621
|
+
telemetry.record(features.map((feature)=>{
|
|
1622
|
+
return {
|
|
1623
|
+
eventName: _events.EVENT_BUILD_FEATURE_USAGE,
|
|
1624
|
+
payload: feature
|
|
1625
|
+
};
|
|
1626
|
+
}));
|
|
1627
|
+
// we don't need to inline for turbopack build as
|
|
1628
|
+
// it will handle it's own caching separate of compile
|
|
1629
|
+
if (isGenerateMode && bundler !== _bundler.Bundler.Turbopack) {
|
|
1630
|
+
_log.info('Inlining static env ...');
|
|
1631
|
+
await nextBuildSpan.traceChild('inline-static-env').traceAsyncFn(async ()=>{
|
|
1632
|
+
await (0, _inlinestaticenv.inlineStaticEnv)({
|
|
1633
|
+
distDir,
|
|
1634
|
+
config
|
|
1635
|
+
});
|
|
1636
|
+
});
|
|
1637
|
+
}
|
|
1638
|
+
const middlewareManifest = await readManifest(_path.default.join(distDir, _constants1.SERVER_DIRECTORY, _constants1.MIDDLEWARE_MANIFEST));
|
|
1639
|
+
const prerenderManifest = {
|
|
1640
|
+
version: 4,
|
|
1641
|
+
routes: {},
|
|
1642
|
+
dynamicRoutes: {},
|
|
1643
|
+
notFoundRoutes: [],
|
|
1644
|
+
preview: previewProps
|
|
1645
|
+
};
|
|
1646
|
+
const tbdPrerenderRoutes = [];
|
|
1647
|
+
const { i18n } = config;
|
|
1648
|
+
const usedStaticStatusPages = _constants1.STATIC_STATUS_PAGES.filter((page)=>mappedPages[page] && mappedPages[page].startsWith('private-next-pages'));
|
|
1649
|
+
usedStaticStatusPages.forEach((page)=>{
|
|
1650
|
+
if (!ssgPages.has(page) && !customAppGetInitialProps) {
|
|
1651
|
+
staticPages.add(page);
|
|
1652
|
+
}
|
|
1653
|
+
});
|
|
1654
|
+
const hasPages500 = !appDirOnly && usedStaticStatusPages.includes('/500');
|
|
1655
|
+
const useDefaultStatic500 = !hasPages500 && !hasNonStaticErrorPage && !customAppGetInitialProps;
|
|
1656
|
+
const combinedPages = [
|
|
1657
|
+
...staticPages,
|
|
1658
|
+
...ssgPages
|
|
1659
|
+
];
|
|
1660
|
+
const isApp404Static = staticPaths.has(_entryconstants.UNDERSCORE_NOT_FOUND_ROUTE_ENTRY);
|
|
1661
|
+
const hasStaticApp404 = hasApp404 && isApp404Static;
|
|
1662
|
+
const isAppGlobalErrorStatic = staticPaths.has(_entryconstants.UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY);
|
|
1663
|
+
const hasStaticAppGlobalError = hasAppGlobalError && isAppGlobalErrorStatic;
|
|
1664
|
+
await (0, _builddiagnostics.updateBuildDiagnostics)({
|
|
1665
|
+
buildStage: 'static-generation'
|
|
1666
|
+
});
|
|
1667
|
+
const hasGSPAndRevalidateZero = new Set();
|
|
1668
|
+
// we need to trigger automatic exporting when we have
|
|
1669
|
+
// - static 404/500
|
|
1670
|
+
// - getStaticProps paths
|
|
1671
|
+
// - experimental app is enabled
|
|
1672
|
+
if (!isCompileMode && (combinedPages.length > 0 || useStaticPages404 || useDefaultStatic500 || appDir)) {
|
|
1673
|
+
const staticGenerationSpan = nextBuildSpan.traceChild('static-generation');
|
|
1674
|
+
await staticGenerationSpan.traceAsyncFn(async ()=>{
|
|
1675
|
+
(0, _utils1.detectConflictingPaths)([
|
|
1676
|
+
...combinedPages,
|
|
1677
|
+
...pageKeys.pages.filter((page)=>!combinedPages.includes(page))
|
|
1678
|
+
], ssgPages, new Map(Array.from(additionalPaths.entries()).map(([page, routes])=>{
|
|
1679
|
+
return [
|
|
1680
|
+
page,
|
|
1681
|
+
routes.map((route)=>route.pathname)
|
|
1682
|
+
];
|
|
1683
|
+
})));
|
|
1684
|
+
const sortedStaticPaths = Array.from(staticPaths.entries()).sort(([a], [b])=>a.localeCompare(b));
|
|
1685
|
+
const exportApp = require('../export').default;
|
|
1686
|
+
const exportConfig = {
|
|
1687
|
+
...config,
|
|
1688
|
+
// Default map will be the collection of automatic statically exported
|
|
1689
|
+
// pages and incremental pages.
|
|
1690
|
+
// n.b. we cannot handle this above in combinedPages because the dynamic
|
|
1691
|
+
// page must be in the `pages` array, but not in the mapping.
|
|
1692
|
+
exportPathMap: (defaultMap)=>{
|
|
1693
|
+
// Dynamically routed pages should be prerendered to be used as
|
|
1694
|
+
// a client-side skeleton (fallback) while data is being fetched.
|
|
1695
|
+
// This ensures the end-user never sees a 500 or slow response from the
|
|
1696
|
+
// server.
|
|
1697
|
+
//
|
|
1698
|
+
// Note: prerendering disables automatic static optimization.
|
|
1699
|
+
ssgPages.forEach((page)=>{
|
|
1700
|
+
if ((0, _utils.isDynamicRoute)(page)) {
|
|
1701
|
+
tbdPrerenderRoutes.push(page);
|
|
1702
|
+
if (ssgStaticFallbackPages.has(page)) {
|
|
1703
|
+
// Override the rendering for the dynamic page to be treated as a
|
|
1704
|
+
// fallback render.
|
|
1705
|
+
if (i18n) {
|
|
1706
|
+
defaultMap[`/${i18n.defaultLocale}${page}`] = {
|
|
1707
|
+
page,
|
|
1708
|
+
_pagesFallback: true
|
|
1709
|
+
};
|
|
1710
|
+
} else {
|
|
1711
|
+
defaultMap[page] = {
|
|
1712
|
+
page,
|
|
1713
|
+
_pagesFallback: true
|
|
1714
|
+
};
|
|
1715
|
+
}
|
|
1716
|
+
} else {
|
|
1717
|
+
// Remove dynamically routed pages from the default path map when
|
|
1718
|
+
// fallback behavior is disabled.
|
|
1719
|
+
delete defaultMap[page];
|
|
1720
|
+
}
|
|
1721
|
+
}
|
|
1722
|
+
});
|
|
1723
|
+
// Append the "well-known" routes we should prerender for, e.g. blog
|
|
1724
|
+
// post slugs.
|
|
1725
|
+
additionalPaths.forEach((routes, page)=>{
|
|
1726
|
+
routes.forEach((route)=>{
|
|
1727
|
+
defaultMap[route.pathname] = {
|
|
1728
|
+
page,
|
|
1729
|
+
_ssgPath: route.encodedPathname
|
|
1730
|
+
};
|
|
1731
|
+
});
|
|
1732
|
+
});
|
|
1733
|
+
if (useStaticPages404 && !appDirOnly) {
|
|
1734
|
+
defaultMap['/404'] = {
|
|
1735
|
+
page: hasPages404 ? '/404' : '/_error'
|
|
1736
|
+
};
|
|
1737
|
+
}
|
|
1738
|
+
if (useDefaultStatic500 && !appDirOnly) {
|
|
1739
|
+
defaultMap['/500'] = {
|
|
1740
|
+
page: '/_error'
|
|
1741
|
+
};
|
|
1742
|
+
}
|
|
1743
|
+
// TODO: output manifest specific to app paths and their
|
|
1744
|
+
// revalidate periods and dynamicParams settings
|
|
1745
|
+
sortedStaticPaths.forEach(([originalAppPath, routes])=>{
|
|
1746
|
+
const appConfig = appDefaultConfigs.get(originalAppPath);
|
|
1747
|
+
const isDynamicError = (appConfig == null ? void 0 : appConfig.dynamic) === 'error';
|
|
1748
|
+
const isRoutePPREnabled = appConfig ? (0, _ppr.checkIsRoutePPREnabled)(config.experimental.ppr) : false;
|
|
1749
|
+
routes.forEach((route)=>{
|
|
1750
|
+
// If the route has any dynamic root segments, we need to skip
|
|
1751
|
+
// rendering the route. This is because we don't support
|
|
1752
|
+
// revalidating the shells without the parameters present.
|
|
1753
|
+
// Note that we only have fallback root params if we also have
|
|
1754
|
+
// PPR enabled for this route/app already.
|
|
1755
|
+
if (route.fallbackRootParams && route.fallbackRootParams.length > 0 && // We don't skip rendering the route if we have the
|
|
1756
|
+
// following enabled. This is because the flight data now
|
|
1757
|
+
// does not contain any of the route params and is instead
|
|
1758
|
+
// completely static.
|
|
1759
|
+
!config.cacheComponents) {
|
|
1760
|
+
return;
|
|
1761
|
+
}
|
|
1762
|
+
defaultMap[route.pathname] = {
|
|
1763
|
+
page: originalAppPath,
|
|
1764
|
+
_ssgPath: route.encodedPathname,
|
|
1765
|
+
_fallbackRouteParams: route.fallbackRouteParams,
|
|
1766
|
+
_isDynamicError: isDynamicError,
|
|
1767
|
+
_isAppDir: true,
|
|
1768
|
+
_isRoutePPREnabled: isRoutePPREnabled,
|
|
1769
|
+
_allowEmptyStaticShell: !route.throwOnEmptyStaticShell
|
|
1770
|
+
};
|
|
1771
|
+
});
|
|
1772
|
+
});
|
|
1773
|
+
if (i18n) {
|
|
1774
|
+
for (const page of [
|
|
1775
|
+
...staticPages,
|
|
1776
|
+
...ssgPages,
|
|
1777
|
+
...useStaticPages404 ? [
|
|
1778
|
+
'/404'
|
|
1779
|
+
] : [],
|
|
1780
|
+
...useDefaultStatic500 ? [
|
|
1781
|
+
'/500'
|
|
1782
|
+
] : []
|
|
1783
|
+
]){
|
|
1784
|
+
const isSsg = ssgPages.has(page);
|
|
1785
|
+
const isDynamic = (0, _utils.isDynamicRoute)(page);
|
|
1786
|
+
const isFallback = isSsg && ssgStaticFallbackPages.has(page);
|
|
1787
|
+
for (const locale of i18n.locales){
|
|
1788
|
+
var _defaultMap_page;
|
|
1789
|
+
// skip fallback generation for SSG pages without fallback mode
|
|
1790
|
+
if (isSsg && isDynamic && !isFallback) continue;
|
|
1791
|
+
const outputPath = `/${locale}${page === '/' ? '' : page}`;
|
|
1792
|
+
defaultMap[outputPath] = {
|
|
1793
|
+
page: ((_defaultMap_page = defaultMap[page]) == null ? void 0 : _defaultMap_page.page) || page,
|
|
1794
|
+
_locale: locale,
|
|
1795
|
+
_pagesFallback: isFallback
|
|
1796
|
+
};
|
|
1797
|
+
}
|
|
1798
|
+
if (isSsg) {
|
|
1799
|
+
// remove non-locale prefixed variant from defaultMap
|
|
1800
|
+
delete defaultMap[page];
|
|
1801
|
+
}
|
|
1802
|
+
}
|
|
1803
|
+
}
|
|
1804
|
+
return defaultMap;
|
|
1805
|
+
}
|
|
1806
|
+
};
|
|
1807
|
+
const outdir = _path.default.join(distDir, 'export');
|
|
1808
|
+
const exportResult = await exportApp(dir, {
|
|
1809
|
+
nextConfig: exportConfig,
|
|
1810
|
+
enabledDirectories,
|
|
1811
|
+
silent: true,
|
|
1812
|
+
buildExport: true,
|
|
1813
|
+
debugOutput,
|
|
1814
|
+
debugPrerender,
|
|
1815
|
+
pages: combinedPages,
|
|
1816
|
+
outdir,
|
|
1817
|
+
statusMessage: `Generating static pages using ${numberOfWorkers} worker${numberOfWorkers > 1 ? 's' : ''}`,
|
|
1818
|
+
numWorkers: numberOfWorkers,
|
|
1819
|
+
appDirOnly
|
|
1820
|
+
}, nextBuildSpan, staticWorker);
|
|
1821
|
+
// If there was no result, there's nothing more to do.
|
|
1822
|
+
if (!exportResult) return;
|
|
1823
|
+
const getFallbackMode = (route)=>{
|
|
1824
|
+
var _exportResult_byPath_get;
|
|
1825
|
+
const hasEmptyStaticShell = (_exportResult_byPath_get = exportResult.byPath.get(route.pathname)) == null ? void 0 : _exportResult_byPath_get.hasEmptyStaticShell;
|
|
1826
|
+
// If the route has an empty static shell and is not configured to
|
|
1827
|
+
// throw on empty static shell, then we should use the blocking
|
|
1828
|
+
// static render mode.
|
|
1829
|
+
if (hasEmptyStaticShell && !route.throwOnEmptyStaticShell && route.fallbackMode === _fallback.FallbackMode.PRERENDER) {
|
|
1830
|
+
return _fallback.FallbackMode.BLOCKING_STATIC_RENDER;
|
|
1831
|
+
}
|
|
1832
|
+
// If the route has no fallback mode, then we should use the
|
|
1833
|
+
// `NOT_FOUND` fallback mode.
|
|
1834
|
+
if (!route.fallbackMode) {
|
|
1835
|
+
return _fallback.FallbackMode.NOT_FOUND;
|
|
1836
|
+
}
|
|
1837
|
+
return route.fallbackMode;
|
|
1838
|
+
};
|
|
1839
|
+
const getCacheControl = (exportPath, defaultRevalidate = false)=>{
|
|
1840
|
+
var _exportResult_byPath_get;
|
|
1841
|
+
const cacheControl = (_exportResult_byPath_get = exportResult.byPath.get(exportPath)) == null ? void 0 : _exportResult_byPath_get.cacheControl;
|
|
1842
|
+
if (!cacheControl) {
|
|
1843
|
+
return {
|
|
1844
|
+
revalidate: defaultRevalidate,
|
|
1845
|
+
expire: undefined
|
|
1846
|
+
};
|
|
1847
|
+
}
|
|
1848
|
+
if (cacheControl.revalidate !== false && cacheControl.revalidate > 0 && cacheControl.expire === undefined) {
|
|
1849
|
+
return {
|
|
1850
|
+
revalidate: cacheControl.revalidate,
|
|
1851
|
+
expire: config.expireTime
|
|
1852
|
+
};
|
|
1853
|
+
}
|
|
1854
|
+
return cacheControl;
|
|
1855
|
+
};
|
|
1856
|
+
if (debugOutput || process.env.NEXT_SSG_FETCH_METRICS === '1') {
|
|
1857
|
+
(0, _builddiagnostics.recordFetchMetrics)(exportResult);
|
|
1858
|
+
}
|
|
1859
|
+
(0, _turborepoaccesstrace.writeTurborepoAccessTraceResult)({
|
|
1860
|
+
distDir: config.distDir,
|
|
1861
|
+
traces: [
|
|
1862
|
+
turborepoAccessTraceResult,
|
|
1863
|
+
...exportResult.turborepoAccessTraceResults.values()
|
|
1864
|
+
]
|
|
1865
|
+
});
|
|
1866
|
+
prerenderManifest.notFoundRoutes = Array.from(exportResult.ssgNotFoundPaths);
|
|
1867
|
+
// remove server bundles that were exported
|
|
1868
|
+
for (const page of staticPages){
|
|
1869
|
+
const serverBundle = (0, _require.getPagePath)(page, distDir, undefined, false);
|
|
1870
|
+
await _fs.promises.unlink(serverBundle);
|
|
1871
|
+
}
|
|
1872
|
+
sortedStaticPaths.forEach(([originalAppPath, prerenderedRoutes])=>{
|
|
1873
|
+
var _pageInfos_get, _pageInfos_get1;
|
|
1874
|
+
const page = appNormalizedPaths.get(originalAppPath);
|
|
1875
|
+
if (!page) throw Object.defineProperty(new _invarianterror.InvariantError('Page not found'), "__NEXT_ERROR_CODE", {
|
|
1876
|
+
value: "E619",
|
|
1877
|
+
enumerable: false,
|
|
1878
|
+
configurable: true
|
|
1879
|
+
});
|
|
1880
|
+
const appConfig = appDefaultConfigs.get(originalAppPath);
|
|
1881
|
+
if (!appConfig) throw Object.defineProperty(new _invarianterror.InvariantError('App config not found'), "__NEXT_ERROR_CODE", {
|
|
1882
|
+
value: "E616",
|
|
1883
|
+
enumerable: false,
|
|
1884
|
+
configurable: true
|
|
1885
|
+
});
|
|
1886
|
+
const ssgPageRoutesSet = new Set((_pageInfos_get = pageInfos.get(page)) == null ? void 0 : _pageInfos_get.ssgPageRoutes);
|
|
1887
|
+
let hasRevalidateZero = appConfig.revalidate === 0 || getCacheControl(page).revalidate === 0;
|
|
1888
|
+
if (hasRevalidateZero && ((_pageInfos_get1 = pageInfos.get(page)) == null ? void 0 : _pageInfos_get1.isStatic)) {
|
|
1889
|
+
// if the page was marked as being static, but it contains dynamic data
|
|
1890
|
+
// (ie, in the case of a static generation bailout), then it should be marked dynamic
|
|
1891
|
+
pageInfos.set(page, {
|
|
1892
|
+
...pageInfos.get(page),
|
|
1893
|
+
isStatic: false,
|
|
1894
|
+
isSSG: false
|
|
1895
|
+
});
|
|
1896
|
+
}
|
|
1897
|
+
const isAppRouteHandler = (0, _isapprouteroute.isAppRouteRoute)(originalAppPath);
|
|
1898
|
+
// When this is an app page and PPR is enabled, the route supports
|
|
1899
|
+
// partial pre-rendering.
|
|
1900
|
+
const isRoutePPREnabled = !isAppRouteHandler && (0, _ppr.checkIsRoutePPREnabled)(config.experimental.ppr) ? true : undefined;
|
|
1901
|
+
const htmlBotsRegexString = // The htmlLimitedBots has been converted to a string during loadConfig
|
|
1902
|
+
config.htmlLimitedBots || _isbot.HTML_LIMITED_BOT_UA_RE_STRING;
|
|
1903
|
+
// this flag is used to selectively bypass the static cache and invoke the lambda directly
|
|
1904
|
+
// to enable server actions on static routes
|
|
1905
|
+
const bypassFor = [
|
|
1906
|
+
{
|
|
1907
|
+
type: 'header',
|
|
1908
|
+
key: _approuterheaders.ACTION_HEADER
|
|
1909
|
+
},
|
|
1910
|
+
{
|
|
1911
|
+
type: 'header',
|
|
1912
|
+
key: 'content-type',
|
|
1913
|
+
value: 'multipart/form-data;.*'
|
|
1914
|
+
},
|
|
1915
|
+
// If it's PPR rendered non-static page, bypass the PPR cache when streaming metadata is enabled.
|
|
1916
|
+
// This will skip the postpone data for those bots requests and instead produce a dynamic render.
|
|
1917
|
+
...isRoutePPREnabled ? [
|
|
1918
|
+
{
|
|
1919
|
+
type: 'header',
|
|
1920
|
+
key: 'user-agent',
|
|
1921
|
+
value: htmlBotsRegexString
|
|
1922
|
+
}
|
|
1923
|
+
] : []
|
|
1924
|
+
];
|
|
1925
|
+
// We should collect all the dynamic routes into a single array for
|
|
1926
|
+
// this page. Including the full fallback route (the original
|
|
1927
|
+
// route), any routes that were generated with unknown route params
|
|
1928
|
+
// should be collected and included in the dynamic routes part
|
|
1929
|
+
// of the manifest instead.
|
|
1930
|
+
const staticPrerenderedRoutes = [];
|
|
1931
|
+
const dynamicPrerenderedRoutes = [];
|
|
1932
|
+
// Sort the outputted routes to ensure consistent output. Any route
|
|
1933
|
+
// though that has unknown route params will be pulled and sorted
|
|
1934
|
+
// independently. This is because the routes with unknown route
|
|
1935
|
+
// params will contain the dynamic path parameters, some of which
|
|
1936
|
+
// may conflict with the actual prerendered routes.
|
|
1937
|
+
const unsortedUnknownPrerenderRoutes = [];
|
|
1938
|
+
const unsortedKnownPrerenderRoutes = [];
|
|
1939
|
+
for (const prerenderedRoute of prerenderedRoutes){
|
|
1940
|
+
if (prerenderedRoute.fallbackRouteParams && prerenderedRoute.fallbackRouteParams.length > 0) {
|
|
1941
|
+
unsortedUnknownPrerenderRoutes.push(prerenderedRoute);
|
|
1942
|
+
} else {
|
|
1943
|
+
unsortedKnownPrerenderRoutes.push(prerenderedRoute);
|
|
1944
|
+
}
|
|
1945
|
+
}
|
|
1946
|
+
const sortedUnknownPrerenderRoutes = (0, _sortableroutes.sortPageObjects)(unsortedUnknownPrerenderRoutes, (prerenderedRoute)=>prerenderedRoute.pathname);
|
|
1947
|
+
const sortedKnownPrerenderRoutes = (0, _sortableroutes.sortPageObjects)(unsortedKnownPrerenderRoutes, (prerenderedRoute)=>prerenderedRoute.pathname);
|
|
1948
|
+
prerenderedRoutes = [
|
|
1949
|
+
...sortedKnownPrerenderRoutes,
|
|
1950
|
+
...sortedUnknownPrerenderRoutes
|
|
1951
|
+
];
|
|
1952
|
+
for (const prerenderedRoute of prerenderedRoutes){
|
|
1953
|
+
if (isRoutePPREnabled && prerenderedRoute.fallbackRouteParams && prerenderedRoute.fallbackRouteParams.length > 0) {
|
|
1954
|
+
// If the route has unknown params, then we need to add it to
|
|
1955
|
+
// the list of dynamic routes.
|
|
1956
|
+
dynamicPrerenderedRoutes.push(prerenderedRoute);
|
|
1957
|
+
} else {
|
|
1958
|
+
// If the route doesn't have unknown params, then we need to
|
|
1959
|
+
// add it to the list of static routes.
|
|
1960
|
+
staticPrerenderedRoutes.push(prerenderedRoute);
|
|
1961
|
+
}
|
|
1962
|
+
}
|
|
1963
|
+
// Handle all the static routes.
|
|
1964
|
+
for (const route of staticPrerenderedRoutes){
|
|
1965
|
+
if ((0, _utils.isDynamicRoute)(page) && route.pathname === page) continue;
|
|
1966
|
+
const { metadata = {}, hasEmptyStaticShell, hasPostponed } = exportResult.byPath.get(route.pathname) ?? {};
|
|
1967
|
+
const cacheControl = getCacheControl(route.pathname, appConfig.revalidate);
|
|
1968
|
+
pageInfos.set(route.pathname, {
|
|
1969
|
+
...pageInfos.get(route.pathname),
|
|
1970
|
+
hasPostponed,
|
|
1971
|
+
hasEmptyStaticShell,
|
|
1972
|
+
initialCacheControl: cacheControl
|
|
1973
|
+
});
|
|
1974
|
+
// update the page (eg /blog/[slug]) to also have the postpone metadata
|
|
1975
|
+
pageInfos.set(page, {
|
|
1976
|
+
...pageInfos.get(page),
|
|
1977
|
+
hasPostponed,
|
|
1978
|
+
hasEmptyStaticShell,
|
|
1979
|
+
initialCacheControl: cacheControl
|
|
1980
|
+
});
|
|
1981
|
+
if (cacheControl.revalidate !== 0) {
|
|
1982
|
+
const normalizedRoute = (0, _normalizepagepath.normalizePagePath)(route.pathname);
|
|
1983
|
+
let dataRoute;
|
|
1984
|
+
if (isAppRouteHandler) {
|
|
1985
|
+
dataRoute = null;
|
|
1986
|
+
} else {
|
|
1987
|
+
dataRoute = _path.default.posix.join(`${normalizedRoute}${_constants.RSC_SUFFIX}`);
|
|
1988
|
+
}
|
|
1989
|
+
const meta = (0, _utils1.collectMeta)(metadata);
|
|
1990
|
+
const status = route.pathname === _entryconstants.UNDERSCORE_NOT_FOUND_ROUTE ? 404 : meta.status;
|
|
1991
|
+
prerenderManifest.routes[route.pathname] = {
|
|
1992
|
+
initialStatus: status,
|
|
1993
|
+
initialHeaders: meta.headers,
|
|
1994
|
+
renderingMode: isAppPPREnabled ? isRoutePPREnabled ? _renderingmode.RenderingMode.PARTIALLY_STATIC : _renderingmode.RenderingMode.STATIC : undefined,
|
|
1995
|
+
experimentalPPR: isRoutePPREnabled,
|
|
1996
|
+
experimentalBypassFor: bypassFor,
|
|
1997
|
+
initialRevalidateSeconds: cacheControl.revalidate,
|
|
1998
|
+
initialExpireSeconds: cacheControl.expire,
|
|
1999
|
+
srcRoute: page,
|
|
2000
|
+
dataRoute,
|
|
2001
|
+
prefetchDataRoute: undefined,
|
|
2002
|
+
allowHeader: ALLOWED_HEADERS
|
|
2003
|
+
};
|
|
2004
|
+
} else {
|
|
2005
|
+
hasRevalidateZero = true;
|
|
2006
|
+
if (ssgPageRoutesSet.has(route.pathname)) {
|
|
2007
|
+
const pageInfo = pageInfos.get(page);
|
|
2008
|
+
// Remove the route from the SSG page routes if it bailed out
|
|
2009
|
+
// during prerendering.
|
|
2010
|
+
ssgPageRoutesSet.delete(route.pathname);
|
|
2011
|
+
// Mark the route as having a GSP and revalidate zero.
|
|
2012
|
+
if (ssgPageRoutesSet.size === 0) {
|
|
2013
|
+
hasGSPAndRevalidateZero.delete(page);
|
|
2014
|
+
} else {
|
|
2015
|
+
hasGSPAndRevalidateZero.add(page);
|
|
2016
|
+
}
|
|
2017
|
+
pageInfos.set(page, {
|
|
2018
|
+
...pageInfo,
|
|
2019
|
+
ssgPageRoutes: Array.from(ssgPageRoutesSet),
|
|
2020
|
+
// If there are no SSG page routes left, then the page is not SSG.
|
|
2021
|
+
isSSG: ssgPageRoutesSet.size === 0 ? false : pageInfo.isSSG
|
|
2022
|
+
});
|
|
2023
|
+
} else {
|
|
2024
|
+
// we might have determined during prerendering that this page
|
|
2025
|
+
// used dynamic data
|
|
2026
|
+
pageInfos.set(route.pathname, {
|
|
2027
|
+
...pageInfos.get(route.pathname),
|
|
2028
|
+
isSSG: false,
|
|
2029
|
+
isStatic: false
|
|
2030
|
+
});
|
|
2031
|
+
}
|
|
2032
|
+
}
|
|
2033
|
+
}
|
|
2034
|
+
if (!hasRevalidateZero && (0, _utils.isDynamicRoute)(page)) {
|
|
2035
|
+
// When PPR fallbacks aren't used, we need to include it here. If
|
|
2036
|
+
// they are enabled, then it'll already be included in the
|
|
2037
|
+
// prerendered routes.
|
|
2038
|
+
if (!isRoutePPREnabled) {
|
|
2039
|
+
dynamicPrerenderedRoutes.push({
|
|
2040
|
+
params: {},
|
|
2041
|
+
pathname: page,
|
|
2042
|
+
encodedPathname: page,
|
|
2043
|
+
fallbackRouteParams: [],
|
|
2044
|
+
fallbackMode: fallbackModes.get(originalAppPath) ?? _fallback.FallbackMode.NOT_FOUND,
|
|
2045
|
+
fallbackRootParams: [],
|
|
2046
|
+
throwOnEmptyStaticShell: true
|
|
2047
|
+
});
|
|
2048
|
+
}
|
|
2049
|
+
for (const route of dynamicPrerenderedRoutes){
|
|
2050
|
+
var _exportResult_byPath_get;
|
|
2051
|
+
const normalizedRoute = (0, _normalizepagepath.normalizePagePath)(route.pathname);
|
|
2052
|
+
const metadata = (_exportResult_byPath_get = exportResult.byPath.get(route.pathname)) == null ? void 0 : _exportResult_byPath_get.metadata;
|
|
2053
|
+
const cacheControl = getCacheControl(route.pathname);
|
|
2054
|
+
let dataRoute = null;
|
|
2055
|
+
if (!isAppRouteHandler) {
|
|
2056
|
+
dataRoute = _path.default.posix.join(`${normalizedRoute}${_constants.RSC_SUFFIX}`);
|
|
2057
|
+
}
|
|
2058
|
+
let prefetchDataRoute = null;
|
|
2059
|
+
let dynamicRoute = routesManifest.dynamicRoutes.find((r)=>r.page === route.pathname);
|
|
2060
|
+
if (!isAppRouteHandler && isAppPPREnabled) {
|
|
2061
|
+
// If the dynamic route wasn't found, then we need to create
|
|
2062
|
+
// it. This ensures that for each fallback shell there's an
|
|
2063
|
+
// entry in the app routes manifest which enables routing for
|
|
2064
|
+
// this fallback shell.
|
|
2065
|
+
if (!dynamicRoute) {
|
|
2066
|
+
dynamicRoute = (0, _utils1.pageToRoute)(route.pathname, page);
|
|
2067
|
+
sourcePages.set(route.pathname, page);
|
|
2068
|
+
// This route is not for the internal router, but instead
|
|
2069
|
+
// for external routers.
|
|
2070
|
+
dynamicRoute.skipInternalRouting = true;
|
|
2071
|
+
// Push this to the end of the array. The dynamic routes are
|
|
2072
|
+
// sorted by page later.
|
|
2073
|
+
dynamicRoutes.push(dynamicRoute);
|
|
2074
|
+
}
|
|
2075
|
+
}
|
|
2076
|
+
if (!isAppRouteHandler && ((metadata == null ? void 0 : metadata.segmentPaths) || route.fallbackRootParams && route.fallbackRootParams.length > 0)) {
|
|
2077
|
+
// If PPR isn't enabled, then we might not find the dynamic
|
|
2078
|
+
// route by pathname. If that's the case, we need to find the
|
|
2079
|
+
// route by page.
|
|
2080
|
+
if (!dynamicRoute) {
|
|
2081
|
+
dynamicRoute = dynamicRoutes.find((r)=>r.page === page);
|
|
2082
|
+
// If it can't be found by page, we must throw an error.
|
|
2083
|
+
if (!dynamicRoute) {
|
|
2084
|
+
throw Object.defineProperty(new _invarianterror.InvariantError('Dynamic route not found'), "__NEXT_ERROR_CODE", {
|
|
2085
|
+
value: "E633",
|
|
2086
|
+
enumerable: false,
|
|
2087
|
+
configurable: true
|
|
2088
|
+
});
|
|
2089
|
+
}
|
|
2090
|
+
}
|
|
2091
|
+
if (metadata == null ? void 0 : metadata.segmentPaths) {
|
|
2092
|
+
const pageSegmentPath = metadata.segmentPaths.find((item)=>item.endsWith('__PAGE__'));
|
|
2093
|
+
if (!pageSegmentPath) {
|
|
2094
|
+
throw Object.defineProperty(new Error(`Invariant: missing __PAGE__ segmentPath`), "__NEXT_ERROR_CODE", {
|
|
2095
|
+
value: "E759",
|
|
2096
|
+
enumerable: false,
|
|
2097
|
+
configurable: true
|
|
2098
|
+
});
|
|
2099
|
+
}
|
|
2100
|
+
// We build a combined segment data route from the
|
|
2101
|
+
// page segment as we need to limit the number of
|
|
2102
|
+
// routes we output and they can be shared
|
|
2103
|
+
const builtSegmentDataRoute = (0, _buildprefetchsegmentdataroute.buildPrefetchSegmentDataRoute)(route.pathname, pageSegmentPath);
|
|
2104
|
+
builtSegmentDataRoute.source = builtSegmentDataRoute.source.replace('/__PAGE__\\.segment\\.rsc$', `(?<segment>/__PAGE__\\.segment\\.rsc|\\.segment\\.rsc)(?:/)?$`);
|
|
2105
|
+
builtSegmentDataRoute.destination = builtSegmentDataRoute.destination.replace('/__PAGE__.segment.rsc', '$segment');
|
|
2106
|
+
dynamicRoute.prefetchSegmentDataRoutes ??= [];
|
|
2107
|
+
dynamicRoute.prefetchSegmentDataRoutes.push(builtSegmentDataRoute);
|
|
2108
|
+
}
|
|
2109
|
+
}
|
|
2110
|
+
pageInfos.set(route.pathname, {
|
|
2111
|
+
...pageInfos.get(route.pathname),
|
|
2112
|
+
isDynamicAppRoute: true,
|
|
2113
|
+
// if PPR is turned on and the route contains a dynamic segment,
|
|
2114
|
+
// we assume it'll be partially prerendered
|
|
2115
|
+
hasPostponed: isRoutePPREnabled
|
|
2116
|
+
});
|
|
2117
|
+
const fallbackMode = getFallbackMode(route);
|
|
2118
|
+
// When the route is configured to serve a prerender, we should
|
|
2119
|
+
// use the cache control from the export result. If it can't be
|
|
2120
|
+
// found, mark that we should keep the shell forever
|
|
2121
|
+
// (revalidate: `false` via `getCacheControl()`).
|
|
2122
|
+
const fallbackCacheControl = isRoutePPREnabled && fallbackMode === _fallback.FallbackMode.PRERENDER ? cacheControl : undefined;
|
|
2123
|
+
const fallback = (0, _fallback.fallbackModeToFallbackField)(fallbackMode, route.pathname);
|
|
2124
|
+
const meta = metadata && isRoutePPREnabled && fallbackMode === _fallback.FallbackMode.PRERENDER ? (0, _utils1.collectMeta)(metadata) : {};
|
|
2125
|
+
prerenderManifest.dynamicRoutes[route.pathname] = {
|
|
2126
|
+
experimentalPPR: isRoutePPREnabled,
|
|
2127
|
+
renderingMode: isAppPPREnabled ? isRoutePPREnabled ? _renderingmode.RenderingMode.PARTIALLY_STATIC : _renderingmode.RenderingMode.STATIC : undefined,
|
|
2128
|
+
experimentalBypassFor: bypassFor,
|
|
2129
|
+
routeRegex: (0, _loadcustomroutes.normalizeRouteRegex)((0, _routeregex.getNamedRouteRegex)(route.pathname, {
|
|
2130
|
+
prefixRouteKeys: false
|
|
2131
|
+
}).re.source),
|
|
2132
|
+
dataRoute,
|
|
2133
|
+
fallback,
|
|
2134
|
+
fallbackRevalidate: fallbackCacheControl == null ? void 0 : fallbackCacheControl.revalidate,
|
|
2135
|
+
fallbackExpire: fallbackCacheControl == null ? void 0 : fallbackCacheControl.expire,
|
|
2136
|
+
fallbackStatus: meta.status,
|
|
2137
|
+
fallbackHeaders: meta.headers,
|
|
2138
|
+
fallbackRootParams: fallback ? route.fallbackRootParams : undefined,
|
|
2139
|
+
fallbackSourceRoute: route.fallbackRouteParams && route.fallbackRouteParams.length > 0 ? page : undefined,
|
|
2140
|
+
fallbackRouteParams: route.fallbackRouteParams,
|
|
2141
|
+
dataRouteRegex: !dataRoute ? null : (0, _loadcustomroutes.normalizeRouteRegex)((0, _routeregex.getNamedRouteRegex)(dataRoute, {
|
|
2142
|
+
prefixRouteKeys: false,
|
|
2143
|
+
includeSuffix: true,
|
|
2144
|
+
excludeOptionalTrailingSlash: true
|
|
2145
|
+
}).re.source),
|
|
2146
|
+
prefetchDataRoute,
|
|
2147
|
+
prefetchDataRouteRegex: !prefetchDataRoute ? undefined : (0, _loadcustomroutes.normalizeRouteRegex)((0, _routeregex.getNamedRouteRegex)(prefetchDataRoute, {
|
|
2148
|
+
prefixRouteKeys: false,
|
|
2149
|
+
includeSuffix: true,
|
|
2150
|
+
excludeOptionalTrailingSlash: true
|
|
2151
|
+
}).re.source),
|
|
2152
|
+
allowHeader: ALLOWED_HEADERS
|
|
2153
|
+
};
|
|
2154
|
+
}
|
|
2155
|
+
}
|
|
2156
|
+
});
|
|
2157
|
+
const moveExportedPage = async (originPage, page, file, isSsg, ext, additionalSsgFile = false)=>{
|
|
2158
|
+
return staticGenerationSpan.traceChild('move-exported-page').traceAsyncFn(async ()=>{
|
|
2159
|
+
file = `${file}.${ext}`;
|
|
2160
|
+
const orig = _path.default.join(outdir, file);
|
|
2161
|
+
const pagePath = (0, _require.getPagePath)(originPage, distDir, undefined, false);
|
|
2162
|
+
const relativeDest = _path.default.relative(_path.default.join(distDir, _constants1.SERVER_DIRECTORY), _path.default.join(_path.default.join(pagePath, // strip leading / and then recurse number of nested dirs
|
|
2163
|
+
// to place from base folder
|
|
2164
|
+
originPage.slice(1).split('/').map(()=>'..').join('/')), file)).replace(/\\/g, '/');
|
|
2165
|
+
if (!isSsg && !// don't add static status page to manifest if it's
|
|
2166
|
+
// the default generated version e.g. no pages/500
|
|
2167
|
+
(_constants1.STATIC_STATUS_PAGES.includes(page) && !usedStaticStatusPages.includes(page))) {
|
|
2168
|
+
pagesManifest[page] = relativeDest;
|
|
2169
|
+
}
|
|
2170
|
+
const dest = _path.default.join(distDir, _constants1.SERVER_DIRECTORY, relativeDest);
|
|
2171
|
+
const isNotFound = prerenderManifest.notFoundRoutes.includes(page);
|
|
2172
|
+
// for SSG files with i18n the non-prerendered variants are
|
|
2173
|
+
// output with the locale prefixed so don't attempt moving
|
|
2174
|
+
// without the prefix
|
|
2175
|
+
if ((!i18n || additionalSsgFile) && !isNotFound) {
|
|
2176
|
+
await _fs.promises.mkdir(_path.default.dirname(dest), {
|
|
2177
|
+
recursive: true
|
|
2178
|
+
});
|
|
2179
|
+
await _fs.promises.rename(orig, dest);
|
|
2180
|
+
} else if (i18n && !isSsg) {
|
|
2181
|
+
// this will be updated with the locale prefixed variant
|
|
2182
|
+
// since all files are output with the locale prefix
|
|
2183
|
+
delete pagesManifest[page];
|
|
2184
|
+
}
|
|
2185
|
+
if (i18n) {
|
|
2186
|
+
if (additionalSsgFile) return;
|
|
2187
|
+
const localeExt = page === '/' ? _path.default.extname(file) : '';
|
|
2188
|
+
const relativeDestNoPages = relativeDest.slice('pages/'.length);
|
|
2189
|
+
for (const locale of i18n.locales){
|
|
2190
|
+
const curPath = `/${locale}${page === '/' ? '' : page}`;
|
|
2191
|
+
if (isSsg && prerenderManifest.notFoundRoutes.includes(curPath)) {
|
|
2192
|
+
continue;
|
|
2193
|
+
}
|
|
2194
|
+
const updatedRelativeDest = _path.default.join('pages', locale + localeExt, // if it's the top-most index page we want it to be locale.EXT
|
|
2195
|
+
// instead of locale/index.html
|
|
2196
|
+
page === '/' ? '' : relativeDestNoPages).replace(/\\/g, '/');
|
|
2197
|
+
const updatedOrig = _path.default.join(outdir, locale + localeExt, page === '/' ? '' : file);
|
|
2198
|
+
const updatedDest = _path.default.join(distDir, _constants1.SERVER_DIRECTORY, updatedRelativeDest);
|
|
2199
|
+
if (!isSsg) {
|
|
2200
|
+
pagesManifest[curPath] = updatedRelativeDest;
|
|
2201
|
+
}
|
|
2202
|
+
await _fs.promises.mkdir(_path.default.dirname(updatedDest), {
|
|
2203
|
+
recursive: true
|
|
2204
|
+
});
|
|
2205
|
+
await _fs.promises.rename(updatedOrig, updatedDest);
|
|
2206
|
+
}
|
|
2207
|
+
}
|
|
2208
|
+
});
|
|
2209
|
+
};
|
|
2210
|
+
async function moveExportedAppNotFoundTo404() {
|
|
2211
|
+
return staticGenerationSpan.traceChild('move-exported-app-not-found-').traceAsyncFn(async ()=>{
|
|
2212
|
+
const orig = _path.default.join(distDir, 'server', 'app', '_not-found.html');
|
|
2213
|
+
const updatedRelativeDest = _path.default.join('pages', '404.html').replace(/\\/g, '/');
|
|
2214
|
+
if ((0, _fs.existsSync)(orig)) {
|
|
2215
|
+
// if 404.html folder doesn't exist, create it
|
|
2216
|
+
await _fs.promises.mkdir(_path.default.dirname(_path.default.join(distDir, 'server', updatedRelativeDest)), {
|
|
2217
|
+
recursive: true
|
|
2218
|
+
});
|
|
2219
|
+
await _fs.promises.copyFile(orig, _path.default.join(distDir, 'server', updatedRelativeDest));
|
|
2220
|
+
// since the app router not found is prioritized over pages router,
|
|
2221
|
+
// we have to ensure the app router entries are available for all locales
|
|
2222
|
+
if (i18n) {
|
|
2223
|
+
for (const locale of i18n.locales){
|
|
2224
|
+
const curPath = `/${locale}/404`;
|
|
2225
|
+
pagesManifest[curPath] = updatedRelativeDest;
|
|
2226
|
+
}
|
|
2227
|
+
}
|
|
2228
|
+
pagesManifest['/404'] = updatedRelativeDest;
|
|
2229
|
+
}
|
|
2230
|
+
});
|
|
2231
|
+
}
|
|
2232
|
+
async function moveExportedAppGlobalErrorTo500() {
|
|
2233
|
+
return staticGenerationSpan.traceChild('move-exported-app-global-error-').traceAsyncFn(async ()=>{
|
|
2234
|
+
// If static 500.html exists in pages router, don't move it
|
|
2235
|
+
if ((0, _fs.existsSync)(_path.default.join(distDir, 'server', 'pages', '500.html'))) {
|
|
2236
|
+
return;
|
|
2237
|
+
}
|
|
2238
|
+
// Only handle 500.html generation for static export
|
|
2239
|
+
const orig = _path.default.join(distDir, 'server', 'app', '_global-error.html');
|
|
2240
|
+
if ((0, _fs.existsSync)(orig)) {
|
|
2241
|
+
const error500Html = _path.default.join(distDir, 'server', 'pages', '500.html');
|
|
2242
|
+
// if 500.html folder doesn't exist, create it
|
|
2243
|
+
await _fs.promises.mkdir(_path.default.dirname(error500Html), {
|
|
2244
|
+
recursive: true
|
|
2245
|
+
});
|
|
2246
|
+
await _fs.promises.copyFile(orig, error500Html);
|
|
2247
|
+
pagesManifest['/500'] = _path.default.join('pages', '500.html').replace(/\\/g, '/');
|
|
2248
|
+
}
|
|
2249
|
+
});
|
|
2250
|
+
}
|
|
2251
|
+
// If there's /not-found inside app, we prefer it over the pages 404
|
|
2252
|
+
if (hasStaticApp404) {
|
|
2253
|
+
await moveExportedAppNotFoundTo404();
|
|
2254
|
+
} else {
|
|
2255
|
+
// Only move /404 to /404 when there is no custom 404 as in that case we don't know about the 404 page
|
|
2256
|
+
if (!hasPages404 && !hasApp404 && useStaticPages404 && !appDirOnly) {
|
|
2257
|
+
await moveExportedPage('/_error', '/404', '/404', false, 'html');
|
|
2258
|
+
}
|
|
2259
|
+
}
|
|
2260
|
+
if (useDefaultStatic500 && !appDirOnly) {
|
|
2261
|
+
await moveExportedPage('/_error', '/500', '/500', false, 'html');
|
|
2262
|
+
}
|
|
2263
|
+
// If there's app router and no pages router, use app router built-in 500.html
|
|
2264
|
+
if (hasStaticAppGlobalError && mappedAppPages && Object.keys(mappedAppPages).length > 0) {
|
|
2265
|
+
await moveExportedAppGlobalErrorTo500();
|
|
2266
|
+
}
|
|
2267
|
+
for (const page of combinedPages){
|
|
2268
|
+
const isSsg = ssgPages.has(page);
|
|
2269
|
+
const isStaticSsgFallback = ssgStaticFallbackPages.has(page);
|
|
2270
|
+
const isDynamic = (0, _utils.isDynamicRoute)(page);
|
|
2271
|
+
const file = (0, _normalizepagepath.normalizePagePath)(page);
|
|
2272
|
+
const pageInfo = pageInfos.get(page);
|
|
2273
|
+
const durationInfo = exportResult.byPage.get(page);
|
|
2274
|
+
if (pageInfo && durationInfo) {
|
|
2275
|
+
// Set Build Duration
|
|
2276
|
+
if (pageInfo.ssgPageRoutes) {
|
|
2277
|
+
pageInfo.ssgPageDurations = pageInfo.ssgPageRoutes.map((pagePath)=>{
|
|
2278
|
+
const duration = durationInfo.durationsByPath.get(pagePath);
|
|
2279
|
+
if (typeof duration === 'undefined') {
|
|
2280
|
+
throw Object.defineProperty(new Error("Invariant: page wasn't built"), "__NEXT_ERROR_CODE", {
|
|
2281
|
+
value: "E239",
|
|
2282
|
+
enumerable: false,
|
|
2283
|
+
configurable: true
|
|
2284
|
+
});
|
|
2285
|
+
}
|
|
2286
|
+
return duration;
|
|
2287
|
+
});
|
|
2288
|
+
}
|
|
2289
|
+
pageInfo.pageDuration = durationInfo.durationsByPath.get(page);
|
|
2290
|
+
}
|
|
2291
|
+
// The dynamic version of SSG pages are only prerendered if the
|
|
2292
|
+
// fallback is enabled. Below, we handle the specific prerenders
|
|
2293
|
+
// of these.
|
|
2294
|
+
const hasHtmlOutput = !(isSsg && isDynamic && !isStaticSsgFallback);
|
|
2295
|
+
if (hasHtmlOutput) {
|
|
2296
|
+
await moveExportedPage(page, page, file, isSsg, 'html');
|
|
2297
|
+
}
|
|
2298
|
+
if (isSsg) {
|
|
2299
|
+
// For a non-dynamic SSG page, we must copy its data file
|
|
2300
|
+
// from export, we already moved the HTML file above
|
|
2301
|
+
if (!isDynamic) {
|
|
2302
|
+
await moveExportedPage(page, page, file, isSsg, 'json');
|
|
2303
|
+
if (i18n) {
|
|
2304
|
+
// TODO: do we want to show all locale variants in build output
|
|
2305
|
+
for (const locale of i18n.locales){
|
|
2306
|
+
const localePage = `/${locale}${page === '/' ? '' : page}`;
|
|
2307
|
+
const cacheControl = getCacheControl(localePage);
|
|
2308
|
+
prerenderManifest.routes[localePage] = {
|
|
2309
|
+
initialRevalidateSeconds: cacheControl.revalidate,
|
|
2310
|
+
initialExpireSeconds: cacheControl.expire,
|
|
2311
|
+
experimentalPPR: undefined,
|
|
2312
|
+
renderingMode: undefined,
|
|
2313
|
+
srcRoute: null,
|
|
2314
|
+
dataRoute: _path.default.posix.join('/_next/data', buildId, `${localePage}.json`),
|
|
2315
|
+
prefetchDataRoute: undefined,
|
|
2316
|
+
allowHeader: ALLOWED_HEADERS
|
|
2317
|
+
};
|
|
2318
|
+
}
|
|
2319
|
+
} else {
|
|
2320
|
+
const cacheControl = getCacheControl(page);
|
|
2321
|
+
prerenderManifest.routes[page] = {
|
|
2322
|
+
initialRevalidateSeconds: cacheControl.revalidate,
|
|
2323
|
+
initialExpireSeconds: cacheControl.expire,
|
|
2324
|
+
experimentalPPR: undefined,
|
|
2325
|
+
renderingMode: undefined,
|
|
2326
|
+
srcRoute: null,
|
|
2327
|
+
dataRoute: _path.default.posix.join('/_next/data', buildId, `${file}.json`),
|
|
2328
|
+
// Pages does not have a prefetch data route.
|
|
2329
|
+
prefetchDataRoute: undefined,
|
|
2330
|
+
allowHeader: ALLOWED_HEADERS
|
|
2331
|
+
};
|
|
2332
|
+
}
|
|
2333
|
+
if (pageInfo) {
|
|
2334
|
+
pageInfo.initialCacheControl = getCacheControl(page);
|
|
2335
|
+
}
|
|
2336
|
+
} else {
|
|
2337
|
+
// For a dynamic SSG page, we did not copy its data exports and only
|
|
2338
|
+
// copy the fallback HTML file (if present).
|
|
2339
|
+
// We must also copy specific versions of this page as defined by
|
|
2340
|
+
// `getStaticPaths` (additionalSsgPaths).
|
|
2341
|
+
for (const route of additionalPaths.get(page) ?? []){
|
|
2342
|
+
const pageFile = (0, _normalizepagepath.normalizePagePath)(route.pathname);
|
|
2343
|
+
await moveExportedPage(page, route.pathname, pageFile, isSsg, 'html', true);
|
|
2344
|
+
await moveExportedPage(page, route.pathname, pageFile, isSsg, 'json', true);
|
|
2345
|
+
const cacheControl = getCacheControl(route.pathname);
|
|
2346
|
+
prerenderManifest.routes[route.pathname] = {
|
|
2347
|
+
initialRevalidateSeconds: cacheControl.revalidate,
|
|
2348
|
+
initialExpireSeconds: cacheControl.expire,
|
|
2349
|
+
experimentalPPR: undefined,
|
|
2350
|
+
renderingMode: undefined,
|
|
2351
|
+
srcRoute: page,
|
|
2352
|
+
dataRoute: _path.default.posix.join('/_next/data', buildId, `${(0, _normalizepagepath.normalizePagePath)(route.pathname)}.json`),
|
|
2353
|
+
// Pages does not have a prefetch data route.
|
|
2354
|
+
prefetchDataRoute: undefined,
|
|
2355
|
+
allowHeader: ALLOWED_HEADERS
|
|
2356
|
+
};
|
|
2357
|
+
if (pageInfo) {
|
|
2358
|
+
pageInfo.initialCacheControl = cacheControl;
|
|
2359
|
+
}
|
|
2360
|
+
}
|
|
2361
|
+
}
|
|
2362
|
+
}
|
|
2363
|
+
}
|
|
2364
|
+
// remove temporary export folder
|
|
2365
|
+
await _fs.promises.rm(outdir, {
|
|
2366
|
+
recursive: true,
|
|
2367
|
+
force: true
|
|
2368
|
+
});
|
|
2369
|
+
await writeManifest(pagesManifestPath, pagesManifest);
|
|
2370
|
+
});
|
|
2371
|
+
// As we may have modified the dynamicRoutes, we need to sort the
|
|
2372
|
+
// dynamic routes by page.
|
|
2373
|
+
routesManifest.dynamicRoutes = (0, _sortableroutes.sortSortableRouteObjects)(dynamicRoutes, (route)=>({
|
|
2374
|
+
// If the route is PPR enabled, and has an associated source page,
|
|
2375
|
+
// use it. Otherwise fallback to the page which should be the same.
|
|
2376
|
+
sourcePage: sourcePages.get(route.page) ?? route.page,
|
|
2377
|
+
page: route.page
|
|
2378
|
+
}));
|
|
2379
|
+
// Now write the routes manifest out.
|
|
2380
|
+
await nextBuildSpan.traceChild('write-routes-manifest').traceAsyncFn(()=>writeManifest(routesManifestPath, routesManifest));
|
|
2381
|
+
}
|
|
2382
|
+
const finalizingPageOptimizationStart = process.hrtime();
|
|
2383
|
+
const postBuildSpinner = (0, _spinner.default)('Finalizing page optimization');
|
|
2384
|
+
let buildTracesSpinner;
|
|
2385
|
+
let buildTracesStart;
|
|
2386
|
+
if (buildTracesPromise) {
|
|
2387
|
+
buildTracesStart = process.hrtime();
|
|
2388
|
+
buildTracesSpinner = (0, _spinner.default)('Collecting build traces');
|
|
2389
|
+
}
|
|
2390
|
+
// When output: export we want to end the worker later as it's still used for writeFullyStaticExport
|
|
2391
|
+
if (config.output !== 'export') {
|
|
2392
|
+
// ensure the worker is not left hanging
|
|
2393
|
+
staticWorker == null ? void 0 : staticWorker.end();
|
|
2394
|
+
staticWorker = undefined // Reset staticWorker to make sure it does not end in `finally`
|
|
2395
|
+
;
|
|
2396
|
+
}
|
|
2397
|
+
const analysisEnd = process.hrtime(analysisBegin);
|
|
2398
|
+
telemetry.record((0, _events.eventBuildOptimize)(pagesPaths, {
|
|
2399
|
+
durationInSeconds: analysisEnd[0],
|
|
2400
|
+
staticPageCount: staticPages.size,
|
|
2401
|
+
staticPropsPageCount: ssgPages.size,
|
|
2402
|
+
serverPropsPageCount: serverPropsPages.size,
|
|
2403
|
+
ssrPageCount: pagesPaths.length - (staticPages.size + ssgPages.size + serverPropsPages.size),
|
|
2404
|
+
hasStatic404: useStaticPages404,
|
|
2405
|
+
hasReportWebVitals: (namedExports == null ? void 0 : namedExports.includes('reportWebVitals')) ?? false,
|
|
2406
|
+
rewritesCount: combinedRewrites.length,
|
|
2407
|
+
headersCount: headers.length,
|
|
2408
|
+
redirectsCount: redirects.length - 1,
|
|
2409
|
+
headersWithHasCount: headers.filter((r)=>!!r.has).length,
|
|
2410
|
+
rewritesWithHasCount: combinedRewrites.filter((r)=>!!r.has).length,
|
|
2411
|
+
redirectsWithHasCount: redirects.filter((r)=>!!r.has).length,
|
|
2412
|
+
middlewareCount: hasMiddlewareFile || hasProxyFile ? 1 : 0,
|
|
2413
|
+
totalAppPagesCount,
|
|
2414
|
+
staticAppPagesCount,
|
|
2415
|
+
serverAppPagesCount,
|
|
2416
|
+
edgeRuntimeAppCount,
|
|
2417
|
+
edgeRuntimePagesCount
|
|
2418
|
+
}));
|
|
2419
|
+
if (_buildcontext.NextBuildContext.telemetryState) {
|
|
2420
|
+
const events = (0, _events.eventBuildFeatureUsage)(_buildcontext.NextBuildContext.telemetryState.usages);
|
|
2421
|
+
telemetry.record(events);
|
|
2422
|
+
telemetry.record((0, _events.eventPackageUsedInGetServerSideProps)(_buildcontext.NextBuildContext.telemetryState.packagesUsedInServerSideProps));
|
|
2423
|
+
const useCacheTracker = _buildcontext.NextBuildContext.telemetryState.useCacheTracker;
|
|
2424
|
+
for (const [key, value] of Object.entries(useCacheTracker)){
|
|
2425
|
+
telemetry.record((0, _events.eventBuildFeatureUsage)([
|
|
2426
|
+
{
|
|
2427
|
+
featureName: key,
|
|
2428
|
+
invocationCount: value
|
|
2429
|
+
}
|
|
2430
|
+
]));
|
|
2431
|
+
}
|
|
2432
|
+
}
|
|
2433
|
+
if (ssgPages.size > 0 || appDir) {
|
|
2434
|
+
var _config_i18n;
|
|
2435
|
+
tbdPrerenderRoutes.forEach((tbdRoute)=>{
|
|
2436
|
+
const normalizedRoute = (0, _normalizepagepath.normalizePagePath)(tbdRoute);
|
|
2437
|
+
const dataRoute = _path.default.posix.join('/_next/data', buildId, `${normalizedRoute}.json`);
|
|
2438
|
+
prerenderManifest.dynamicRoutes[tbdRoute] = {
|
|
2439
|
+
routeRegex: (0, _loadcustomroutes.normalizeRouteRegex)((0, _routeregex.getNamedRouteRegex)(tbdRoute, {
|
|
2440
|
+
prefixRouteKeys: false
|
|
2441
|
+
}).re.source),
|
|
2442
|
+
experimentalPPR: undefined,
|
|
2443
|
+
renderingMode: undefined,
|
|
2444
|
+
dataRoute,
|
|
2445
|
+
fallback: ssgBlockingFallbackPages.has(tbdRoute) ? null : ssgStaticFallbackPages.has(tbdRoute) ? `${normalizedRoute}.html` : false,
|
|
2446
|
+
fallbackRevalidate: undefined,
|
|
2447
|
+
fallbackExpire: undefined,
|
|
2448
|
+
fallbackSourceRoute: undefined,
|
|
2449
|
+
fallbackRootParams: undefined,
|
|
2450
|
+
fallbackRouteParams: undefined,
|
|
2451
|
+
dataRouteRegex: (0, _loadcustomroutes.normalizeRouteRegex)((0, _routeregex.getNamedRouteRegex)(dataRoute, {
|
|
2452
|
+
prefixRouteKeys: true,
|
|
2453
|
+
includeSuffix: true,
|
|
2454
|
+
excludeOptionalTrailingSlash: true
|
|
2455
|
+
}).re.source),
|
|
2456
|
+
// Pages does not have a prefetch data route.
|
|
2457
|
+
prefetchDataRoute: undefined,
|
|
2458
|
+
prefetchDataRouteRegex: undefined,
|
|
2459
|
+
allowHeader: ALLOWED_HEADERS
|
|
2460
|
+
};
|
|
2461
|
+
});
|
|
2462
|
+
_buildcontext.NextBuildContext.previewModeId = previewProps.previewModeId;
|
|
2463
|
+
_buildcontext.NextBuildContext.fetchCacheKeyPrefix = config.experimental.fetchCacheKeyPrefix;
|
|
2464
|
+
_buildcontext.NextBuildContext.allowedRevalidateHeaderKeys = config.experimental.allowedRevalidateHeaderKeys;
|
|
2465
|
+
await writePrerenderManifest(distDir, prerenderManifest);
|
|
2466
|
+
await writeClientSsgManifest(prerenderManifest, {
|
|
2467
|
+
distDir,
|
|
2468
|
+
buildId,
|
|
2469
|
+
locales: (_config_i18n = config.i18n) == null ? void 0 : _config_i18n.locales
|
|
2470
|
+
});
|
|
2471
|
+
} else {
|
|
2472
|
+
await writePrerenderManifest(distDir, {
|
|
2473
|
+
version: 4,
|
|
2474
|
+
routes: {},
|
|
2475
|
+
dynamicRoutes: {},
|
|
2476
|
+
preview: previewProps,
|
|
2477
|
+
notFoundRoutes: []
|
|
2478
|
+
});
|
|
2479
|
+
}
|
|
2480
|
+
await writeImagesManifest(distDir, config);
|
|
2481
|
+
await writeManifest(_path.default.join(distDir, _constants1.EXPORT_MARKER), {
|
|
2482
|
+
version: 1,
|
|
2483
|
+
hasExportPathMap: typeof config.exportPathMap === 'function',
|
|
2484
|
+
exportTrailingSlash: config.trailingSlash === true,
|
|
2485
|
+
isNextImageImported: isNextImageImported === true
|
|
2486
|
+
});
|
|
2487
|
+
await _fs.promises.unlink(_path.default.join(distDir, _constants1.EXPORT_DETAIL)).catch((err)=>{
|
|
2488
|
+
if (err.code === 'ENOENT') {
|
|
2489
|
+
return Promise.resolve();
|
|
2490
|
+
}
|
|
2491
|
+
return Promise.reject(err);
|
|
2492
|
+
});
|
|
2493
|
+
if (Boolean(config.experimental.nextScriptWorkers)) {
|
|
2494
|
+
await nextBuildSpan.traceChild('verify-partytown-setup').traceAsyncFn(async ()=>{
|
|
2495
|
+
await (0, _verifypartytownsetup.verifyPartytownSetup)(dir, _path.default.join(distDir, _constants1.CLIENT_STATIC_FILES_PATH));
|
|
2496
|
+
});
|
|
2497
|
+
}
|
|
2498
|
+
await buildTracesPromise;
|
|
2499
|
+
if (buildTracesSpinner) {
|
|
2500
|
+
if (buildTracesStart) {
|
|
2501
|
+
const buildTracesEnd = process.hrtime(buildTracesStart);
|
|
2502
|
+
buildTracesSpinner.setText(`Collecting build traces in ${(0, _durationtostring.hrtimeDurationToString)(buildTracesEnd)}`);
|
|
2503
|
+
}
|
|
2504
|
+
buildTracesSpinner.stopAndPersist();
|
|
2505
|
+
buildTracesSpinner = undefined;
|
|
2506
|
+
}
|
|
2507
|
+
if (proxyFilePath && bundler !== _bundler.Bundler.Turbopack) {
|
|
2508
|
+
await _fs.promises.rename(_path.default.join(distDir, _constants1.SERVER_DIRECTORY, 'proxy.js'), _path.default.join(distDir, _constants1.SERVER_DIRECTORY, 'middleware.js'));
|
|
2509
|
+
await _fs.promises.rename(_path.default.join(distDir, _constants1.SERVER_DIRECTORY, 'proxy.js.nft.json'), _path.default.join(distDir, _constants1.SERVER_DIRECTORY, 'middleware.js.nft.json'));
|
|
2510
|
+
const middlewareNft = JSON.parse(await _fs.promises.readFile(_path.default.join(distDir, _constants1.SERVER_DIRECTORY, 'middleware.js.nft.json'), 'utf8'));
|
|
2511
|
+
// When Proxy self-reference itself e.g. __filename, it is traced to
|
|
2512
|
+
// the NFT file. However, since we rename 'proxy.js' to 'middleware.js',
|
|
2513
|
+
// the files in NFT will differ from the actual outputs, which will fail
|
|
2514
|
+
// for the providers like Vercel that uses NFT. Therefore also rename
|
|
2515
|
+
// the 'proxy.js' to 'middleware.js' in the NFT file.
|
|
2516
|
+
let hasProxyJsInNft = false;
|
|
2517
|
+
middlewareNft.files = middlewareNft.files.map((file)=>{
|
|
2518
|
+
if (file === 'proxy.js') {
|
|
2519
|
+
hasProxyJsInNft = true;
|
|
2520
|
+
return 'middleware.js';
|
|
2521
|
+
}
|
|
2522
|
+
return file;
|
|
2523
|
+
});
|
|
2524
|
+
if (hasProxyJsInNft) {
|
|
2525
|
+
await _fs.promises.writeFile(_path.default.join(distDir, _constants1.SERVER_DIRECTORY, 'middleware.js.nft.json'), JSON.stringify(middlewareNft));
|
|
2526
|
+
}
|
|
2527
|
+
}
|
|
2528
|
+
if (isCompileMode) {
|
|
2529
|
+
_log.info(`Build ran with "compile" mode, to finalize the build run either "generate" or "generate-env" mode as well`);
|
|
2530
|
+
}
|
|
2531
|
+
if (config.output === 'export') {
|
|
2532
|
+
// TODO: When writeFullyStaticExport doesn't fail when staticWorker is passed moved this after writeFullyStaticExport.
|
|
2533
|
+
// End the worker here when it's output: export.
|
|
2534
|
+
staticWorker.end();
|
|
2535
|
+
staticWorker = undefined // Reset staticWorker to make sure it does not end in `finally`
|
|
2536
|
+
;
|
|
2537
|
+
await nextBuildSpan.traceChild('output-export-full-static-export').traceAsyncFn(async ()=>{
|
|
2538
|
+
await writeFullyStaticExport(config, dir, enabledDirectories, configOutDir, nextBuildSpan, appDirOnly);
|
|
2539
|
+
});
|
|
2540
|
+
}
|
|
2541
|
+
// This should come after output: export handling but before
|
|
2542
|
+
// output: standalone, in the future output: standalone might
|
|
2543
|
+
// not be allowed if an adapter with onBuildComplete is configured
|
|
2544
|
+
const adapterPath = config.experimental.adapterPath;
|
|
2545
|
+
if (adapterPath) {
|
|
2546
|
+
await nextBuildSpan.traceChild('adapter-handle-build-complete').traceAsyncFn(async ()=>{
|
|
2547
|
+
await (0, _buildcomplete.handleBuildComplete)({
|
|
2548
|
+
dir,
|
|
2549
|
+
distDir,
|
|
2550
|
+
config,
|
|
2551
|
+
buildId,
|
|
2552
|
+
configOutDir: _path.default.join(dir, configOutDir),
|
|
2553
|
+
staticPages,
|
|
2554
|
+
serverPropsPages,
|
|
2555
|
+
nextVersion: "16.1.6",
|
|
2556
|
+
tracingRoot: outputFileTracingRoot,
|
|
2557
|
+
hasNodeMiddleware,
|
|
2558
|
+
hasInstrumentationHook,
|
|
2559
|
+
adapterPath,
|
|
2560
|
+
pageKeys: pageKeys.pages,
|
|
2561
|
+
appPageKeys: denormalizedAppPages,
|
|
2562
|
+
routesManifest,
|
|
2563
|
+
prerenderManifest,
|
|
2564
|
+
middlewareManifest,
|
|
2565
|
+
functionsConfigManifest,
|
|
2566
|
+
hasStatic404: useStaticPages404,
|
|
2567
|
+
hasStatic500: useDefaultStatic500,
|
|
2568
|
+
requiredServerFiles: requiredServerFilesManifest.files
|
|
2569
|
+
});
|
|
2570
|
+
});
|
|
2571
|
+
}
|
|
2572
|
+
if (config.output === 'standalone') {
|
|
2573
|
+
await nextBuildSpan.traceChild('output-standalone').traceAsyncFn(async ()=>{
|
|
2574
|
+
await writeStandaloneDirectory(nextBuildSpan, distDir, pageKeys, denormalizedAppPages, outputFileTracingRoot, requiredServerFilesManifest, middlewareManifest, hasNodeMiddleware, hasInstrumentationHook, staticPages, loadedEnvFiles, appDir);
|
|
2575
|
+
});
|
|
2576
|
+
}
|
|
2577
|
+
if (postBuildSpinner) {
|
|
2578
|
+
const finalizingPageOptimizationEnd = process.hrtime(finalizingPageOptimizationStart);
|
|
2579
|
+
postBuildSpinner.setText(`Finalizing page optimization in ${(0, _durationtostring.hrtimeDurationToString)(finalizingPageOptimizationEnd)}`);
|
|
2580
|
+
postBuildSpinner.stopAndPersist();
|
|
2581
|
+
}
|
|
2582
|
+
console.log();
|
|
2583
|
+
if (debugOutput) {
|
|
2584
|
+
nextBuildSpan.traceChild('print-custom-routes').traceFn(()=>(0, _utils1.printCustomRoutes)({
|
|
2585
|
+
redirects,
|
|
2586
|
+
rewrites,
|
|
2587
|
+
headers
|
|
2588
|
+
}));
|
|
2589
|
+
}
|
|
2590
|
+
await nextBuildSpan.traceChild('print-tree-view').traceAsyncFn(()=>(0, _utils1.printTreeView)(pageKeys, pageInfos, {
|
|
2591
|
+
pagesDir,
|
|
2592
|
+
useStaticPages404,
|
|
2593
|
+
pageExtensions: config.pageExtensions,
|
|
2594
|
+
buildManifest,
|
|
2595
|
+
middlewareManifest,
|
|
2596
|
+
functionsConfigManifest,
|
|
2597
|
+
hasGSPAndRevalidateZero
|
|
2598
|
+
}));
|
|
2599
|
+
await nextBuildSpan.traceChild('telemetry-flush').traceAsyncFn(()=>telemetry.flush());
|
|
2600
|
+
await shutdownPromise;
|
|
2601
|
+
if (_buildcontext.NextBuildContext.analyze) {
|
|
2602
|
+
await (0, _promises.cp)(_path.default.join(__dirname, '../bundle-analyzer'), _path.default.join(dir, '.next/diagnostics/analyze'), {
|
|
2603
|
+
recursive: true
|
|
2604
|
+
});
|
|
2605
|
+
await (0, _promises.mkdir)(_path.default.join(dir, '.next/diagnostics/analyze/data'), {
|
|
2606
|
+
recursive: true
|
|
2607
|
+
});
|
|
2608
|
+
// Write an index of routes for the route picker
|
|
2609
|
+
await (0, _promises.writeFile)(_path.default.join(dir, '.next/diagnostics/analyze/data/routes.json'), JSON.stringify(routesManifest.dynamicRoutes.map((r)=>r.page).concat(routesManifest.staticRoutes.map((r)=>r.page)), null, 2));
|
|
2610
|
+
}
|
|
2611
|
+
});
|
|
2612
|
+
} catch (e) {
|
|
2613
|
+
const telemetry = _shared.traceGlobals.get('telemetry');
|
|
2614
|
+
if (telemetry) {
|
|
2615
|
+
telemetry.record((0, _events.eventBuildFailed)({
|
|
2616
|
+
bundler: getBundlerForTelemetry(bundler),
|
|
2617
|
+
errorCode: getErrorCodeForTelemetry(e),
|
|
2618
|
+
durationInSeconds: Math.floor((Date.now() - buildStartTime) / 1000)
|
|
2619
|
+
}));
|
|
2620
|
+
}
|
|
2621
|
+
throw e;
|
|
2622
|
+
} finally{
|
|
2623
|
+
// @ts-expect-error Existence of staticWorker is checked here intentionally.
|
|
2624
|
+
if (staticWorker) {
|
|
2625
|
+
staticWorker.end();
|
|
2626
|
+
}
|
|
2627
|
+
// Ensure we wait for lockfile patching if present
|
|
2628
|
+
await _swc.lockfilePatchPromise.cur;
|
|
2629
|
+
// Flush telemetry before finishing (waits for async operations like setTimeout in debug mode)
|
|
2630
|
+
const telemetry = _shared.traceGlobals.get('telemetry');
|
|
2631
|
+
if (telemetry) {
|
|
2632
|
+
await telemetry.flush();
|
|
2633
|
+
}
|
|
2634
|
+
// Ensure all traces are flushed before finishing the command
|
|
2635
|
+
await (0, _trace.flushAllTraces)();
|
|
2636
|
+
(0, _swc.teardownTraceSubscriber)();
|
|
2637
|
+
if (traceUploadUrl && loadedConfig) {
|
|
2638
|
+
(0, _uploadtrace.default)({
|
|
2639
|
+
traceUploadUrl,
|
|
2640
|
+
mode: 'build',
|
|
2641
|
+
projectDir: dir,
|
|
2642
|
+
distDir: loadedConfig.distDir,
|
|
2643
|
+
isTurboSession: bundler === _bundler.Bundler.Turbopack,
|
|
2644
|
+
sync: true
|
|
2645
|
+
});
|
|
2646
|
+
}
|
|
2647
|
+
}
|
|
2648
|
+
}
|
|
2649
|
+
function errorFromUnsupportedSegmentConfig() {
|
|
2650
|
+
_log.error(`Invalid segment configuration export detected. This can cause unexpected behavior from the configs not being applied. You should see the relevant failures in the logs above. Please fix them to continue.`);
|
|
2651
|
+
process.exit(1);
|
|
2652
|
+
}
|
|
2653
|
+
function getBundlerForTelemetry(bundler) {
|
|
2654
|
+
switch(bundler){
|
|
2655
|
+
case _bundler.Bundler.Turbopack:
|
|
2656
|
+
return 'turbopack';
|
|
2657
|
+
case _bundler.Bundler.Rspack:
|
|
2658
|
+
return 'rspack';
|
|
2659
|
+
case _bundler.Bundler.Webpack:
|
|
2660
|
+
return 'webpack';
|
|
2661
|
+
default:
|
|
2662
|
+
throw Object.defineProperty(new Error(`unknown bundler: ${bundler}`), "__NEXT_ERROR_CODE", {
|
|
2663
|
+
value: "E826",
|
|
2664
|
+
enumerable: false,
|
|
2665
|
+
configurable: true
|
|
2666
|
+
});
|
|
2667
|
+
}
|
|
2668
|
+
}
|
|
2669
|
+
function getErrorCodeForTelemetry(err) {
|
|
2670
|
+
const code = (0, _errortelemetryutils.extractNextErrorCode)(err);
|
|
2671
|
+
if (code != null) {
|
|
2672
|
+
return code;
|
|
2673
|
+
}
|
|
2674
|
+
if (err instanceof Error && 'code' in err && typeof err.code === 'string') {
|
|
2675
|
+
return err.code;
|
|
2676
|
+
}
|
|
2677
|
+
if (err instanceof Error) {
|
|
2678
|
+
return err.name;
|
|
2679
|
+
}
|
|
2680
|
+
return 'Unknown';
|
|
2681
|
+
}
|
|
2682
|
+
|
|
2683
|
+
//# sourceMappingURL=index.js.map
|