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
|
@@ -40,9 +40,8 @@ const _stripflightheaders = require("../../server/app-render/strip-flight-header
|
|
|
40
40
|
const _node = require("../../server/base-http/node");
|
|
41
41
|
const _ppr = require("../../server/lib/experimental/ppr");
|
|
42
42
|
const _fallbackparams = require("../../server/request/fallback-params");
|
|
43
|
-
const
|
|
43
|
+
const _manifestssingleton = require("../../server/app-render/manifests-singleton");
|
|
44
44
|
const _streamingmetadata = require("../../server/lib/streaming-metadata");
|
|
45
|
-
const _actionutils = require("../../server/app-render/action-utils");
|
|
46
45
|
const _apppaths = require("../../shared/lib/router/utils/app-paths");
|
|
47
46
|
const _serveractionrequestmeta = require("../../server/lib/server-action-request-meta");
|
|
48
47
|
const _approuterheaders = require("../../client/components/app-router-headers");
|
|
@@ -144,6 +143,7 @@ async function handler(req, res, ctx) {
|
|
|
144
143
|
if (routeModule.isDev) {
|
|
145
144
|
(0, _requestmeta.addRequestMeta)(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());
|
|
146
145
|
}
|
|
146
|
+
const isMinimalMode = Boolean(process.env.MINIMAL_MODE || (0, _requestmeta.getRequestMeta)(req, 'minimalMode'));
|
|
147
147
|
let srcPage = 'VAR_DEFINITION_PAGE';
|
|
148
148
|
// turbopack doesn't normalize `/index` in the page name
|
|
149
149
|
// so we need to to process dynamic routes properly
|
|
@@ -155,7 +155,6 @@ async function handler(req, res, ctx) {
|
|
|
155
155
|
srcPage = '/';
|
|
156
156
|
}
|
|
157
157
|
const multiZoneDraftMode = process.env.__NEXT_MULTI_ZONE_DRAFT_MODE;
|
|
158
|
-
const isMinimalMode = Boolean(process.env.MINIMAL_MODE || (0, _requestmeta.getRequestMeta)(req, 'minimalMode'));
|
|
159
158
|
const prepareResult = await routeModule.prepare(req, res, {
|
|
160
159
|
srcPage,
|
|
161
160
|
multiZoneDraftMode
|
|
@@ -166,7 +165,7 @@ async function handler(req, res, ctx) {
|
|
|
166
165
|
ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
|
|
167
166
|
return null;
|
|
168
167
|
}
|
|
169
|
-
const { buildId, query, params, pageIsDynamic, buildManifest, nextFontManifest, reactLoadableManifest, serverActionsManifest, clientReferenceManifest, subresourceIntegrityManifest, prerenderManifest, isDraftMode, resolvedPathname, revalidateOnlyGenerated, routerServerContext, nextConfig, parsedUrl, interceptionRoutePatterns } = prepareResult;
|
|
168
|
+
const { buildId, query, params, pageIsDynamic, buildManifest, nextFontManifest, reactLoadableManifest, serverActionsManifest, clientReferenceManifest, subresourceIntegrityManifest, prerenderManifest, isDraftMode, resolvedPathname, revalidateOnlyGenerated, routerServerContext, nextConfig, parsedUrl, interceptionRoutePatterns, deploymentId } = prepareResult;
|
|
170
169
|
const normalizedSrcPage = (0, _apppaths.normalizeAppPath)(srcPage);
|
|
171
170
|
let { isOnDemandRevalidate } = prepareResult;
|
|
172
171
|
// We use the resolvedPathname instead of the parsedUrl.pathname because it
|
|
@@ -193,6 +192,17 @@ async function handler(req, res, ctx) {
|
|
|
193
192
|
* If the route being rendered is an app page, and the ppr feature has been
|
|
194
193
|
* enabled, then the given route _could_ support PPR.
|
|
195
194
|
*/ const couldSupportPPR = (0, _ppr.checkIsAppPPREnabled)(nextConfig.experimental.ppr);
|
|
195
|
+
if (!(0, _requestmeta.getRequestMeta)(req, 'postponed') && couldSupportPPR && req.headers[_constants1.NEXT_RESUME_HEADER] === '1' && req.method === 'POST') {
|
|
196
|
+
// Decode the postponed state from the request body, it will come as
|
|
197
|
+
// an array of buffers, so collect them and then concat them to form
|
|
198
|
+
// the string.
|
|
199
|
+
const body = [];
|
|
200
|
+
for await (const chunk of req){
|
|
201
|
+
body.push(chunk);
|
|
202
|
+
}
|
|
203
|
+
const postponed = Buffer.concat(body).toString('utf8');
|
|
204
|
+
(0, _requestmeta.addRequestMeta)(req, 'postponed', postponed);
|
|
205
|
+
}
|
|
196
206
|
// When enabled, this will allow the use of the `?__nextppronly` query to
|
|
197
207
|
// enable debugging of the static shell.
|
|
198
208
|
const hasDebugStaticShellQuery = process.env.__NEXT_EXPERIMENTAL_STATIC_SHELL_DEBUGGING === '1' && typeof query.__nextppronly !== 'undefined' && couldSupportPPR;
|
|
@@ -286,13 +296,10 @@ async function handler(req, res, ctx) {
|
|
|
286
296
|
// set the reference manifests to our global store so Server Action's
|
|
287
297
|
// encryption util can access to them at the top level of the page module.
|
|
288
298
|
if (serverActionsManifest && clientReferenceManifest) {
|
|
289
|
-
(0,
|
|
299
|
+
(0, _manifestssingleton.setManifestsSingleton)({
|
|
290
300
|
page: srcPage,
|
|
291
301
|
clientReferenceManifest,
|
|
292
|
-
serverActionsManifest
|
|
293
|
-
serverModuleMap: (0, _actionutils.createServerModuleMap)({
|
|
294
|
-
serverActionsManifest
|
|
295
|
-
})
|
|
302
|
+
serverActionsManifest
|
|
296
303
|
});
|
|
297
304
|
}
|
|
298
305
|
const method = req.method || 'GET';
|
|
@@ -370,11 +377,10 @@ async function handler(req, res, ctx) {
|
|
|
370
377
|
nextFontManifest,
|
|
371
378
|
reactLoadableManifest,
|
|
372
379
|
subresourceIntegrityManifest,
|
|
373
|
-
serverActionsManifest,
|
|
374
|
-
clientReferenceManifest,
|
|
375
380
|
setCacheStatus: routerServerContext == null ? void 0 : routerServerContext.setCacheStatus,
|
|
376
381
|
setIsrStatus: routerServerContext == null ? void 0 : routerServerContext.setIsrStatus,
|
|
377
382
|
setReactDebugChannel: routerServerContext == null ? void 0 : routerServerContext.setReactDebugChannel,
|
|
383
|
+
sendErrorsToBrowser: routerServerContext == null ? void 0 : routerServerContext.sendErrorsToBrowser,
|
|
378
384
|
dir: process.env.NEXT_RUNTIME === 'nodejs' ? require('path').join(/* turbopackIgnore: true */ process.cwd(), routeModule.relativeProjectDir) : `${process.cwd()}/${routeModule.relativeProjectDir}`,
|
|
379
385
|
isDraftMode,
|
|
380
386
|
botType,
|
|
@@ -386,7 +392,7 @@ async function handler(req, res, ctx) {
|
|
|
386
392
|
trailingSlash: nextConfig.trailingSlash,
|
|
387
393
|
images: nextConfig.images,
|
|
388
394
|
previewProps: prerenderManifest.preview,
|
|
389
|
-
deploymentId:
|
|
395
|
+
deploymentId: deploymentId,
|
|
390
396
|
enableTainting: nextConfig.experimental.taint,
|
|
391
397
|
htmlLimitedBots: nextConfig.htmlLimitedBots,
|
|
392
398
|
reactMaxHeadersLength: nextConfig.reactMaxHeadersLength,
|
|
@@ -417,7 +423,7 @@ async function handler(req, res, ctx) {
|
|
|
417
423
|
res.on('close', cb);
|
|
418
424
|
},
|
|
419
425
|
onAfterTaskError: ()=>{},
|
|
420
|
-
onInstrumentationRequestError: (error, _request, errorContext)=>routeModule.onRequestError(req, error, errorContext, routerServerContext),
|
|
426
|
+
onInstrumentationRequestError: (error, _request, errorContext, silenceLog)=>routeModule.onRequestError(req, error, errorContext, silenceLog, routerServerContext),
|
|
421
427
|
err: (0, _requestmeta.getRequestMeta)(req, 'invokeError'),
|
|
422
428
|
dev: routeModule.isDev
|
|
423
429
|
}
|
|
@@ -1033,6 +1039,7 @@ async function handler(req, res, ctx) {
|
|
|
1033
1039
|
}
|
|
1034
1040
|
} catch (err) {
|
|
1035
1041
|
if (!(err instanceof _nofallbackerrorexternal.NoFallbackError)) {
|
|
1042
|
+
const silenceLog = false;
|
|
1036
1043
|
await routeModule.onRequestError(req, err, {
|
|
1037
1044
|
routerKind: 'App Router',
|
|
1038
1045
|
routePath: srcPage,
|
|
@@ -1041,7 +1048,7 @@ async function handler(req, res, ctx) {
|
|
|
1041
1048
|
isStaticGeneration: isSSG,
|
|
1042
1049
|
isOnDemandRevalidate
|
|
1043
1050
|
})
|
|
1044
|
-
}, routerServerContext);
|
|
1051
|
+
}, silenceLog, routerServerContext);
|
|
1045
1052
|
}
|
|
1046
1053
|
// rethrow so that we can handle serving error page
|
|
1047
1054
|
throw err;
|
|
@@ -41,8 +41,7 @@ const _routekind = require("../../server/route-kind");
|
|
|
41
41
|
const _patchfetch = require("../../server/lib/patch-fetch");
|
|
42
42
|
const _requestmeta = require("../../server/request-meta");
|
|
43
43
|
const _tracer = require("../../server/lib/trace/tracer");
|
|
44
|
-
const
|
|
45
|
-
const _actionutils = require("../../server/app-render/action-utils");
|
|
44
|
+
const _manifestssingleton = require("../../server/app-render/manifests-singleton");
|
|
46
45
|
const _apppaths = require("../../shared/lib/router/utils/app-paths");
|
|
47
46
|
const _node = require("../../server/base-http/node");
|
|
48
47
|
const _nextrequest = require("../../server/web/spec-extension/adapters/next-request");
|
|
@@ -191,13 +190,10 @@ async function handler(req, res, ctx) {
|
|
|
191
190
|
// set the reference manifests to our global store so Server Action's
|
|
192
191
|
// encryption util can access to them at the top level of the page module.
|
|
193
192
|
if (serverActionsManifest && clientReferenceManifest) {
|
|
194
|
-
(0,
|
|
193
|
+
(0, _manifestssingleton.setManifestsSingleton)({
|
|
195
194
|
page: srcPage,
|
|
196
195
|
clientReferenceManifest,
|
|
197
|
-
serverActionsManifest
|
|
198
|
-
serverModuleMap: (0, _actionutils.createServerModuleMap)({
|
|
199
|
-
serverActionsManifest
|
|
200
|
-
})
|
|
196
|
+
serverActionsManifest
|
|
201
197
|
});
|
|
202
198
|
}
|
|
203
199
|
const method = req.method || 'GET';
|
|
@@ -219,7 +215,7 @@ async function handler(req, res, ctx) {
|
|
|
219
215
|
res.on('close', cb);
|
|
220
216
|
},
|
|
221
217
|
onAfterTaskError: undefined,
|
|
222
|
-
onInstrumentationRequestError: (error, _request, errorContext)=>routeModule.onRequestError(req, error, errorContext, routerServerContext)
|
|
218
|
+
onInstrumentationRequestError: (error, _request, errorContext, silenceLog)=>routeModule.onRequestError(req, error, errorContext, silenceLog, routerServerContext)
|
|
223
219
|
},
|
|
224
220
|
sharedContext: {
|
|
225
221
|
buildId
|
|
@@ -320,6 +316,7 @@ async function handler(req, res, ctx) {
|
|
|
320
316
|
// if this is a background revalidate we need to report
|
|
321
317
|
// the request error here as it won't be bubbled
|
|
322
318
|
if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {
|
|
319
|
+
const silenceLog = false;
|
|
323
320
|
await routeModule.onRequestError(req, err, {
|
|
324
321
|
routerKind: 'App Router',
|
|
325
322
|
routePath: srcPage,
|
|
@@ -328,7 +325,7 @@ async function handler(req, res, ctx) {
|
|
|
328
325
|
isStaticGeneration,
|
|
329
326
|
isOnDemandRevalidate
|
|
330
327
|
})
|
|
331
|
-
}, routerServerContext);
|
|
328
|
+
}, silenceLog, routerServerContext);
|
|
332
329
|
}
|
|
333
330
|
throw err;
|
|
334
331
|
}
|
|
@@ -398,6 +395,7 @@ async function handler(req, res, ctx) {
|
|
|
398
395
|
}
|
|
399
396
|
} catch (err) {
|
|
400
397
|
if (!(err instanceof _nofallbackerrorexternal.NoFallbackError)) {
|
|
398
|
+
const silenceLog = false;
|
|
401
399
|
await routeModule.onRequestError(req, err, {
|
|
402
400
|
routerKind: 'App Router',
|
|
403
401
|
routePath: normalizedSrcPage,
|
|
@@ -406,7 +404,7 @@ async function handler(req, res, ctx) {
|
|
|
406
404
|
isStaticGeneration,
|
|
407
405
|
isOnDemandRevalidate
|
|
408
406
|
})
|
|
409
|
-
});
|
|
407
|
+
}, silenceLog, routerServerContext);
|
|
410
408
|
}
|
|
411
409
|
// rethrow so that we can handle serving error page
|
|
412
410
|
// If this is during static generation, throw the error again.
|
|
@@ -20,8 +20,7 @@ _export(exports, {
|
|
|
20
20
|
return _default;
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
|
-
const
|
|
24
|
-
const _encryptionutils = require("../../server/app-render/encryption-utils");
|
|
23
|
+
const _manifestssingleton = require("../../server/app-render/manifests-singleton");
|
|
25
24
|
const _edgeroutemodulewrapper = require("../../server/web/edge-route-module-wrapper");
|
|
26
25
|
const _VAR_USERLAND = /*#__PURE__*/ _interop_require_wildcard(require("VAR_USERLAND"));
|
|
27
26
|
function _getRequireWildcardCache(nodeInterop) {
|
|
@@ -66,23 +65,21 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
66
65
|
return newObj;
|
|
67
66
|
}
|
|
68
67
|
var _self___RSC_MANIFEST;
|
|
69
|
-
//
|
|
68
|
+
// injected by the loader afterwards.
|
|
70
69
|
const maybeJSONParse = (str)=>str ? JSON.parse(str) : undefined;
|
|
71
70
|
const rscManifest = (_self___RSC_MANIFEST = self.__RSC_MANIFEST) == null ? void 0 : _self___RSC_MANIFEST['VAR_PAGE'];
|
|
72
71
|
const rscServerManifest = maybeJSONParse(self.__RSC_SERVER_MANIFEST);
|
|
73
72
|
if (rscManifest && rscServerManifest) {
|
|
74
|
-
(0,
|
|
73
|
+
(0, _manifestssingleton.setManifestsSingleton)({
|
|
75
74
|
page: 'VAR_PAGE',
|
|
76
75
|
clientReferenceManifest: rscManifest,
|
|
77
|
-
serverActionsManifest: rscServerManifest
|
|
78
|
-
serverModuleMap: (0, _actionutils.createServerModuleMap)({
|
|
79
|
-
serverActionsManifest: rscServerManifest
|
|
80
|
-
})
|
|
76
|
+
serverActionsManifest: rscServerManifest
|
|
81
77
|
});
|
|
82
78
|
}
|
|
83
79
|
const ComponentMod = _VAR_USERLAND;
|
|
84
|
-
const
|
|
85
|
-
|
|
80
|
+
const handler = _edgeroutemodulewrapper.EdgeRouteModuleWrapper.wrap(_VAR_USERLAND.routeModule, {
|
|
81
|
+
page: 'VAR_PAGE'
|
|
86
82
|
});
|
|
83
|
+
const _default = handler;
|
|
87
84
|
|
|
88
85
|
//# sourceMappingURL=edge-app-route.js.map
|
|
@@ -17,15 +17,14 @@ _export(exports, {
|
|
|
17
17
|
return ComponentMod;
|
|
18
18
|
},
|
|
19
19
|
default: function() {
|
|
20
|
-
return
|
|
20
|
+
return _default;
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
require("../../server/web/globals");
|
|
24
24
|
const _adapter = require("../../server/web/adapter");
|
|
25
25
|
const _incrementalcache = require("../../server/lib/incremental-cache");
|
|
26
26
|
const _VAR_USERLAND = /*#__PURE__*/ _interop_require_wildcard(require("VAR_USERLAND"));
|
|
27
|
-
const
|
|
28
|
-
const _actionutils = require("../../server/app-render/action-utils");
|
|
27
|
+
const _manifestssingleton = require("../../server/app-render/manifests-singleton");
|
|
29
28
|
const _handlers = require("../../server/use-cache/handlers");
|
|
30
29
|
const _constants = require("../../server/lib/trace/constants");
|
|
31
30
|
const _tracer = require("../../server/lib/trace/tracer");
|
|
@@ -79,20 +78,14 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
79
78
|
}
|
|
80
79
|
var _self___RSC_MANIFEST;
|
|
81
80
|
// OPTIONAL_IMPORT:incrementalCacheHandler
|
|
82
|
-
// INJECT:nextConfig
|
|
83
|
-
// Initialize the cache handlers interface.
|
|
84
|
-
(0, _handlers.initializeCacheHandlers)(nextConfig.cacheMaxMemorySize);
|
|
85
81
|
const maybeJSONParse = (str)=>str ? JSON.parse(str) : undefined;
|
|
86
82
|
const rscManifest = (_self___RSC_MANIFEST = self.__RSC_MANIFEST) == null ? void 0 : _self___RSC_MANIFEST['VAR_PAGE'];
|
|
87
83
|
const rscServerManifest = maybeJSONParse(self.__RSC_SERVER_MANIFEST);
|
|
88
84
|
if (rscManifest && rscServerManifest) {
|
|
89
|
-
(0,
|
|
85
|
+
(0, _manifestssingleton.setManifestsSingleton)({
|
|
90
86
|
page: 'VAR_PAGE',
|
|
91
87
|
clientReferenceManifest: rscManifest,
|
|
92
|
-
serverActionsManifest: rscServerManifest
|
|
93
|
-
serverModuleMap: (0, _actionutils.createServerModuleMap)({
|
|
94
|
-
serverActionsManifest: rscServerManifest
|
|
95
|
-
})
|
|
88
|
+
serverActionsManifest: rscServerManifest
|
|
96
89
|
});
|
|
97
90
|
}
|
|
98
91
|
const ComponentMod = _VAR_USERLAND;
|
|
@@ -112,7 +105,9 @@ async function requestHandler(req, event) {
|
|
|
112
105
|
status: 400
|
|
113
106
|
});
|
|
114
107
|
}
|
|
115
|
-
const { query, params, buildId, buildManifest, prerenderManifest, reactLoadableManifest,
|
|
108
|
+
const { query, params, buildId, nextConfig, buildManifest, prerenderManifest, reactLoadableManifest, subresourceIntegrityManifest, dynamicCssManifest, nextFontManifest, resolvedPathname, interceptionRoutePatterns, routerServerContext, deploymentId } = prepareResult;
|
|
109
|
+
// Initialize the cache handlers interface.
|
|
110
|
+
(0, _handlers.initializeCacheHandlers)(nextConfig.cacheMaxMemorySize);
|
|
116
111
|
const isPossibleServerAction = (0, _serveractionrequestmeta.getIsPossibleServerAction)(req);
|
|
117
112
|
const botType = (0, _isbot.getBotType)(req.headers.get('User-Agent') || '');
|
|
118
113
|
const { isOnDemandRevalidate } = (0, _apiutils.checkIsOnDemandRevalidate)(req, prerenderManifest.preview);
|
|
@@ -143,8 +138,6 @@ async function requestHandler(req, event) {
|
|
|
143
138
|
reactLoadableManifest,
|
|
144
139
|
subresourceIntegrityManifest,
|
|
145
140
|
dynamicCssManifest,
|
|
146
|
-
serverActionsManifest,
|
|
147
|
-
clientReferenceManifest,
|
|
148
141
|
setIsrStatus: routerServerContext == null ? void 0 : routerServerContext.setIsrStatus,
|
|
149
142
|
dir: pageRouteModule.relativeProjectDir,
|
|
150
143
|
botType,
|
|
@@ -157,7 +150,7 @@ async function requestHandler(req, event) {
|
|
|
157
150
|
trailingSlash: nextConfig.trailingSlash,
|
|
158
151
|
images: nextConfig.images,
|
|
159
152
|
previewProps: prerenderManifest.preview,
|
|
160
|
-
deploymentId
|
|
153
|
+
deploymentId,
|
|
161
154
|
enableTainting: nextConfig.experimental.taint,
|
|
162
155
|
htmlLimitedBots: nextConfig.htmlLimitedBots,
|
|
163
156
|
reactMaxHeadersLength: nextConfig.reactMaxHeadersLength,
|
|
@@ -182,7 +175,7 @@ async function requestHandler(req, event) {
|
|
|
182
175
|
closeController.onClose(cb);
|
|
183
176
|
},
|
|
184
177
|
onAfterTaskError: ()=>{},
|
|
185
|
-
onInstrumentationRequestError: (error, _request, errorContext)=>pageRouteModule.onRequestError(baseReq, error, errorContext, routerServerContext),
|
|
178
|
+
onInstrumentationRequestError: (error, _request, errorContext, silenceLog)=>pageRouteModule.onRequestError(baseReq, error, errorContext, silenceLog, routerServerContext),
|
|
186
179
|
dev: pageRouteModule.isDev
|
|
187
180
|
}
|
|
188
181
|
};
|
|
@@ -280,12 +273,13 @@ async function requestHandler(req, event) {
|
|
|
280
273
|
});
|
|
281
274
|
return renderResultToResponse(result);
|
|
282
275
|
} catch (err) {
|
|
276
|
+
const silenceLog = false;
|
|
283
277
|
await pageRouteModule.onRequestError(baseReq, err, {
|
|
284
278
|
routerKind: 'App Router',
|
|
285
279
|
routePath: normalizedSrcPage,
|
|
286
280
|
routeType: 'render',
|
|
287
281
|
revalidateReason: undefined
|
|
288
|
-
});
|
|
282
|
+
}, silenceLog);
|
|
289
283
|
// rethrow so that we can handle serving error page
|
|
290
284
|
throw err;
|
|
291
285
|
}
|
|
@@ -301,13 +295,15 @@ async function requestHandler(req, event) {
|
|
|
301
295
|
}
|
|
302
296
|
}, invokeRender));
|
|
303
297
|
}
|
|
304
|
-
|
|
298
|
+
const handler = (opts)=>{
|
|
305
299
|
return (0, _adapter.adapter)({
|
|
306
300
|
...opts,
|
|
307
301
|
IncrementalCache: _incrementalcache.IncrementalCache,
|
|
308
302
|
handler: requestHandler,
|
|
309
|
-
incrementalCacheHandler
|
|
303
|
+
incrementalCacheHandler,
|
|
304
|
+
page: 'VAR_PAGE'
|
|
310
305
|
});
|
|
311
|
-
}
|
|
306
|
+
};
|
|
307
|
+
const _default = handler;
|
|
312
308
|
|
|
313
309
|
//# sourceMappingURL=edge-ssr-app.js.map
|
|
@@ -17,7 +17,7 @@ _export(exports, {
|
|
|
17
17
|
return ComponentMod;
|
|
18
18
|
},
|
|
19
19
|
default: function() {
|
|
20
|
-
return
|
|
20
|
+
return _default;
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
require("../../server/web/globals");
|
|
@@ -79,13 +79,9 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
79
79
|
}
|
|
80
80
|
return newObj;
|
|
81
81
|
}
|
|
82
|
-
// INJECT:nextConfig
|
|
83
82
|
// INJECT:pageRouteModuleOptions
|
|
84
83
|
// INJECT:errorRouteModuleOptions
|
|
85
84
|
// INJECT:user500RouteModuleOptions
|
|
86
|
-
// Initialize the cache handlers interface.
|
|
87
|
-
(0, _handlers.initializeCacheHandlers)(nextConfig.cacheMaxMemorySize);
|
|
88
|
-
globalThis.nextConfig = nextConfig;
|
|
89
85
|
const pageMod = {
|
|
90
86
|
..._VAR_USERLAND,
|
|
91
87
|
routeModule: new _module.default({
|
|
@@ -94,7 +90,9 @@ const pageMod = {
|
|
|
94
90
|
App: _VAR_MODULE_APP.default,
|
|
95
91
|
Document: _VAR_MODULE_DOCUMENT.default
|
|
96
92
|
},
|
|
97
|
-
userland: _VAR_USERLAND
|
|
93
|
+
userland: _VAR_USERLAND,
|
|
94
|
+
distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '',
|
|
95
|
+
relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || ''
|
|
98
96
|
})
|
|
99
97
|
};
|
|
100
98
|
const errorMod = {
|
|
@@ -105,7 +103,9 @@ const errorMod = {
|
|
|
105
103
|
App: _VAR_MODULE_APP.default,
|
|
106
104
|
Document: _VAR_MODULE_DOCUMENT.default
|
|
107
105
|
},
|
|
108
|
-
userland: _VAR_MODULE_GLOBAL_ERROR
|
|
106
|
+
userland: _VAR_MODULE_GLOBAL_ERROR,
|
|
107
|
+
distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '',
|
|
108
|
+
relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || ''
|
|
109
109
|
})
|
|
110
110
|
};
|
|
111
111
|
// FIXME: this needs to be made compatible with the template
|
|
@@ -117,13 +117,15 @@ const error500Mod = userland500Page ? {
|
|
|
117
117
|
App: _VAR_MODULE_APP.default,
|
|
118
118
|
Document: _VAR_MODULE_DOCUMENT.default
|
|
119
119
|
},
|
|
120
|
-
userland: userland500Page
|
|
120
|
+
userland: userland500Page,
|
|
121
|
+
distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '',
|
|
122
|
+
relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || ''
|
|
121
123
|
})
|
|
122
124
|
} : null;
|
|
123
125
|
const ComponentMod = pageMod;
|
|
124
126
|
async function requestHandler(req, _event) {
|
|
125
127
|
var _nextConfig_i18n;
|
|
126
|
-
let srcPage = '
|
|
128
|
+
let srcPage = 'VAR_DEFINITION_PATHNAME';
|
|
127
129
|
const relativeUrl = `${req.nextUrl.pathname}${req.nextUrl.search}`;
|
|
128
130
|
const baseReq = new _web.WebNextRequest(req);
|
|
129
131
|
const pageRouteModule = pageMod.routeModule;
|
|
@@ -136,7 +138,8 @@ async function requestHandler(req, _event) {
|
|
|
136
138
|
status: 400
|
|
137
139
|
});
|
|
138
140
|
}
|
|
139
|
-
const { query, params, buildId, isNextDataRequest, buildManifest, prerenderManifest, reactLoadableManifest, clientReferenceManifest, subresourceIntegrityManifest, dynamicCssManifest } = prepareResult;
|
|
141
|
+
const { query, params, buildId, nextConfig, isNextDataRequest, buildManifest, prerenderManifest, reactLoadableManifest, clientReferenceManifest, subresourceIntegrityManifest, dynamicCssManifest } = prepareResult;
|
|
142
|
+
(0, _handlers.initializeCacheHandlers)(nextConfig.cacheMaxMemorySize);
|
|
140
143
|
const renderContext = {
|
|
141
144
|
page: srcPage,
|
|
142
145
|
query,
|
|
@@ -284,12 +287,13 @@ async function requestHandler(req, _event) {
|
|
|
284
287
|
if (errRouteModule.isDev) {
|
|
285
288
|
throw err;
|
|
286
289
|
}
|
|
290
|
+
const silenceLog = false;
|
|
287
291
|
await errRouteModule.onRequestError(baseReq, err, {
|
|
288
292
|
routerKind: 'Pages Router',
|
|
289
293
|
routePath: srcPage,
|
|
290
294
|
routeType: 'render',
|
|
291
295
|
revalidateReason: undefined
|
|
292
|
-
});
|
|
296
|
+
}, silenceLog);
|
|
293
297
|
const errResult = await errRouteModule.render(// @ts-expect-error we don't type this for edge
|
|
294
298
|
baseReq, new _web.WebNextResponse(undefined), {
|
|
295
299
|
...renderContext,
|
|
@@ -316,14 +320,16 @@ async function requestHandler(req, _event) {
|
|
|
316
320
|
}
|
|
317
321
|
}, invokeRender));
|
|
318
322
|
}
|
|
319
|
-
|
|
323
|
+
const handler = (opts)=>{
|
|
320
324
|
return (0, _adapter.adapter)({
|
|
321
325
|
...opts,
|
|
322
326
|
IncrementalCache: _incrementalcache.IncrementalCache,
|
|
323
327
|
handler: requestHandler,
|
|
324
328
|
incrementalCacheHandler,
|
|
325
|
-
bypassNextUrl: true
|
|
329
|
+
bypassNextUrl: true,
|
|
330
|
+
page: 'VAR_DEFINITION_PATHNAME'
|
|
326
331
|
});
|
|
327
|
-
}
|
|
332
|
+
};
|
|
333
|
+
const _default = handler;
|
|
328
334
|
|
|
329
335
|
//# sourceMappingURL=edge-ssr.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// The wrapped module could be an async module, we handle that with the proxy
|
|
2
|
+
// here. The comma expression makes sure we don't call the function with the
|
|
3
|
+
// module as the "this" arg.
|
|
4
|
+
// Turn exports into functions that are also a thenable. This way you can await the whole object
|
|
5
|
+
// or exports (e.g. for Components) or call them directly as though they are async functions
|
|
6
|
+
// (e.g. edge functions/middleware, this is what the Edge Runtime does).
|
|
7
|
+
// Catch promise to prevent UnhandledPromiseRejectionWarning, this will be propagated through
|
|
8
|
+
// the awaited export(s) anyway.
|
|
9
|
+
"use strict";
|
|
10
|
+
self._ENTRIES ||= {};
|
|
11
|
+
const modProm = import('MODULE');
|
|
12
|
+
modProm.catch(()=>{});
|
|
13
|
+
self._ENTRIES['VAR_ENTRY_NAME'] = new Proxy(modProm, {
|
|
14
|
+
get (innerModProm, name) {
|
|
15
|
+
if (name === 'then') {
|
|
16
|
+
return (res, rej)=>innerModProm.then(res, rej);
|
|
17
|
+
}
|
|
18
|
+
let result = (...args)=>innerModProm.then((mod)=>(0, mod[name])(...args));
|
|
19
|
+
result.then = (res, rej)=>innerModProm.then((mod)=>mod[name]).then(res, rej);
|
|
20
|
+
return result;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=edge-wrapper.js.map
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
Object.defineProperty(exports, "default", {
|
|
6
6
|
enumerable: true,
|
|
7
7
|
get: function() {
|
|
8
|
-
return
|
|
8
|
+
return _default;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
const _globals = require("../../server/web/globals");
|
|
@@ -58,7 +58,7 @@ const mod = {
|
|
|
58
58
|
};
|
|
59
59
|
const page = 'VAR_DEFINITION_PAGE';
|
|
60
60
|
const isProxy = page === '/proxy' || page === '/src/proxy';
|
|
61
|
-
const
|
|
61
|
+
const handlerUserland = (isProxy ? mod.proxy : mod.middleware) || mod.default;
|
|
62
62
|
class ProxyMissingExportError extends Error {
|
|
63
63
|
constructor(message){
|
|
64
64
|
super(message);
|
|
@@ -68,7 +68,7 @@ class ProxyMissingExportError extends Error {
|
|
|
68
68
|
}
|
|
69
69
|
// TODO: This spams logs during development. Find a better way to handle this.
|
|
70
70
|
// Removing this will spam "fn is not a function" logs which is worse.
|
|
71
|
-
if (typeof
|
|
71
|
+
if (typeof handlerUserland !== 'function') {
|
|
72
72
|
throw new ProxyMissingExportError(`The ${isProxy ? 'Proxy' : 'Middleware'} file "${page}" must export a function named \`${isProxy ? 'proxy' : 'middleware'}\` or a default function.`);
|
|
73
73
|
}
|
|
74
74
|
// Proxy will only sent out the FetchEvent to next server,
|
|
@@ -103,12 +103,13 @@ function errorHandledHandler(fn) {
|
|
|
103
103
|
}
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
|
-
|
|
106
|
+
const handler = (opts)=>{
|
|
107
107
|
return (0, _adapter.adapter)({
|
|
108
108
|
...opts,
|
|
109
109
|
page,
|
|
110
|
-
handler: errorHandledHandler(
|
|
110
|
+
handler: errorHandledHandler(handlerUserland)
|
|
111
111
|
});
|
|
112
|
-
}
|
|
112
|
+
};
|
|
113
|
+
const _default = handler;
|
|
113
114
|
|
|
114
115
|
//# sourceMappingURL=middleware.js.map
|
|
@@ -26,13 +26,14 @@ if (typeof _VAR_USERLAND.default !== 'function') {
|
|
|
26
26
|
configurable: true
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
|
-
|
|
29
|
+
const handler = (opts)=>{
|
|
30
30
|
return (0, _adapter.adapter)({
|
|
31
31
|
...opts,
|
|
32
32
|
IncrementalCache: _incrementalcache.IncrementalCache,
|
|
33
33
|
page: 'VAR_DEFINITION_PATHNAME',
|
|
34
34
|
handler: (0, _apiutils.wrapApiHandler)(page, _VAR_USERLAND.default)
|
|
35
35
|
});
|
|
36
|
-
}
|
|
36
|
+
};
|
|
37
|
+
const _default = handler;
|
|
37
38
|
|
|
38
39
|
//# sourceMappingURL=pages-edge-api.js.map
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
0 && (module.exports = {
|
|
6
|
+
turbopackAnalyze: null,
|
|
7
|
+
waitForShutdown: 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
|
+
turbopackAnalyze: function() {
|
|
17
|
+
return turbopackAnalyze;
|
|
18
|
+
},
|
|
19
|
+
waitForShutdown: function() {
|
|
20
|
+
return waitForShutdown;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
const _path = /*#__PURE__*/ _interop_require_default(require("path"));
|
|
24
|
+
const _turbopackwarning = require("../../lib/turbopack-warning");
|
|
25
|
+
const _utils = require("../../shared/lib/turbopack/utils");
|
|
26
|
+
const _swc = require("../swc");
|
|
27
|
+
const _ciinfo = require("../../server/ci-info");
|
|
28
|
+
const _compilationevents = require("../../shared/lib/turbopack/compilation-events");
|
|
29
|
+
const _utils1 = require("../utils");
|
|
30
|
+
const _normalizepath = require("../../lib/normalize-path");
|
|
31
|
+
const _constants = require("../../shared/lib/constants");
|
|
32
|
+
function _interop_require_default(obj) {
|
|
33
|
+
return obj && obj.__esModule ? obj : {
|
|
34
|
+
default: obj
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
async function turbopackAnalyze(analyzeContext) {
|
|
38
|
+
var _config_experimental, _config_turbopack, _config_turbopack1, _config_experimental1;
|
|
39
|
+
await (0, _turbopackwarning.validateTurboNextConfig)({
|
|
40
|
+
dir: analyzeContext.dir,
|
|
41
|
+
configPhase: _constants.PHASE_PRODUCTION_BUILD
|
|
42
|
+
});
|
|
43
|
+
const { config, dir, distDir, noMangling } = analyzeContext;
|
|
44
|
+
const currentNodeJsVersion = process.versions.node;
|
|
45
|
+
const startTime = process.hrtime();
|
|
46
|
+
const bindings = await (0, _swc.loadBindings)(config == null ? void 0 : (_config_experimental = config.experimental) == null ? void 0 : _config_experimental.useWasmBinary);
|
|
47
|
+
const dev = false;
|
|
48
|
+
const supportedBrowsers = (0, _utils1.getSupportedBrowsers)(dir, dev);
|
|
49
|
+
const persistentCaching = (0, _utils.isFileSystemCacheEnabledForBuild)(config);
|
|
50
|
+
const rootPath = ((_config_turbopack = config.turbopack) == null ? void 0 : _config_turbopack.root) || config.outputFileTracingRoot || dir;
|
|
51
|
+
const project = await bindings.turbo.createProject({
|
|
52
|
+
rootPath: ((_config_turbopack1 = config.turbopack) == null ? void 0 : _config_turbopack1.root) || config.outputFileTracingRoot || dir,
|
|
53
|
+
projectPath: (0, _normalizepath.normalizePath)(_path.default.relative(rootPath, dir) || '.'),
|
|
54
|
+
distDir,
|
|
55
|
+
nextConfig: config,
|
|
56
|
+
watch: {
|
|
57
|
+
enable: false
|
|
58
|
+
},
|
|
59
|
+
dev,
|
|
60
|
+
env: process.env,
|
|
61
|
+
defineEnv: (0, _swc.createDefineEnv)({
|
|
62
|
+
isTurbopack: true,
|
|
63
|
+
config,
|
|
64
|
+
dev,
|
|
65
|
+
distDir,
|
|
66
|
+
projectPath: dir,
|
|
67
|
+
fetchCacheKeyPrefix: config.experimental.fetchCacheKeyPrefix,
|
|
68
|
+
hasRewrites: false,
|
|
69
|
+
// Implemented separately in Turbopack, doesn't have to be passed here.
|
|
70
|
+
middlewareMatchers: undefined,
|
|
71
|
+
rewrites: {
|
|
72
|
+
beforeFiles: [],
|
|
73
|
+
afterFiles: [],
|
|
74
|
+
fallback: []
|
|
75
|
+
}
|
|
76
|
+
}),
|
|
77
|
+
buildId: 'analyze-build',
|
|
78
|
+
encryptionKey: '',
|
|
79
|
+
previewProps: {
|
|
80
|
+
previewModeId: '',
|
|
81
|
+
previewModeEncryptionKey: '',
|
|
82
|
+
previewModeSigningKey: ''
|
|
83
|
+
},
|
|
84
|
+
browserslistQuery: supportedBrowsers.join(', '),
|
|
85
|
+
noMangling,
|
|
86
|
+
writeRoutesHashesManifest: false,
|
|
87
|
+
currentNodeJsVersion
|
|
88
|
+
}, {
|
|
89
|
+
persistentCaching,
|
|
90
|
+
memoryLimit: (_config_experimental1 = config.experimental) == null ? void 0 : _config_experimental1.turbopackMemoryLimit,
|
|
91
|
+
dependencyTracking: persistentCaching,
|
|
92
|
+
isCi: _ciinfo.isCI,
|
|
93
|
+
isShortSession: true
|
|
94
|
+
});
|
|
95
|
+
try {
|
|
96
|
+
(0, _compilationevents.backgroundLogCompilationEvents)(project);
|
|
97
|
+
await project.writeAnalyzeData(analyzeContext.appDirOnly);
|
|
98
|
+
const shutdownPromise = project.shutdown();
|
|
99
|
+
const time = process.hrtime(startTime);
|
|
100
|
+
return {
|
|
101
|
+
duration: time[0] + time[1] / 1e9,
|
|
102
|
+
shutdownPromise
|
|
103
|
+
};
|
|
104
|
+
} catch (err) {
|
|
105
|
+
await project.shutdown();
|
|
106
|
+
throw err;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
let shutdownPromise;
|
|
110
|
+
async function waitForShutdown() {
|
|
111
|
+
if (shutdownPromise) {
|
|
112
|
+
await shutdownPromise;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -51,7 +51,7 @@ async function turbopackBuild() {
|
|
|
51
51
|
var _config_turbopack, _config_turbopack1, _config_experimental;
|
|
52
52
|
await (0, _turbopackwarning.validateTurboNextConfig)({
|
|
53
53
|
dir: _buildcontext.NextBuildContext.dir,
|
|
54
|
-
|
|
54
|
+
configPhase: _constants.PHASE_PRODUCTION_BUILD
|
|
55
55
|
});
|
|
56
56
|
const config = _buildcontext.NextBuildContext.config;
|
|
57
57
|
const dir = _buildcontext.NextBuildContext.dir;
|
|
@@ -98,6 +98,7 @@ async function turbopackBuild() {
|
|
|
98
98
|
previewProps,
|
|
99
99
|
browserslistQuery: supportedBrowsers.join(', '),
|
|
100
100
|
noMangling,
|
|
101
|
+
writeRoutesHashesManifest: !!process.env.NEXT_TURBOPACK_WRITE_ROUTES_HASHES_MANIFEST,
|
|
101
102
|
currentNodeJsVersion
|
|
102
103
|
}, {
|
|
103
104
|
persistentCaching,
|