qalita 2.5.4__py3-none-any.whl → 2.6.1__py3-none-any.whl
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.
- qalita/_frontend/.next/static/_0oyfpC7N2IGDMa04TT9R/_clientMiddlewareManifest.json +6 -0
- qalita/_frontend/.next/static/chunks/236f7e5abd6f09ff.js +4 -0
- qalita/_frontend/.next/static/chunks/30ea11065999f7ac.js +1 -0
- qalita/_frontend/.next/static/chunks/4dd28bc3f722184a.js +2 -0
- qalita/_frontend/.next/static/chunks/711d597b816a80c1.js +1 -0
- qalita/_frontend/.next/static/chunks/7340adf74ff47ec0.js +1 -0
- qalita/_frontend/.next/static/chunks/a6dad97d9634a72d.js.map +1 -0
- qalita/_frontend/.next/static/chunks/{e393fec0d8ba175d.js → ecf559101be0ae12.js} +3 -3
- qalita/_frontend/.next/static/chunks/turbopack-25186fc8e1264445.js +4 -0
- qalita/_frontend/node_modules/@img/sharp-libvips-linux-x64/versions.json +30 -0
- qalita/_frontend/node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json +30 -0
- qalita/_frontend/node_modules/@next/env/package.json +4 -4
- qalita/_frontend/node_modules/next/dist/build/analyze/index.js +242 -0
- qalita/_frontend/node_modules/next/dist/build/define-env.js +22 -13
- qalita/_frontend/node_modules/next/dist/build/entries.js +5 -5
- qalita/_frontend/node_modules/next/dist/build/generate-routes-manifest.js +91 -0
- qalita/_frontend/node_modules/next/dist/build/index.js +172 -223
- qalita/_frontend/node_modules/next/dist/build/output/log.js +4 -7
- qalita/_frontend/node_modules/next/dist/build/segment-config/app/app-segments.js +23 -99
- qalita/_frontend/node_modules/next/dist/build/segment-config/app/collect-root-param-keys.js +3 -3
- qalita/_frontend/node_modules/next/dist/build/spinner.js +3 -3
- qalita/_frontend/node_modules/next/dist/build/static-paths/app/extract-pathname-route-param-segments-from-loader-tree.js +137 -0
- qalita/_frontend/node_modules/next/dist/build/static-paths/app.js +69 -210
- qalita/_frontend/node_modules/next/dist/build/static-paths/utils.js +83 -11
- qalita/_frontend/node_modules/next/dist/build/swc/index.js +10 -6
- qalita/_frontend/node_modules/next/dist/build/templates/app-page.js +21 -14
- qalita/_frontend/node_modules/next/dist/build/templates/app-route.js +8 -10
- qalita/_frontend/node_modules/next/dist/build/templates/edge-app-route.js +7 -10
- qalita/_frontend/node_modules/next/dist/build/templates/edge-ssr-app.js +16 -20
- qalita/_frontend/node_modules/next/dist/build/templates/edge-ssr.js +20 -14
- qalita/_frontend/node_modules/next/dist/build/templates/edge-wrapper.js +24 -0
- qalita/_frontend/node_modules/next/dist/build/templates/middleware.js +7 -6
- qalita/_frontend/node_modules/next/dist/build/templates/pages-edge-api.js +3 -2
- qalita/_frontend/node_modules/next/dist/build/turbopack-analyze/index.js +116 -0
- qalita/_frontend/node_modules/next/dist/build/turbopack-build/impl.js +2 -1
- qalita/_frontend/node_modules/next/dist/build/type-check.js +7 -8
- qalita/_frontend/node_modules/next/dist/build/utils.js +45 -4
- qalita/_frontend/node_modules/next/dist/build/validate-app-paths.js +242 -0
- qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-app-loader/index.js +20 -2
- qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-edge-app-route-loader/index.js +2 -5
- qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-edge-ssr-loader/index.js +4 -11
- qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-root-params-loader.js +1 -1
- qalita/_frontend/node_modules/next/dist/build/webpack/plugins/flight-manifest-plugin.js +1 -1
- qalita/_frontend/node_modules/next/dist/build/webpack/plugins/middleware-plugin.js +3 -0
- qalita/_frontend/node_modules/next/dist/build/webpack-build/impl.js +1 -0
- qalita/_frontend/node_modules/next/dist/build/webpack-config.js +35 -3
- qalita/_frontend/node_modules/next/dist/cli/next-test.js +3 -5
- qalita/_frontend/node_modules/next/dist/client/components/app-router-headers.js +5 -0
- qalita/_frontend/node_modules/next/dist/client/components/app-router-instance.js +3 -11
- qalita/_frontend/node_modules/next/dist/client/components/app-router.js +8 -28
- qalita/_frontend/node_modules/next/dist/client/components/navigation-devtools.js +5 -7
- qalita/_frontend/node_modules/next/dist/client/components/navigation.js +4 -3
- qalita/_frontend/node_modules/next/dist/client/components/router-reducer/create-initial-router-state.js +3 -22
- qalita/_frontend/node_modules/next/dist/client/components/router-reducer/fetch-server-response.js +6 -18
- qalita/_frontend/node_modules/next/dist/client/components/router-reducer/ppr-navigations.js +844 -590
- qalita/_frontend/node_modules/next/dist/client/components/router-reducer/reducers/hmr-refresh-reducer.js +4 -76
- qalita/_frontend/node_modules/next/dist/client/components/router-reducer/reducers/navigate-reducer.js +21 -18
- qalita/_frontend/node_modules/next/dist/client/components/router-reducer/reducers/refresh-reducer.js +48 -85
- qalita/_frontend/node_modules/next/dist/client/components/router-reducer/reducers/restore-reducer.js +25 -10
- qalita/_frontend/node_modules/next/dist/client/components/router-reducer/reducers/server-action-reducer.js +126 -113
- qalita/_frontend/node_modules/next/dist/client/components/router-reducer/reducers/server-patch-reducer.js +30 -39
- qalita/_frontend/node_modules/next/dist/client/components/router-reducer/router-reducer-types.js +0 -1
- qalita/_frontend/node_modules/next/dist/client/components/router-reducer/router-reducer.js +2 -2
- qalita/_frontend/node_modules/next/dist/client/components/segment-cache/cache-map.js +13 -18
- qalita/_frontend/node_modules/next/dist/client/components/segment-cache/cache.js +27 -14
- qalita/_frontend/node_modules/next/dist/client/components/segment-cache/lru.js +3 -1
- qalita/_frontend/node_modules/next/dist/client/components/segment-cache/navigation.js +176 -133
- qalita/_frontend/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +12 -12
- qalita/_frontend/node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js +12 -12
- qalita/_frontend/node_modules/next/dist/compiled/next-server/app-route-turbo.runtime.prod.js +3 -3
- qalita/_frontend/node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js +10 -10
- qalita/_frontend/node_modules/next/dist/compiled/react-is/package.json +1 -1
- qalita/_frontend/node_modules/next/dist/lib/build-custom-route.js +4 -4
- qalita/_frontend/node_modules/next/dist/lib/constants.js +0 -5
- qalita/_frontend/node_modules/next/dist/lib/default-transpiled-packages.json +1 -0
- qalita/_frontend/node_modules/next/dist/lib/generate-interception-routes-rewrites.js +0 -1
- qalita/_frontend/node_modules/next/dist/lib/helpers/get-npx-command.js +3 -3
- qalita/_frontend/node_modules/next/dist/lib/inline-static-env.js +1 -1
- qalita/_frontend/node_modules/next/dist/lib/known-edge-safe-packages.json +1 -0
- qalita/_frontend/node_modules/next/dist/lib/metadata/metadata.js +17 -11
- qalita/_frontend/node_modules/next/dist/lib/needs-experimental-react.js +2 -2
- qalita/_frontend/node_modules/next/dist/lib/resolve-build-paths.js +44 -76
- qalita/_frontend/node_modules/next/dist/lib/server-external-packages.jsonc +103 -0
- qalita/_frontend/node_modules/next/dist/lib/static-env.js +6 -6
- qalita/_frontend/node_modules/next/dist/lib/turbopack-warning.js +3 -5
- qalita/_frontend/node_modules/next/dist/lib/typescript/runTypeCheck.js +61 -5
- qalita/_frontend/node_modules/next/dist/lib/typescript/type-paths.js +56 -0
- qalita/_frontend/node_modules/next/dist/lib/typescript/writeConfigurationDefaults.js +6 -17
- qalita/_frontend/node_modules/next/dist/lib/verify-typescript-setup.js +10 -2
- qalita/_frontend/node_modules/next/dist/lib/worker.js +17 -9
- qalita/_frontend/node_modules/next/dist/server/app-render/action-handler.js +113 -77
- qalita/_frontend/node_modules/next/dist/server/app-render/app-render-prerender-utils.js +36 -15
- qalita/_frontend/node_modules/next/dist/server/app-render/app-render-render-utils.js +36 -15
- qalita/_frontend/node_modules/next/dist/server/app-render/app-render-scheduling.js +188 -0
- qalita/_frontend/node_modules/next/dist/server/app-render/app-render.js +804 -748
- qalita/_frontend/node_modules/next/dist/server/app-render/collect-segment-data.js +8 -2
- qalita/_frontend/node_modules/next/dist/server/app-render/create-component-styles-and-scripts.js +1 -1
- qalita/_frontend/node_modules/next/dist/server/app-render/create-error-handler.js +42 -75
- qalita/_frontend/node_modules/next/dist/server/app-render/dynamic-rendering.js +127 -14
- qalita/_frontend/node_modules/next/dist/server/app-render/encryption-utils.js +3 -108
- qalita/_frontend/node_modules/next/dist/server/app-render/encryption.js +4 -3
- qalita/_frontend/node_modules/next/dist/server/app-render/flight-render-result.js +3 -2
- qalita/_frontend/node_modules/next/dist/server/app-render/get-css-inlined-link-tags.js +9 -8
- qalita/_frontend/node_modules/next/dist/server/app-render/get-layer-assets.js +1 -1
- qalita/_frontend/node_modules/next/dist/server/app-render/manifests-singleton.js +257 -0
- qalita/_frontend/node_modules/next/dist/server/app-render/prospective-render-utils.js +25 -8
- qalita/_frontend/node_modules/next/dist/server/app-render/staged-rendering.js +161 -15
- qalita/_frontend/node_modules/next/dist/server/app-render/use-flight-response.js +67 -20
- qalita/_frontend/node_modules/next/dist/server/app-render/walk-tree-with-flight-router-state.js +2 -2
- qalita/_frontend/node_modules/next/dist/server/async-storage/work-store.js +2 -1
- qalita/_frontend/node_modules/next/dist/server/base-server.js +32 -23
- qalita/_frontend/node_modules/next/dist/server/capsize-font-metrics.json +181516 -0
- qalita/_frontend/node_modules/next/dist/server/config-schema.js +8 -1
- qalita/_frontend/node_modules/next/dist/server/config-shared.js +83 -2
- qalita/_frontend/node_modules/next/dist/server/config.js +24 -17
- qalita/_frontend/node_modules/next/dist/server/dev/hot-reloader-rspack.js +171 -0
- qalita/_frontend/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +37 -25
- qalita/_frontend/node_modules/next/dist/server/dev/hot-reloader-types.js +1 -0
- qalita/_frontend/node_modules/next/dist/server/dev/hot-reloader-webpack.js +62 -57
- qalita/_frontend/node_modules/next/dist/server/dev/log-requests.js +11 -3
- qalita/_frontend/node_modules/next/dist/server/dev/messages.js +10 -0
- qalita/_frontend/node_modules/next/dist/server/dev/serialized-errors.js +67 -0
- qalita/_frontend/node_modules/next/dist/server/dev/static-paths-worker.js +10 -0
- qalita/_frontend/node_modules/next/dist/server/lib/app-info-log.js +1 -1
- qalita/_frontend/node_modules/next/dist/server/lib/chrome-devtools-workspace.js +2 -2
- qalita/_frontend/node_modules/next/dist/server/lib/dev-bundler-service.js +6 -10
- qalita/_frontend/node_modules/next/dist/server/lib/incremental-cache/file-system-cache.js +4 -4
- qalita/_frontend/node_modules/next/dist/server/lib/lazy-result.js +1 -1
- qalita/_frontend/node_modules/next/dist/server/lib/patch-fetch.js +9 -9
- qalita/_frontend/node_modules/next/dist/server/lib/router-server.js +43 -29
- qalita/_frontend/node_modules/next/dist/server/lib/router-utils/build-prefetch-segment-data-route.js +0 -21
- qalita/_frontend/node_modules/next/dist/server/lib/router-utils/filesystem.js +2 -7
- qalita/_frontend/node_modules/next/dist/server/lib/router-utils/resolve-routes.js +8 -4
- qalita/_frontend/node_modules/next/dist/server/lib/start-server.js +3 -3
- qalita/_frontend/node_modules/next/dist/server/lib/trace/tracer.js +4 -0
- qalita/_frontend/node_modules/next/dist/server/load-components.js +3 -9
- qalita/_frontend/node_modules/next/dist/server/next-server.js +19 -18
- qalita/_frontend/node_modules/next/dist/server/next.js +1 -1
- qalita/_frontend/node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js +570 -0
- qalita/_frontend/node_modules/next/dist/server/node-environment-extensions/utils.js +60 -3
- qalita/_frontend/node_modules/next/dist/server/node-environment.js +1 -0
- qalita/_frontend/node_modules/next/dist/server/patch-error-inspect.js +7 -4
- qalita/_frontend/node_modules/next/dist/server/request/fallback-params.js +23 -66
- qalita/_frontend/node_modules/next/dist/server/route-modules/app-route/module.js +2 -2
- qalita/_frontend/node_modules/next/dist/server/route-modules/pages/pages-handler.js +6 -3
- qalita/_frontend/node_modules/next/dist/server/route-modules/route-module.js +79 -18
- qalita/_frontend/node_modules/next/dist/server/stream-utils/node-web-streams-helper.js +28 -4
- qalita/_frontend/node_modules/next/dist/server/typescript/rules/config.js +50 -6
- qalita/_frontend/node_modules/next/dist/server/use-cache/use-cache-wrapper.js +68 -23
- qalita/_frontend/node_modules/next/dist/server/web/edge-route-module-wrapper.js +7 -5
- qalita/_frontend/node_modules/next/dist/server/web/sandbox/context.js +8 -9
- qalita/_frontend/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js +2 -1
- qalita/_frontend/node_modules/next/dist/server/web/spec-extension/revalidate.js +7 -3
- qalita/_frontend/node_modules/next/dist/shared/lib/action-revalidation-kind.js +31 -0
- qalita/_frontend/node_modules/next/dist/shared/lib/constants.js +6 -1
- qalita/_frontend/node_modules/next/dist/shared/lib/deployment-id.js +36 -0
- qalita/_frontend/node_modules/next/dist/shared/lib/errors/canary-only-config-error.js +1 -1
- qalita/_frontend/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js +5 -0
- qalita/_frontend/node_modules/next/dist/shared/lib/router/routes/app.js +122 -0
- qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +20 -49
- qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +6 -6
- qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/interception-prefix-from-param-type.js +33 -0
- qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/resolve-param-value.js +116 -0
- qalita/_frontend/node_modules/next/dist/shared/lib/segment-cache/output-export-prefetch-encoding.js +3 -24
- qalita/_frontend/node_modules/next/dist/shared/lib/segment.js +5 -0
- qalita/_frontend/node_modules/next/dist/shared/lib/turbopack/utils.js +6 -5
- qalita/_frontend/node_modules/next/dist/telemetry/anonymous-meta.js +1 -1
- qalita/_frontend/node_modules/next/dist/telemetry/events/build.js +11 -0
- qalita/_frontend/node_modules/next/dist/telemetry/events/version.js +2 -2
- qalita/_frontend/node_modules/next/package.json +20 -18
- qalita/_frontend/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +2122 -0
- qalita/_frontend/node_modules/typescript/lib/de/diagnosticMessages.generated.json +2122 -0
- qalita/_frontend/node_modules/typescript/lib/es/diagnosticMessages.generated.json +2122 -0
- qalita/_frontend/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +2122 -0
- qalita/_frontend/node_modules/typescript/lib/it/diagnosticMessages.generated.json +2122 -0
- qalita/_frontend/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +2122 -0
- qalita/_frontend/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +2122 -0
- qalita/_frontend/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +2122 -0
- qalita/_frontend/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +2122 -0
- qalita/_frontend/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +2122 -0
- qalita/_frontend/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +2122 -0
- qalita/_frontend/node_modules/typescript/lib/typesMap.json +497 -0
- qalita/_frontend/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +2122 -0
- qalita/_frontend/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +2122 -0
- qalita/_frontend/package.json +3 -3
- qalita/_frontend/server.js +1 -1
- qalita/commands/pack.py +3 -3
- qalita/commands/source.py +1 -1
- qalita/internal/utils.py +11 -7
- qalita/web/app.py +20 -4
- {qalita-2.5.4.dist-info → qalita-2.6.1.dist-info}/METADATA +1 -1
- {qalita-2.5.4.dist-info → qalita-2.6.1.dist-info}/RECORD +197 -168
- qalita/_frontend/.next/static/chunks/023d923a37d494fc.js +0 -1
- qalita/_frontend/.next/static/chunks/247eb132b7f7b574.js +0 -1
- qalita/_frontend/.next/static/chunks/bba035711c7e37a2.js +0 -4
- qalita/_frontend/.next/static/chunks/c903f9580a4b6572.js +0 -2
- qalita/_frontend/.next/static/chunks/cbd55ab9639e1e66.js +0 -1
- qalita/_frontend/.next/static/chunks/turbopack-1ad58da399056f41.js +0 -3
- qalita/_frontend/node_modules/next/dist/build/deployment-id.js +0 -18
- qalita/_frontend/node_modules/next/dist/client/components/router-reducer/apply-flight-data.js +0 -53
- qalita/_frontend/node_modules/next/dist/client/components/router-reducer/apply-router-state-patch-to-tree.js +0 -105
- qalita/_frontend/node_modules/next/dist/client/components/router-reducer/fill-cache-with-new-subtree-data.js +0 -110
- qalita/_frontend/node_modules/next/dist/client/components/router-reducer/fill-lazy-items-till-leaf-with-head.js +0 -131
- qalita/_frontend/node_modules/next/dist/client/components/router-reducer/handle-segment-mismatch.js +0 -25
- qalita/_frontend/node_modules/next/dist/client/components/router-reducer/invalidate-cache-by-router-state.js +0 -32
- qalita/_frontend/node_modules/next/dist/client/components/router-reducer/refetch-inactive-parallel-segments.js +0 -104
- qalita/_frontend/node_modules/next/dist/server/app-render/action-utils.js +0 -90
- qalita/_frontend/node_modules/next/dist/server/normalizers/request/prefetch-rsc.js +0 -31
- /qalita/_frontend/.next/static/{X4_AlYMbCyee-ZVLjCYMg → _0oyfpC7N2IGDMa04TT9R}/_buildManifest.js +0 -0
- /qalita/_frontend/.next/static/{X4_AlYMbCyee-ZVLjCYMg → _0oyfpC7N2IGDMa04TT9R}/_ssgManifest.js +0 -0
- {qalita-2.5.4.dist-info → qalita-2.6.1.dist-info}/WHEEL +0 -0
- {qalita-2.5.4.dist-info → qalita-2.6.1.dist-info}/entry_points.txt +0 -0
- {qalita-2.5.4.dist-info → qalita-2.6.1.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next/env",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.1.1",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"react",
|
|
6
6
|
"next",
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
],
|
|
23
23
|
"scripts": {
|
|
24
24
|
"dev": "ncc build ./index.ts -w -o dist/",
|
|
25
|
-
"
|
|
25
|
+
"prebuild:source": "node ../../scripts/rm.mjs dist",
|
|
26
26
|
"types": "tsc --declaration --emitDeclarationOnly --declarationDir dist",
|
|
27
|
-
"
|
|
28
|
-
"build": "pnpm
|
|
27
|
+
"build:source": "ncc build ./index.ts -o ./dist/ --minify --no-cache --no-source-map-register",
|
|
28
|
+
"build": "pnpm build:source && pnpm types",
|
|
29
29
|
"prepublishOnly": "cd ../../ && turbo run build"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return analyze;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _trace = require("../../trace");
|
|
12
|
+
const _log = /*#__PURE__*/ _interop_require_wildcard(require("../output/log"));
|
|
13
|
+
const _nodepath = /*#__PURE__*/ _interop_require_wildcard(require("node:path"));
|
|
14
|
+
const _config = /*#__PURE__*/ _interop_require_default(require("../../server/config"));
|
|
15
|
+
const _constants = require("../../shared/lib/constants");
|
|
16
|
+
const _turbopackanalyze = require("../turbopack-analyze");
|
|
17
|
+
const _durationtostring = require("../duration-to-string");
|
|
18
|
+
const _promises = require("node:fs/promises");
|
|
19
|
+
const _entries = require("../entries");
|
|
20
|
+
const _findpagefile = require("../../server/lib/find-page-file");
|
|
21
|
+
const _findpagesdir = require("../../lib/find-pages-dir");
|
|
22
|
+
const _pagetypes = require("../../lib/page-types");
|
|
23
|
+
const _loadcustomroutes = /*#__PURE__*/ _interop_require_default(require("../../lib/load-custom-routes"));
|
|
24
|
+
const _generateroutesmanifest = require("../generate-routes-manifest");
|
|
25
|
+
const _ppr = require("../../server/lib/experimental/ppr");
|
|
26
|
+
const _apppaths = require("../../shared/lib/router/utils/app-paths");
|
|
27
|
+
const _nodehttp = /*#__PURE__*/ _interop_require_default(require("node:http"));
|
|
28
|
+
const _servehandler = /*#__PURE__*/ _interop_require_default(require("next/dist/compiled/serve-handler"));
|
|
29
|
+
const _storage = require("../../telemetry/storage");
|
|
30
|
+
const _events = require("../../telemetry/events");
|
|
31
|
+
const _shared = require("../../trace/shared");
|
|
32
|
+
function _interop_require_default(obj) {
|
|
33
|
+
return obj && obj.__esModule ? obj : {
|
|
34
|
+
default: obj
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
38
|
+
if (typeof WeakMap !== "function") return null;
|
|
39
|
+
var cacheBabelInterop = new WeakMap();
|
|
40
|
+
var cacheNodeInterop = new WeakMap();
|
|
41
|
+
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
42
|
+
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
43
|
+
})(nodeInterop);
|
|
44
|
+
}
|
|
45
|
+
function _interop_require_wildcard(obj, nodeInterop) {
|
|
46
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
|
47
|
+
return obj;
|
|
48
|
+
}
|
|
49
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
50
|
+
return {
|
|
51
|
+
default: obj
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
55
|
+
if (cache && cache.has(obj)) {
|
|
56
|
+
return cache.get(obj);
|
|
57
|
+
}
|
|
58
|
+
var newObj = {
|
|
59
|
+
__proto__: null
|
|
60
|
+
};
|
|
61
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
62
|
+
for(var key in obj){
|
|
63
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
64
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
65
|
+
if (desc && (desc.get || desc.set)) {
|
|
66
|
+
Object.defineProperty(newObj, key, desc);
|
|
67
|
+
} else {
|
|
68
|
+
newObj[key] = obj[key];
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
newObj.default = obj;
|
|
73
|
+
if (cache) {
|
|
74
|
+
cache.set(obj, newObj);
|
|
75
|
+
}
|
|
76
|
+
return newObj;
|
|
77
|
+
}
|
|
78
|
+
async function analyze({ dir, reactProductionProfiling = false, noMangling = false, appDirOnly = false, output = false, port = 4000 }) {
|
|
79
|
+
try {
|
|
80
|
+
const config = await (0, _config.default)(_constants.PHASE_ANALYZE, dir, {
|
|
81
|
+
silent: false,
|
|
82
|
+
reactProductionProfiling
|
|
83
|
+
});
|
|
84
|
+
process.env.NEXT_DEPLOYMENT_ID = config.deploymentId || '';
|
|
85
|
+
const distDir = _nodepath.join(dir, '.next');
|
|
86
|
+
const telemetry = new _storage.Telemetry({
|
|
87
|
+
distDir
|
|
88
|
+
});
|
|
89
|
+
(0, _trace.setGlobal)('phase', _constants.PHASE_ANALYZE);
|
|
90
|
+
(0, _trace.setGlobal)('distDir', distDir);
|
|
91
|
+
(0, _trace.setGlobal)('telemetry', telemetry);
|
|
92
|
+
_log.info('Analyzing a production build...');
|
|
93
|
+
const analyzeContext = {
|
|
94
|
+
config,
|
|
95
|
+
dir,
|
|
96
|
+
distDir,
|
|
97
|
+
noMangling,
|
|
98
|
+
appDirOnly
|
|
99
|
+
};
|
|
100
|
+
const { duration: analyzeDuration, shutdownPromise } = await (0, _turbopackanalyze.turbopackAnalyze)(analyzeContext);
|
|
101
|
+
const durationString = (0, _durationtostring.durationToString)(analyzeDuration);
|
|
102
|
+
const analyzeDir = _nodepath.join(distDir, 'diagnostics/analyze');
|
|
103
|
+
await shutdownPromise;
|
|
104
|
+
const routes = await collectRoutesForAnalyze(dir, config, appDirOnly);
|
|
105
|
+
await (0, _promises.cp)(_nodepath.join(__dirname, '../../bundle-analyzer'), analyzeDir, {
|
|
106
|
+
recursive: true
|
|
107
|
+
});
|
|
108
|
+
await (0, _promises.mkdir)(_nodepath.join(analyzeDir, 'data'), {
|
|
109
|
+
recursive: true
|
|
110
|
+
});
|
|
111
|
+
await (0, _promises.writeFile)(_nodepath.join(analyzeDir, 'data', 'routes.json'), JSON.stringify(routes, null, 2));
|
|
112
|
+
let logMessage = `Analyze completed in ${durationString}.`;
|
|
113
|
+
if (output) {
|
|
114
|
+
logMessage += ` Results written to ${analyzeDir}.\nTo explore the analyze results interactively, run \`next experimental-analyze\` without \`--output\`.`;
|
|
115
|
+
}
|
|
116
|
+
_log.event(logMessage);
|
|
117
|
+
telemetry.record((0, _events.eventAnalyzeCompleted)({
|
|
118
|
+
success: true,
|
|
119
|
+
durationInSeconds: Math.round(analyzeDuration),
|
|
120
|
+
totalPageCount: routes.length
|
|
121
|
+
}));
|
|
122
|
+
if (!output) {
|
|
123
|
+
await startServer(analyzeDir, port);
|
|
124
|
+
}
|
|
125
|
+
} catch (e) {
|
|
126
|
+
const telemetry = _shared.traceGlobals.get('telemetry');
|
|
127
|
+
if (telemetry) {
|
|
128
|
+
telemetry.record((0, _events.eventAnalyzeCompleted)({
|
|
129
|
+
success: false
|
|
130
|
+
}));
|
|
131
|
+
}
|
|
132
|
+
throw e;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Collects all routes from the project for the bundle analyzer.
|
|
137
|
+
* Returns a list of route paths (both static and dynamic).
|
|
138
|
+
*/ async function collectRoutesForAnalyze(dir, config, appDirOnly) {
|
|
139
|
+
const { pagesDir, appDir } = (0, _findpagesdir.findPagesDir)(dir);
|
|
140
|
+
const validFileMatcher = (0, _findpagefile.createValidFileMatcher)(config.pageExtensions, appDir);
|
|
141
|
+
let appType;
|
|
142
|
+
if (pagesDir && appDir) {
|
|
143
|
+
appType = 'hybrid';
|
|
144
|
+
} else if (pagesDir) {
|
|
145
|
+
appType = 'pages';
|
|
146
|
+
} else if (appDir) {
|
|
147
|
+
appType = 'app';
|
|
148
|
+
} else {
|
|
149
|
+
throw Object.defineProperty(new Error('No pages or app directory found.'), "__NEXT_ERROR_CODE", {
|
|
150
|
+
value: "E929",
|
|
151
|
+
enumerable: false,
|
|
152
|
+
configurable: true
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
const { appPaths } = appDir ? await (0, _entries.collectAppFiles)(appDir, validFileMatcher) : {
|
|
156
|
+
appPaths: []
|
|
157
|
+
};
|
|
158
|
+
const pagesPaths = pagesDir ? await (0, _entries.collectPagesFiles)(pagesDir, validFileMatcher) : null;
|
|
159
|
+
const appMapping = await (0, _entries.createPagesMapping)({
|
|
160
|
+
pagePaths: appPaths,
|
|
161
|
+
isDev: false,
|
|
162
|
+
pagesType: _pagetypes.PAGE_TYPES.APP,
|
|
163
|
+
pageExtensions: config.pageExtensions,
|
|
164
|
+
pagesDir,
|
|
165
|
+
appDir,
|
|
166
|
+
appDirOnly
|
|
167
|
+
});
|
|
168
|
+
const pagesMapping = pagesPaths ? await (0, _entries.createPagesMapping)({
|
|
169
|
+
pagePaths: pagesPaths,
|
|
170
|
+
isDev: false,
|
|
171
|
+
pagesType: _pagetypes.PAGE_TYPES.PAGES,
|
|
172
|
+
pageExtensions: config.pageExtensions,
|
|
173
|
+
pagesDir,
|
|
174
|
+
appDir,
|
|
175
|
+
appDirOnly
|
|
176
|
+
}) : null;
|
|
177
|
+
const pageKeys = {
|
|
178
|
+
pages: pagesMapping ? Object.keys(pagesMapping) : [],
|
|
179
|
+
app: appMapping ? Object.keys(appMapping).map((key)=>(0, _apppaths.normalizeAppPath)(key)) : undefined
|
|
180
|
+
};
|
|
181
|
+
// Load custom routes
|
|
182
|
+
const { redirects, headers, rewrites } = await (0, _loadcustomroutes.default)(config);
|
|
183
|
+
// Compute restricted redirect paths
|
|
184
|
+
const restrictedRedirectPaths = [
|
|
185
|
+
'/_next'
|
|
186
|
+
].map((pathPrefix)=>config.basePath ? `${config.basePath}${pathPrefix}` : pathPrefix);
|
|
187
|
+
const isAppPPREnabled = (0, _ppr.checkIsAppPPREnabled)(config.experimental.ppr);
|
|
188
|
+
// Generate routes manifest
|
|
189
|
+
const { routesManifest } = (0, _generateroutesmanifest.generateRoutesManifest)({
|
|
190
|
+
appType,
|
|
191
|
+
pageKeys,
|
|
192
|
+
config,
|
|
193
|
+
redirects,
|
|
194
|
+
headers,
|
|
195
|
+
rewrites,
|
|
196
|
+
restrictedRedirectPaths,
|
|
197
|
+
isAppPPREnabled
|
|
198
|
+
});
|
|
199
|
+
return routesManifest.dynamicRoutes.map((r)=>r.page).concat(routesManifest.staticRoutes.map((r)=>r.page));
|
|
200
|
+
}
|
|
201
|
+
function startServer(dir, port) {
|
|
202
|
+
const server = _nodehttp.default.createServer((req, res)=>{
|
|
203
|
+
return (0, _servehandler.default)(req, res, {
|
|
204
|
+
public: dir
|
|
205
|
+
});
|
|
206
|
+
});
|
|
207
|
+
return new Promise((resolve, reject)=>{
|
|
208
|
+
function onError(err) {
|
|
209
|
+
server.close(()=>{
|
|
210
|
+
reject(err);
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
server.on('error', onError);
|
|
214
|
+
server.listen(port, 'localhost', ()=>{
|
|
215
|
+
const address = server.address();
|
|
216
|
+
if (address == null) {
|
|
217
|
+
reject(Object.defineProperty(new Error('Unable to get server address'), "__NEXT_ERROR_CODE", {
|
|
218
|
+
value: "E928",
|
|
219
|
+
enumerable: false,
|
|
220
|
+
configurable: true
|
|
221
|
+
}));
|
|
222
|
+
return;
|
|
223
|
+
}
|
|
224
|
+
// No longer needed after startup
|
|
225
|
+
server.removeListener('error', onError);
|
|
226
|
+
let addressString;
|
|
227
|
+
if (typeof address === 'string') {
|
|
228
|
+
addressString = address;
|
|
229
|
+
} else if (address.family === 'IPv6' && (address.address === '::' || address.address === '::1')) {
|
|
230
|
+
addressString = `localhost:${address.port}`;
|
|
231
|
+
} else if (address.family === 'IPv6') {
|
|
232
|
+
addressString = `[${address.address}]:${address.port}`;
|
|
233
|
+
} else {
|
|
234
|
+
addressString = `${address.address}:${address.port}`;
|
|
235
|
+
}
|
|
236
|
+
_log.info(`Bundle analyzer available at http://${addressString}`);
|
|
237
|
+
resolve();
|
|
238
|
+
});
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -20,11 +20,10 @@ function _interop_require_default(obj) {
|
|
|
20
20
|
/**
|
|
21
21
|
* Serializes the DefineEnv config so that it can be inserted into the code by Webpack/Turbopack, JSON stringifies each value.
|
|
22
22
|
*/ function serializeDefineEnv(defineEnv) {
|
|
23
|
-
const defineEnvStringified =
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
23
|
+
const defineEnvStringified = Object.fromEntries(Object.entries(defineEnv).map(([key, value])=>[
|
|
24
|
+
key,
|
|
25
|
+
JSON.stringify(value)
|
|
26
|
+
]));
|
|
28
27
|
return defineEnvStringified;
|
|
29
28
|
}
|
|
30
29
|
function getImageConfig(config, dev) {
|
|
@@ -49,7 +48,7 @@ function getImageConfig(config, dev) {
|
|
|
49
48
|
};
|
|
50
49
|
}
|
|
51
50
|
function getDefineEnv({ isTurbopack, clientRouterFilters, config, dev, distDir, projectPath, fetchCacheKeyPrefix, hasRewrites, isClient, isEdgeServer, isNodeServer, middlewareMatchers, omitNonDeterministic, rewrites }) {
|
|
52
|
-
var _config_experimental, _config_experimental_staleTimes, _config_experimental_staleTimes1, _config_experimental_staleTimes2, _config_experimental_staleTimes3, _config_i18n, _config_compiler;
|
|
51
|
+
var _config_experimental, _config_experimental1, _config_experimental2, _config_experimental_staleTimes, _config_experimental_staleTimes1, _config_experimental_staleTimes2, _config_experimental_staleTimes3, _config_i18n, _config_compiler;
|
|
53
52
|
const nextPublicEnv = (0, _staticenv.getNextPublicEnvironmentVariables)();
|
|
54
53
|
const nextConfigEnv = (0, _staticenv.getNextConfigEnv)(config);
|
|
55
54
|
const isPPREnabled = (0, _ppr.checkIsAppPPREnabled)(config.experimental.ppr);
|
|
@@ -83,7 +82,14 @@ function getDefineEnv({ isTurbopack, clientRouterFilters, config, dev, distDir,
|
|
|
83
82
|
'process.env.__NEXT_PPR': isPPREnabled,
|
|
84
83
|
'process.env.__NEXT_CACHE_COMPONENTS': isCacheComponentsEnabled,
|
|
85
84
|
'process.env.__NEXT_USE_CACHE': isUseCacheEnabled,
|
|
86
|
-
|
|
85
|
+
...isClient ? {
|
|
86
|
+
// TODO use `globalThis.NEXT_DEPLOYMENT_ID` on client to still support accessing
|
|
87
|
+
// process.env.NEXT_DEPLOYMENT_ID in userland
|
|
88
|
+
'process.env.NEXT_DEPLOYMENT_ID': ((_config_experimental = config.experimental) == null ? void 0 : _config_experimental.useSkewCookie) ? false : config.deploymentId || false
|
|
89
|
+
} : ((_config_experimental1 = config.experimental) == null ? void 0 : _config_experimental1.runtimeServerDeploymentId) ? {
|
|
90
|
+
} : {
|
|
91
|
+
'process.env.NEXT_DEPLOYMENT_ID': ((_config_experimental2 = config.experimental) == null ? void 0 : _config_experimental2.useSkewCookie) ? false : config.deploymentId || false
|
|
92
|
+
},
|
|
87
93
|
// Propagates the `__NEXT_EXPERIMENTAL_STATIC_SHELL_DEBUGGING` environment
|
|
88
94
|
// variable to the client.
|
|
89
95
|
'process.env.__NEXT_EXPERIMENTAL_STATIC_SHELL_DEBUGGING': process.env.__NEXT_EXPERIMENTAL_STATIC_SHELL_DEBUGGING || false,
|
|
@@ -155,7 +161,7 @@ function getDefineEnv({ isTurbopack, clientRouterFilters, config, dev, distDir,
|
|
|
155
161
|
'process.env.__NEXT_MULTI_ZONE_DRAFT_MODE': config.experimental.multiZoneDraftMode ?? false,
|
|
156
162
|
'process.env.__NEXT_TRUST_HOST_HEADER': config.experimental.trustHostHeader ?? false,
|
|
157
163
|
'process.env.__NEXT_ALLOWED_REVALIDATE_HEADERS': config.experimental.allowedRevalidateHeaderKeys ?? [],
|
|
158
|
-
...isNodeServer ? {
|
|
164
|
+
...isNodeServer || isEdgeServer ? {
|
|
159
165
|
'process.env.__NEXT_RELATIVE_DIST_DIR': config.distDir,
|
|
160
166
|
'process.env.__NEXT_RELATIVE_PROJECT_DIR': _nodepath.default.relative(process.cwd(), projectPath)
|
|
161
167
|
} : {},
|
|
@@ -174,7 +180,8 @@ function getDefineEnv({ isTurbopack, clientRouterFilters, config, dev, distDir,
|
|
|
174
180
|
// In the worst case we'll show an option to clear the cache, but it'll be a
|
|
175
181
|
// no-op that just restarts the development server.
|
|
176
182
|
'process.env.__NEXT_BUNDLER_HAS_PERSISTENT_CACHE': !isTurbopack || (config.experimental.turbopackFileSystemCacheForDev ?? false),
|
|
177
|
-
'process.env.__NEXT_REACT_DEBUG_CHANNEL': config.experimental.reactDebugChannel ?? false
|
|
183
|
+
'process.env.__NEXT_REACT_DEBUG_CHANNEL': config.experimental.reactDebugChannel ?? false,
|
|
184
|
+
'process.env.__NEXT_TRANSITION_INDICATOR': config.experimental.transitionIndicator ?? false
|
|
178
185
|
};
|
|
179
186
|
const userDefines = ((_config_compiler = config.compiler) == null ? void 0 : _config_compiler.define) ?? {};
|
|
180
187
|
for(const key in userDefines){
|
|
@@ -216,10 +223,12 @@ function getDefineEnv({ isTurbopack, clientRouterFilters, config, dev, distDir,
|
|
|
216
223
|
for(const key in nextConfigEnv){
|
|
217
224
|
serializedDefineEnv[key] = safeKey(key);
|
|
218
225
|
}
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
226
|
+
if (!config.experimental.runtimeServerDeploymentId) {
|
|
227
|
+
for (const key of [
|
|
228
|
+
'process.env.NEXT_DEPLOYMENT_ID'
|
|
229
|
+
]){
|
|
230
|
+
serializedDefineEnv[key] = safeKey(key);
|
|
231
|
+
}
|
|
223
232
|
}
|
|
224
233
|
}
|
|
225
234
|
return serializedDefineEnv;
|
|
@@ -282,7 +282,6 @@ function getPageFilePath({ absolutePagePath, pagesDir, appDir, rootDir }) {
|
|
|
282
282
|
}
|
|
283
283
|
async function createPagesMapping({ isDev, pageExtensions, pagePaths, pagesType, pagesDir, appDir, appDirOnly }) {
|
|
284
284
|
const isAppRoute = pagesType === 'app';
|
|
285
|
-
const pages = {};
|
|
286
285
|
const promises = pagePaths.map(async (pagePath)=>{
|
|
287
286
|
// Do not process .d.ts files as routes
|
|
288
287
|
if (pagePath.endsWith('.d.ts') && pageExtensions.includes('ts')) {
|
|
@@ -311,9 +310,12 @@ async function createPagesMapping({ isDev, pageExtensions, pagePaths, pagesType,
|
|
|
311
310
|
});
|
|
312
311
|
route = (0, _getmetadataroute.normalizeMetadataPageToRoute)(route, !!(staticInfo.generateImageMetadata || staticInfo.generateSitemaps));
|
|
313
312
|
}
|
|
314
|
-
|
|
313
|
+
return [
|
|
314
|
+
route,
|
|
315
|
+
normalizedPath
|
|
316
|
+
];
|
|
315
317
|
});
|
|
316
|
-
await Promise.all(promises);
|
|
318
|
+
const pages = Object.fromEntries((await Promise.all(promises)).filter((entry)=>entry != null));
|
|
317
319
|
switch(pagesType){
|
|
318
320
|
case _pagetypes.PAGE_TYPES.ROOT:
|
|
319
321
|
{
|
|
@@ -375,7 +377,6 @@ function getEdgeServerEntry(opts) {
|
|
|
375
377
|
absolutePagePath: opts.absolutePagePath,
|
|
376
378
|
page: opts.page,
|
|
377
379
|
appDirLoader: Buffer.from(opts.appDirLoader || '').toString('base64'),
|
|
378
|
-
nextConfig: Buffer.from(JSON.stringify(opts.config)).toString('base64'),
|
|
379
380
|
preferredRegion: opts.preferredRegion,
|
|
380
381
|
middlewareConfig: Buffer.from(JSON.stringify(opts.middlewareConfig || {})).toString('base64'),
|
|
381
382
|
cacheHandlers: JSON.stringify(opts.config.cacheHandlers || {})
|
|
@@ -423,7 +424,6 @@ function getEdgeServerEntry(opts) {
|
|
|
423
424
|
dev: opts.isDev,
|
|
424
425
|
isServerComponent: opts.isServerComponent,
|
|
425
426
|
page: opts.page,
|
|
426
|
-
stringifiedConfig: Buffer.from(JSON.stringify(opts.config)).toString('base64'),
|
|
427
427
|
pagesType: opts.pagesType,
|
|
428
428
|
appDirLoader: Buffer.from(opts.appDirLoader || '').toString('base64'),
|
|
429
429
|
sriEnabled: !opts.isDev && !!((_opts_config_experimental_sri = opts.config.experimental.sri) == null ? void 0 : _opts_config_experimental_sri.algorithm),
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "generateRoutesManifest", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return generateRoutesManifest;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _approuterheaders = require("../client/components/app-router-headers");
|
|
12
|
+
const _constants = require("../lib/constants");
|
|
13
|
+
const _utils = require("../shared/lib/router/utils");
|
|
14
|
+
const _buildcustomroute = require("../lib/build-custom-route");
|
|
15
|
+
const _utils1 = require("./utils");
|
|
16
|
+
const _sortableroutes = require("../shared/lib/router/utils/sortable-routes");
|
|
17
|
+
function generateRoutesManifest(options) {
|
|
18
|
+
const { pageKeys, config, redirects, headers, rewrites, restrictedRedirectPaths, isAppPPREnabled, appType } = options;
|
|
19
|
+
const sortedRoutes = (0, _sortableroutes.sortPages)([
|
|
20
|
+
...pageKeys.pages,
|
|
21
|
+
...pageKeys.app ?? []
|
|
22
|
+
]);
|
|
23
|
+
const staticRoutes = [];
|
|
24
|
+
const dynamicRoutes = [];
|
|
25
|
+
/**
|
|
26
|
+
* A map of all the pages to their sourcePage value. This is only used for
|
|
27
|
+
* routes that have PPR enabled and clientSegmentEnabled is true.
|
|
28
|
+
*/ const sourcePages = new Map();
|
|
29
|
+
for (const route of sortedRoutes){
|
|
30
|
+
if ((0, _utils.isDynamicRoute)(route)) {
|
|
31
|
+
dynamicRoutes.push((0, _utils1.pageToRoute)(route, // This property is only relevant when PPR is enabled.
|
|
32
|
+
undefined));
|
|
33
|
+
} else if (!(0, _utils1.isReservedPage)(route) || // don't consider /api reserved here
|
|
34
|
+
route.match(/^\/(api(\/|$))/)) {
|
|
35
|
+
staticRoutes.push((0, _utils1.pageToRoute)(route));
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
const routesManifest = {
|
|
39
|
+
version: 3,
|
|
40
|
+
pages404: true,
|
|
41
|
+
appType,
|
|
42
|
+
caseSensitive: !!config.experimental.caseSensitiveRoutes,
|
|
43
|
+
basePath: config.basePath,
|
|
44
|
+
redirects: redirects.map((r)=>(0, _buildcustomroute.buildCustomRoute)('redirect', r, restrictedRedirectPaths)),
|
|
45
|
+
headers: headers.map((r)=>(0, _buildcustomroute.buildCustomRoute)('header', r)),
|
|
46
|
+
rewrites: {
|
|
47
|
+
beforeFiles: rewrites.beforeFiles.map((r)=>(0, _buildcustomroute.buildCustomRoute)('rewrite', r)),
|
|
48
|
+
afterFiles: rewrites.afterFiles.map((r)=>(0, _buildcustomroute.buildCustomRoute)('rewrite', r)),
|
|
49
|
+
fallback: rewrites.fallback.map((r)=>(0, _buildcustomroute.buildCustomRoute)('rewrite', r))
|
|
50
|
+
},
|
|
51
|
+
dynamicRoutes,
|
|
52
|
+
staticRoutes,
|
|
53
|
+
dataRoutes: [],
|
|
54
|
+
i18n: config.i18n || undefined,
|
|
55
|
+
rsc: {
|
|
56
|
+
header: _approuterheaders.RSC_HEADER,
|
|
57
|
+
// This vary header is used as a default. It is technically re-assigned in `base-server`,
|
|
58
|
+
// and may include an additional Vary option for `Next-URL`.
|
|
59
|
+
varyHeader: `${_approuterheaders.RSC_HEADER}, ${_approuterheaders.NEXT_ROUTER_STATE_TREE_HEADER}, ${_approuterheaders.NEXT_ROUTER_PREFETCH_HEADER}, ${_approuterheaders.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER}`,
|
|
60
|
+
prefetchHeader: _approuterheaders.NEXT_ROUTER_PREFETCH_HEADER,
|
|
61
|
+
didPostponeHeader: _approuterheaders.NEXT_DID_POSTPONE_HEADER,
|
|
62
|
+
contentTypeHeader: _approuterheaders.RSC_CONTENT_TYPE_HEADER,
|
|
63
|
+
suffix: _constants.RSC_SUFFIX,
|
|
64
|
+
prefetchSegmentHeader: _approuterheaders.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER,
|
|
65
|
+
prefetchSegmentSuffix: _constants.RSC_SEGMENT_SUFFIX,
|
|
66
|
+
prefetchSegmentDirSuffix: _constants.RSC_SEGMENTS_DIR_SUFFIX,
|
|
67
|
+
clientParamParsing: config.cacheComponents ?? false,
|
|
68
|
+
clientParamParsingOrigins: config.experimental.clientParamParsingOrigins,
|
|
69
|
+
dynamicRSCPrerender: isAppPPREnabled && config.cacheComponents === true
|
|
70
|
+
},
|
|
71
|
+
rewriteHeaders: {
|
|
72
|
+
pathHeader: _approuterheaders.NEXT_REWRITTEN_PATH_HEADER,
|
|
73
|
+
queryHeader: _approuterheaders.NEXT_REWRITTEN_QUERY_HEADER
|
|
74
|
+
},
|
|
75
|
+
skipProxyUrlNormalize: config.skipProxyUrlNormalize,
|
|
76
|
+
ppr: isAppPPREnabled ? {
|
|
77
|
+
chain: {
|
|
78
|
+
headers: {
|
|
79
|
+
[_constants.NEXT_RESUME_HEADER]: '1'
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
} : undefined
|
|
83
|
+
};
|
|
84
|
+
return {
|
|
85
|
+
routesManifest,
|
|
86
|
+
dynamicRoutes,
|
|
87
|
+
sourcePages
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
//# sourceMappingURL=generate-routes-manifest.js.map
|