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
|
@@ -17,14 +17,14 @@ function buildCustomRoute(type, route, restrictedRedirectPaths) {
|
|
|
17
17
|
sensitive: false,
|
|
18
18
|
delimiter: '/'
|
|
19
19
|
});
|
|
20
|
-
let source = compiled.source;
|
|
21
|
-
if (!route.internal) {
|
|
22
|
-
source = (0, _redirectstatus.modifyRouteRegex)(source, type === 'redirect' ? restrictedRedirectPaths : undefined);
|
|
23
|
-
}
|
|
24
20
|
// If this is an internal rewrite and it already provides a regex, use it
|
|
25
21
|
// otherwise, normalize the source to a regex.
|
|
26
22
|
let regex;
|
|
27
23
|
if (!route.internal || type !== 'rewrite' || !('regex' in route) || typeof route.regex !== 'string') {
|
|
24
|
+
let source = compiled.source;
|
|
25
|
+
if (!route.internal) {
|
|
26
|
+
source = (0, _redirectstatus.modifyRouteRegex)(source, type === 'redirect' ? restrictedRedirectPaths : undefined);
|
|
27
|
+
}
|
|
28
28
|
regex = (0, _loadcustomroutes.normalizeRouteRegex)(source);
|
|
29
29
|
} else {
|
|
30
30
|
regex = route.regex;
|
|
@@ -46,7 +46,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
46
46
|
RSC_CACHE_WRAPPER_ALIAS: null,
|
|
47
47
|
RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS: null,
|
|
48
48
|
RSC_MOD_REF_PROXY_ALIAS: null,
|
|
49
|
-
RSC_PREFETCH_SUFFIX: null,
|
|
50
49
|
RSC_SEGMENTS_DIR_SUFFIX: null,
|
|
51
50
|
RSC_SEGMENT_SUFFIX: null,
|
|
52
51
|
RSC_SUFFIX: null,
|
|
@@ -199,9 +198,6 @@ _export(exports, {
|
|
|
199
198
|
RSC_MOD_REF_PROXY_ALIAS: function() {
|
|
200
199
|
return RSC_MOD_REF_PROXY_ALIAS;
|
|
201
200
|
},
|
|
202
|
-
RSC_PREFETCH_SUFFIX: function() {
|
|
203
|
-
return RSC_PREFETCH_SUFFIX;
|
|
204
|
-
},
|
|
205
201
|
RSC_SEGMENTS_DIR_SUFFIX: function() {
|
|
206
202
|
return RSC_SEGMENTS_DIR_SUFFIX;
|
|
207
203
|
},
|
|
@@ -256,7 +252,6 @@ const NEXT_INTERCEPTION_MARKER_PREFIX = 'nxtI';
|
|
|
256
252
|
const MATCHED_PATH_HEADER = 'x-matched-path';
|
|
257
253
|
const PRERENDER_REVALIDATE_HEADER = 'x-prerender-revalidate';
|
|
258
254
|
const PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER = 'x-prerender-revalidate-if-generated';
|
|
259
|
-
const RSC_PREFETCH_SUFFIX = '.prefetch.rsc';
|
|
260
255
|
const RSC_SEGMENTS_DIR_SUFFIX = '.segments';
|
|
261
256
|
const RSC_SEGMENT_SUFFIX = '.segment.rsc';
|
|
262
257
|
const RSC_SUFFIX = '.rsc';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
["geist"]
|
|
@@ -12,15 +12,15 @@ const _child_process = require("child_process");
|
|
|
12
12
|
const _getpkgmanager = require("./get-pkg-manager");
|
|
13
13
|
function getNpxCommand(baseDir) {
|
|
14
14
|
const pkgManager = (0, _getpkgmanager.getPkgManager)(baseDir);
|
|
15
|
-
let command = 'npx';
|
|
15
|
+
let command = 'npx --yes';
|
|
16
16
|
if (pkgManager === 'pnpm') {
|
|
17
|
-
command = 'pnpm dlx';
|
|
17
|
+
command = 'pnpm --silent dlx';
|
|
18
18
|
} else if (pkgManager === 'yarn') {
|
|
19
19
|
try {
|
|
20
20
|
(0, _child_process.execSync)('yarn dlx --help', {
|
|
21
21
|
stdio: 'ignore'
|
|
22
22
|
});
|
|
23
|
-
command = 'yarn dlx';
|
|
23
|
+
command = 'yarn --quiet dlx';
|
|
24
24
|
} catch {}
|
|
25
25
|
}
|
|
26
26
|
return command;
|
|
@@ -23,7 +23,7 @@ function _interop_require_default(obj) {
|
|
|
23
23
|
const glob = (0, _util.promisify)(_glob.default);
|
|
24
24
|
async function inlineStaticEnv({ distDir, config }) {
|
|
25
25
|
const nextConfigEnv = (0, _staticenv.getNextConfigEnv)(config);
|
|
26
|
-
const staticEnv = (0, _staticenv.getStaticEnv)(config);
|
|
26
|
+
const staticEnv = (0, _staticenv.getStaticEnv)(config, config.deploymentId);
|
|
27
27
|
const serverDir = _path.default.join(distDir, 'server');
|
|
28
28
|
const serverChunks = await glob('**/*.{js,json,js.map}', {
|
|
29
29
|
cwd: serverDir
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
["function-bind"]
|
|
@@ -65,8 +65,8 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
65
65
|
function createMetadataComponents({ tree, pathname, parsedQuery, metadataContext, getDynamicParamFromSegment, errorType, workStore, serveStreamingMetadata }) {
|
|
66
66
|
const searchParams = (0, _searchparams.createServerSearchParamsForMetadata)(parsedQuery, workStore);
|
|
67
67
|
const pathnameForMetadata = (0, _pathname.createServerPathnameForMetadata)(pathname, workStore);
|
|
68
|
-
function Viewport() {
|
|
69
|
-
const
|
|
68
|
+
async function Viewport() {
|
|
69
|
+
const tags = await getResolvedViewport(tree, searchParams, getDynamicParamFromSegment, workStore, errorType).catch((viewportErr)=>{
|
|
70
70
|
// When Legacy PPR is enabled viewport can reject with a Postpone type
|
|
71
71
|
// This will go away once Legacy PPR is removed and dynamic metadata will
|
|
72
72
|
// stay pending until after the prerender is complete when it is dynamic
|
|
@@ -79,13 +79,16 @@ function createMetadataComponents({ tree, pathname, parsedQuery, metadataContext
|
|
|
79
79
|
// We're going to throw the error from the metadata outlet so we just render null here instead
|
|
80
80
|
return null;
|
|
81
81
|
});
|
|
82
|
+
return tags;
|
|
83
|
+
}
|
|
84
|
+
Viewport.displayName = 'Next.Viewport';
|
|
85
|
+
function ViewportWrapper() {
|
|
82
86
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_boundarycomponents.ViewportBoundary, {
|
|
83
|
-
children:
|
|
87
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(Viewport, {})
|
|
84
88
|
});
|
|
85
89
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
const pendingMetadataTags = getResolvedMetadata(tree, pathnameForMetadata, searchParams, getDynamicParamFromSegment, metadataContext, workStore, errorType).catch((metadataErr)=>{
|
|
90
|
+
async function Metadata() {
|
|
91
|
+
const tags = await getResolvedMetadata(tree, pathnameForMetadata, searchParams, getDynamicParamFromSegment, metadataContext, workStore, errorType).catch((metadataErr)=>{
|
|
89
92
|
// When Legacy PPR is enabled metadata can reject with a Postpone type
|
|
90
93
|
// This will go away once Legacy PPR is removed and dynamic metadata will
|
|
91
94
|
// stay pending until after the prerender is complete when it is dynamic
|
|
@@ -98,12 +101,16 @@ function createMetadataComponents({ tree, pathname, parsedQuery, metadataContext
|
|
|
98
101
|
// We're going to throw the error from the metadata outlet so we just render null here instead
|
|
99
102
|
return null;
|
|
100
103
|
});
|
|
104
|
+
return tags;
|
|
105
|
+
}
|
|
106
|
+
Metadata.displayName = 'Next.Metadata';
|
|
107
|
+
function MetadataWrapper() {
|
|
101
108
|
// TODO: We shouldn't change what we render based on whether we are streaming or not.
|
|
102
109
|
// If we aren't streaming we should just block the response until we have resolved the
|
|
103
110
|
// metadata.
|
|
104
111
|
if (!serveStreamingMetadata) {
|
|
105
112
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_boundarycomponents.MetadataBoundary, {
|
|
106
|
-
children:
|
|
113
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(Metadata, {})
|
|
107
114
|
});
|
|
108
115
|
}
|
|
109
116
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
|
|
@@ -111,12 +118,11 @@ function createMetadataComponents({ tree, pathname, parsedQuery, metadataContext
|
|
|
111
118
|
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_boundarycomponents.MetadataBoundary, {
|
|
112
119
|
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_react.Suspense, {
|
|
113
120
|
name: "Next.Metadata",
|
|
114
|
-
children:
|
|
121
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(Metadata, {})
|
|
115
122
|
})
|
|
116
123
|
})
|
|
117
124
|
});
|
|
118
125
|
}
|
|
119
|
-
Metadata.displayName = 'Next.Metadata';
|
|
120
126
|
function MetadataOutlet() {
|
|
121
127
|
const pendingOutlet = Promise.all([
|
|
122
128
|
getResolvedMetadata(tree, pathnameForMetadata, searchParams, getDynamicParamFromSegment, metadataContext, workStore, errorType),
|
|
@@ -139,8 +145,8 @@ function createMetadataComponents({ tree, pathname, parsedQuery, metadataContext
|
|
|
139
145
|
}
|
|
140
146
|
MetadataOutlet.displayName = 'Next.MetadataOutlet';
|
|
141
147
|
return {
|
|
142
|
-
Viewport,
|
|
143
|
-
Metadata,
|
|
148
|
+
Viewport: ViewportWrapper,
|
|
149
|
+
Metadata: MetadataWrapper,
|
|
144
150
|
MetadataOutlet
|
|
145
151
|
};
|
|
146
152
|
}
|
|
@@ -9,8 +9,8 @@ Object.defineProperty(exports, "needsExperimentalReact", {
|
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
function needsExperimentalReact(config) {
|
|
12
|
-
const { taint } = config.experimental || {};
|
|
13
|
-
return Boolean(taint);
|
|
12
|
+
const { taint, transitionIndicator } = config.experimental || {};
|
|
13
|
+
return Boolean(taint || transitionIndicator);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
//# sourceMappingURL=needs-experimental-react.js.map
|
|
@@ -73,41 +73,53 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
73
73
|
return newObj;
|
|
74
74
|
}
|
|
75
75
|
const glob = (0, _util.promisify)(_glob.default);
|
|
76
|
+
/**
|
|
77
|
+
* Escapes bracket expressions that correspond to existing directories.
|
|
78
|
+
* This allows Next.js dynamic routes like [slug] to work with glob patterns.
|
|
79
|
+
*
|
|
80
|
+
* e.g., "app/blog/[slug]/** /page.tsx" → "app/blog/\[slug\]/** /page.tsx"
|
|
81
|
+
* (if app/blog/[slug] directory exists)
|
|
82
|
+
*/ function escapeExistingBrackets(pattern, projectDir) {
|
|
83
|
+
// Match bracket expressions: [name], [...name], [[...name]]
|
|
84
|
+
const bracketRegex = /\[\[?\.\.\.[^\]]+\]?\]|\[[^\]]+\]/g;
|
|
85
|
+
let lastIndex = 0;
|
|
86
|
+
let result = '';
|
|
87
|
+
let match;
|
|
88
|
+
while((match = bracketRegex.exec(pattern)) !== null){
|
|
89
|
+
const pathPrefix = pattern.slice(0, match.index + match[0].length);
|
|
90
|
+
const exists = _fs.default.existsSync(_path.default.join(projectDir, pathPrefix));
|
|
91
|
+
result += pattern.slice(lastIndex, match.index);
|
|
92
|
+
result += exists ? match[0].replace(/\[/g, '\\[').replace(/\]/g, '\\]') : match[0];
|
|
93
|
+
lastIndex = match.index + match[0].length;
|
|
94
|
+
}
|
|
95
|
+
return result + pattern.slice(lastIndex);
|
|
96
|
+
}
|
|
76
97
|
async function resolveBuildPaths(patterns, projectDir) {
|
|
77
98
|
const appPaths = new Set();
|
|
78
99
|
const pagePaths = new Set();
|
|
79
100
|
for (const pattern of patterns){
|
|
80
101
|
const trimmed = pattern.trim();
|
|
81
|
-
if (!trimmed)
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
if (
|
|
93
|
-
|
|
94
|
-
}
|
|
95
|
-
for (const file of matches){
|
|
96
|
-
// Skip directories, only process files
|
|
97
|
-
if (!_fs.default.statSync(_path.default.join(projectDir, file)).isDirectory()) {
|
|
98
|
-
categorizeAndAddPath(file, appPaths, pagePaths);
|
|
99
|
-
}
|
|
102
|
+
if (!trimmed) continue;
|
|
103
|
+
try {
|
|
104
|
+
// Escape brackets that correspond to existing Next.js dynamic route directories
|
|
105
|
+
const escapedPattern = escapeExistingBrackets(trimmed, projectDir);
|
|
106
|
+
const matches = await glob(escapedPattern, {
|
|
107
|
+
cwd: projectDir
|
|
108
|
+
});
|
|
109
|
+
if (matches.length === 0) {
|
|
110
|
+
_log.warn(`Pattern "${trimmed}" did not match any files`);
|
|
111
|
+
}
|
|
112
|
+
for (const file of matches){
|
|
113
|
+
if (!_fs.default.statSync(_path.default.join(projectDir, file)).isDirectory()) {
|
|
114
|
+
categorizeAndAddPath(file, appPaths, pagePaths);
|
|
100
115
|
}
|
|
101
|
-
} catch (error) {
|
|
102
|
-
throw Object.defineProperty(new Error(`Failed to resolve glob pattern "${trimmed}": ${(0, _iserror.default)(error) ? error.message : String(error)}`), "__NEXT_ERROR_CODE", {
|
|
103
|
-
value: "E892",
|
|
104
|
-
enumerable: false,
|
|
105
|
-
configurable: true
|
|
106
|
-
});
|
|
107
116
|
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
117
|
+
} catch (error) {
|
|
118
|
+
throw Object.defineProperty(new Error(`Failed to resolve pattern "${trimmed}": ${(0, _iserror.default)(error) ? error.message : String(error)}`), "__NEXT_ERROR_CODE", {
|
|
119
|
+
value: "E972",
|
|
120
|
+
enumerable: false,
|
|
121
|
+
configurable: true
|
|
122
|
+
});
|
|
111
123
|
}
|
|
112
124
|
}
|
|
113
125
|
return {
|
|
@@ -116,61 +128,17 @@ async function resolveBuildPaths(patterns, projectDir) {
|
|
|
116
128
|
};
|
|
117
129
|
}
|
|
118
130
|
/**
|
|
119
|
-
* Categorizes a file path to either app or pages router based on its prefix
|
|
120
|
-
* and normalizes it to the format expected by Next.js internal build system.
|
|
121
|
-
*
|
|
122
|
-
* The internal build system expects:
|
|
123
|
-
* - App router: paths with leading slash (e.g., "/page.tsx", "/dashboard/page.tsx")
|
|
124
|
-
* - Pages router: paths with leading slash (e.g., "/index.tsx", "/about.tsx")
|
|
131
|
+
* Categorizes a file path to either app or pages router based on its prefix.
|
|
125
132
|
*
|
|
126
133
|
* Examples:
|
|
127
134
|
* - "app/page.tsx" → appPaths.add("/page.tsx")
|
|
128
|
-
* - "app/dashboard/page.tsx" → appPaths.add("/dashboard/page.tsx")
|
|
129
135
|
* - "pages/index.tsx" → pagePaths.add("/index.tsx")
|
|
130
|
-
|
|
131
|
-
* - "/page.tsx" → appPaths.add("/page.tsx") (already in app router format)
|
|
132
|
-
*/ function categorizeAndAddPath(filePath, appPaths, pagePaths, projectDir) {
|
|
133
|
-
// Normalize path separators to forward slashes (Windows compatibility)
|
|
136
|
+
*/ function categorizeAndAddPath(filePath, appPaths, pagePaths) {
|
|
134
137
|
const normalized = filePath.replace(/\\/g, '/');
|
|
135
|
-
// Skip non-file entries (like directories without extensions)
|
|
136
|
-
if (normalized.endsWith('/')) {
|
|
137
|
-
return;
|
|
138
|
-
}
|
|
139
138
|
if (normalized.startsWith('app/')) {
|
|
140
|
-
|
|
141
|
-
// "app/page.tsx" → "/page.tsx"
|
|
142
|
-
// "app/dashboard/page.tsx" → "/dashboard/page.tsx"
|
|
143
|
-
const withoutPrefix = normalized.slice(4) // Remove "app/"
|
|
144
|
-
;
|
|
145
|
-
appPaths.add('/' + withoutPrefix);
|
|
139
|
+
appPaths.add('/' + normalized.slice(4));
|
|
146
140
|
} else if (normalized.startsWith('pages/')) {
|
|
147
|
-
|
|
148
|
-
// "pages/index.tsx" → "/index.tsx"
|
|
149
|
-
// "pages/about.tsx" → "/about.tsx"
|
|
150
|
-
const withoutPrefix = normalized.slice(6) // Remove "pages/"
|
|
151
|
-
;
|
|
152
|
-
pagePaths.add('/' + withoutPrefix);
|
|
153
|
-
} else if (normalized.startsWith('/')) {
|
|
154
|
-
// Leading slash suggests app router format (already in correct format)
|
|
155
|
-
// "/page.tsx" → "/page.tsx" (no change needed)
|
|
156
|
-
appPaths.add(normalized);
|
|
157
|
-
} else {
|
|
158
|
-
// No obvious prefix - try to detect based on file existence
|
|
159
|
-
if (projectDir) {
|
|
160
|
-
const appPath = _path.default.join(projectDir, 'app', normalized);
|
|
161
|
-
const pagesPath = _path.default.join(projectDir, 'pages', normalized);
|
|
162
|
-
if (_fs.default.existsSync(appPath)) {
|
|
163
|
-
appPaths.add('/' + normalized);
|
|
164
|
-
} else if (_fs.default.existsSync(pagesPath)) {
|
|
165
|
-
pagePaths.add('/' + normalized);
|
|
166
|
-
} else {
|
|
167
|
-
// Default to pages router for paths without clear indicator
|
|
168
|
-
pagePaths.add('/' + normalized);
|
|
169
|
-
}
|
|
170
|
-
} else {
|
|
171
|
-
// Without projectDir context, default to pages router
|
|
172
|
-
pagePaths.add('/' + normalized);
|
|
173
|
-
}
|
|
141
|
+
pagePaths.add('/' + normalized.slice(6));
|
|
174
142
|
}
|
|
175
143
|
}
|
|
176
144
|
function parseBuildPathsInput(input) {
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
[
|
|
2
|
+
// alineacms.com generates this package at build time and it should not end up in a cache (much like the @prisma/client package)
|
|
3
|
+
"@alinea/generated",
|
|
4
|
+
"@appsignal/nodejs",
|
|
5
|
+
"@aws-sdk/client-s3",
|
|
6
|
+
"@aws-sdk/s3-presigned-post",
|
|
7
|
+
"@blockfrost/blockfrost-js",
|
|
8
|
+
"@highlight-run/node",
|
|
9
|
+
"@huggingface/transformers",
|
|
10
|
+
"@jpg-store/lucid-cardano",
|
|
11
|
+
"@libsql/client",
|
|
12
|
+
"@mikro-orm/core",
|
|
13
|
+
"@mikro-orm/knex",
|
|
14
|
+
"@node-rs/argon2",
|
|
15
|
+
"@node-rs/bcrypt",
|
|
16
|
+
"@prisma/client",
|
|
17
|
+
"@react-pdf/renderer",
|
|
18
|
+
// Native Node.js addons
|
|
19
|
+
"@sentry/profiling-node",
|
|
20
|
+
"@sparticuz/chromium",
|
|
21
|
+
"@sparticuz/chromium-min",
|
|
22
|
+
// Native Node.js addons
|
|
23
|
+
"@statsig/statsig-node-core",
|
|
24
|
+
// Native Node.js addons
|
|
25
|
+
"@swc/core",
|
|
26
|
+
"@xenova/transformers",
|
|
27
|
+
// Builds on top of @prisma/client so dynamically loads the version.
|
|
28
|
+
"@zenstackhq/runtime",
|
|
29
|
+
"argon2",
|
|
30
|
+
"autoprefixer",
|
|
31
|
+
"aws-crt",
|
|
32
|
+
"bcrypt",
|
|
33
|
+
"better-sqlite3",
|
|
34
|
+
"canvas",
|
|
35
|
+
"chromadb-default-embed",
|
|
36
|
+
// Contains an unconditional require to a undeclared dependency 'coffee-script'
|
|
37
|
+
"config",
|
|
38
|
+
// Native Node.js addons
|
|
39
|
+
"cpu-features",
|
|
40
|
+
"cypress",
|
|
41
|
+
"dd-trace",
|
|
42
|
+
"eslint",
|
|
43
|
+
"express",
|
|
44
|
+
"firebase-admin",
|
|
45
|
+
"htmlrewriter",
|
|
46
|
+
// Patches the module system to shim modules
|
|
47
|
+
"import-in-the-middle",
|
|
48
|
+
// Native Node.js addons
|
|
49
|
+
"isolated-vm",
|
|
50
|
+
"jest",
|
|
51
|
+
"jsdom",
|
|
52
|
+
// Used to contain a very dynamic require to load the DB backend:
|
|
53
|
+
// https://github.com/jaredwray/keyv/blob/78b247b5b7a8c9b12154fbfae4295d6fb29158cf/packages/keyv/src/index.js#L22
|
|
54
|
+
"keyv",
|
|
55
|
+
"libsql",
|
|
56
|
+
"mdx-bundler",
|
|
57
|
+
"mongodb",
|
|
58
|
+
"mongoose",
|
|
59
|
+
"newrelic",
|
|
60
|
+
"next-mdx-remote",
|
|
61
|
+
"next-seo",
|
|
62
|
+
"node-cron",
|
|
63
|
+
"node-pty",
|
|
64
|
+
"node-web-audio-api",
|
|
65
|
+
"onnxruntime-node",
|
|
66
|
+
"oslo",
|
|
67
|
+
"pg",
|
|
68
|
+
// pino@10.1.0/lib/transport.js passes `join(__dirname, 'worker.js')` to thread-stream which ends
|
|
69
|
+
// up `require`ing that filepath, leading to
|
|
70
|
+
// `Cannot find module '/ROOT/node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/worker.js'`
|
|
71
|
+
"pino",
|
|
72
|
+
// A "plugin" that is passed to pino as a string (and is then required in a worker)
|
|
73
|
+
"pino-pretty",
|
|
74
|
+
// A "plugin" that is passed to pino as a string (and is then required in a worker)
|
|
75
|
+
"pino-roll",
|
|
76
|
+
"playwright",
|
|
77
|
+
"playwright-core",
|
|
78
|
+
"postcss",
|
|
79
|
+
"prettier",
|
|
80
|
+
"prisma",
|
|
81
|
+
"puppeteer",
|
|
82
|
+
"puppeteer-core",
|
|
83
|
+
"ravendb",
|
|
84
|
+
// Patches the module system to shim modules
|
|
85
|
+
"require-in-the-middle",
|
|
86
|
+
"rimraf",
|
|
87
|
+
// Native Node.js addons
|
|
88
|
+
"sharp",
|
|
89
|
+
"shiki",
|
|
90
|
+
"sqlite3",
|
|
91
|
+
// dynamic `new Worker` call in thread-stream@3.1.0/index.js which pulls in various non-code files
|
|
92
|
+
// as well (trying to parse README and invalid test files)
|
|
93
|
+
"thread-stream",
|
|
94
|
+
// Slow to compile because it pulls in typescript
|
|
95
|
+
"ts-morph",
|
|
96
|
+
"ts-node",
|
|
97
|
+
"typescript",
|
|
98
|
+
"vscode-oniguruma",
|
|
99
|
+
"webpack",
|
|
100
|
+
"websocket",
|
|
101
|
+
// Native Node.js addons
|
|
102
|
+
"zeromq",
|
|
103
|
+
]
|
|
@@ -32,8 +32,8 @@ function errorIfEnvConflicted(config, key) {
|
|
|
32
32
|
const isPrivateKey = /^(?:NODE_.+)|^(?:__.+)$/i.test(key);
|
|
33
33
|
const hasNextRuntimeKey = key === 'NEXT_RUNTIME';
|
|
34
34
|
if (isPrivateKey || hasNextRuntimeKey) {
|
|
35
|
-
throw Object.defineProperty(new Error(`The key "${key}" under "env" in ${config.configFileName} is not allowed. https://nextjs.org/docs/messages/env-key-not-allowed`), "__NEXT_ERROR_CODE", {
|
|
36
|
-
value: "
|
|
35
|
+
throw Object.defineProperty(new Error(`The key "${key}" under "env" in ${config.configFileName || 'config'} is not allowed. https://nextjs.org/docs/messages/env-key-not-allowed`), "__NEXT_ERROR_CODE", {
|
|
36
|
+
value: "E967",
|
|
37
37
|
enumerable: false,
|
|
38
38
|
configurable: true
|
|
39
39
|
});
|
|
@@ -68,19 +68,19 @@ function getNextConfigEnv(config) {
|
|
|
68
68
|
}
|
|
69
69
|
return defineEnv;
|
|
70
70
|
}
|
|
71
|
-
function getStaticEnv(config) {
|
|
71
|
+
function getStaticEnv(config, deploymentId) {
|
|
72
72
|
const staticEnv = {
|
|
73
73
|
...getNextPublicEnvironmentVariables(),
|
|
74
74
|
...getNextConfigEnv(config),
|
|
75
|
-
'process.env.NEXT_DEPLOYMENT_ID':
|
|
75
|
+
'process.env.NEXT_DEPLOYMENT_ID': deploymentId
|
|
76
76
|
};
|
|
77
77
|
return staticEnv;
|
|
78
78
|
}
|
|
79
|
-
function populateStaticEnv(config) {
|
|
79
|
+
function populateStaticEnv(config, deploymentId) {
|
|
80
80
|
// since inlining comes after static generation we need
|
|
81
81
|
// to ensure this value is assigned to process env so it
|
|
82
82
|
// can still be accessed
|
|
83
|
-
const staticEnv = getStaticEnv(config);
|
|
83
|
+
const staticEnv = getStaticEnv(config, deploymentId);
|
|
84
84
|
for(const key in staticEnv){
|
|
85
85
|
const innerKey = key.split('.').pop() || '';
|
|
86
86
|
if (!process.env[innerKey]) {
|
|
@@ -10,7 +10,6 @@ Object.defineProperty(exports, "validateTurboNextConfig", {
|
|
|
10
10
|
});
|
|
11
11
|
const _config = /*#__PURE__*/ _interop_require_default(require("../server/config"));
|
|
12
12
|
const _log = /*#__PURE__*/ _interop_require_wildcard(require("../build/output/log"));
|
|
13
|
-
const _constants = require("../shared/lib/constants");
|
|
14
13
|
function _interop_require_default(obj) {
|
|
15
14
|
return obj && obj.__esModule ? obj : {
|
|
16
15
|
default: obj
|
|
@@ -88,7 +87,7 @@ const unsupportedTurbopackNextConfigOptions = [
|
|
|
88
87
|
'experimental.urlImports',
|
|
89
88
|
'experimental.slowModuleDetection'
|
|
90
89
|
];
|
|
91
|
-
async function validateTurboNextConfig({ dir,
|
|
90
|
+
async function validateTurboNextConfig({ dir, configPhase }) {
|
|
92
91
|
const { defaultConfig } = require('../server/config-shared');
|
|
93
92
|
const { cyan, red, underline } = require('../lib/picocolors');
|
|
94
93
|
const { interopDefault } = require('../lib/interop-default');
|
|
@@ -97,13 +96,12 @@ async function validateTurboNextConfig({ dir, isDev }) {
|
|
|
97
96
|
let hasTurboConfig = false;
|
|
98
97
|
const unsupportedConfig = [];
|
|
99
98
|
let rawNextConfig = {};
|
|
100
|
-
const phase = isDev ? _constants.PHASE_DEVELOPMENT_SERVER : _constants.PHASE_PRODUCTION_BUILD;
|
|
101
99
|
try {
|
|
102
|
-
rawNextConfig = interopDefault(await (0, _config.default)(
|
|
100
|
+
rawNextConfig = interopDefault(await (0, _config.default)(configPhase, dir, {
|
|
103
101
|
rawConfig: true
|
|
104
102
|
}));
|
|
105
103
|
if (typeof rawNextConfig === 'function') {
|
|
106
|
-
rawNextConfig = rawNextConfig(
|
|
104
|
+
rawNextConfig = rawNextConfig(configPhase, {
|
|
107
105
|
defaultConfig
|
|
108
106
|
});
|
|
109
107
|
}
|
|
@@ -12,16 +12,72 @@ const _path = /*#__PURE__*/ _interop_require_default(require("path"));
|
|
|
12
12
|
const _diagnosticFormatter = require("./diagnosticFormatter");
|
|
13
13
|
const _getTypeScriptConfiguration = require("./getTypeScriptConfiguration");
|
|
14
14
|
const _writeConfigurationDefaults = require("./writeConfigurationDefaults");
|
|
15
|
+
const _typepaths = require("./type-paths");
|
|
15
16
|
const _compileerror = require("../compile-error");
|
|
16
17
|
const _log = require("../../build/output/log");
|
|
18
|
+
const _configshared = require("../../server/config-shared");
|
|
17
19
|
function _interop_require_default(obj) {
|
|
18
20
|
return obj && obj.__esModule ? obj : {
|
|
19
21
|
default: obj
|
|
20
22
|
};
|
|
21
23
|
}
|
|
22
|
-
|
|
24
|
+
/**
|
|
25
|
+
* Check if a file path matches any of the debug build paths.
|
|
26
|
+
* Both filePath and debugPaths are resolved file paths from glob.
|
|
27
|
+
*/ function fileMatchesDebugPaths(filePath, debugPaths) {
|
|
28
|
+
return debugPaths.includes(filePath);
|
|
29
|
+
}
|
|
30
|
+
async function runTypeCheck(typescript, baseDir, distDir, tsConfigPath, cacheDir, isAppDirEnabled, isolatedDevBuild, dirs, debugBuildPaths) {
|
|
23
31
|
const effectiveConfiguration = await (0, _getTypeScriptConfiguration.getTypeScriptConfiguration)(typescript, tsConfigPath);
|
|
24
|
-
|
|
32
|
+
// When isolatedDevBuild is enabled, tsconfig includes both .next/types and
|
|
33
|
+
// .next/dev/types to avoid config churn between dev/build modes. During build,
|
|
34
|
+
// we filter out .next/dev/types files to prevent stale dev types from causing
|
|
35
|
+
// errors when routes have been deleted since the last dev session.
|
|
36
|
+
let fileNames = effectiveConfiguration.fileNames;
|
|
37
|
+
const resolvedIsolatedDevBuild = isolatedDevBuild === undefined ? _configshared.defaultConfig.experimental.isolatedDevBuild : isolatedDevBuild;
|
|
38
|
+
// Get the dev types path to filter (null if not applicable)
|
|
39
|
+
const devTypesDir = (0, _typepaths.getDevTypesPath)(baseDir, distDir, resolvedIsolatedDevBuild);
|
|
40
|
+
if (devTypesDir) {
|
|
41
|
+
fileNames = fileNames.filter((fileName)=>!fileName.startsWith(devTypesDir));
|
|
42
|
+
}
|
|
43
|
+
// Apply debug build paths filter if specified
|
|
44
|
+
if (dirs && debugBuildPaths) {
|
|
45
|
+
const { app: appDir, pages: pagesDir } = dirs;
|
|
46
|
+
const { app: debugAppPaths, pages: debugPagePaths } = debugBuildPaths;
|
|
47
|
+
fileNames = fileNames.filter((fileName)=>{
|
|
48
|
+
// Check if file is in app directory
|
|
49
|
+
if (appDir && fileName.startsWith(appDir + _path.default.sep)) {
|
|
50
|
+
// If debugAppPaths is undefined, include all app files
|
|
51
|
+
if (debugAppPaths === undefined) {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
// If debugAppPaths is empty array, exclude all app files
|
|
55
|
+
if (debugAppPaths.length === 0) {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
// Check if file matches any of the debug paths
|
|
59
|
+
const relativeToApp = fileName.slice(appDir.length);
|
|
60
|
+
return fileMatchesDebugPaths(relativeToApp, debugAppPaths);
|
|
61
|
+
}
|
|
62
|
+
// Check if file is in pages directory
|
|
63
|
+
if (pagesDir && fileName.startsWith(pagesDir + _path.default.sep)) {
|
|
64
|
+
// If debugPagePaths is undefined, include all pages files
|
|
65
|
+
if (debugPagePaths === undefined) {
|
|
66
|
+
return true;
|
|
67
|
+
}
|
|
68
|
+
// If debugPagePaths is empty array, exclude all pages files
|
|
69
|
+
if (debugPagePaths.length === 0) {
|
|
70
|
+
return false;
|
|
71
|
+
}
|
|
72
|
+
// Check if file matches any of the debug paths
|
|
73
|
+
const relativeToPages = fileName.slice(pagesDir.length);
|
|
74
|
+
return fileMatchesDebugPaths(relativeToPages, debugPagePaths);
|
|
75
|
+
}
|
|
76
|
+
// Keep files outside app/pages directories (shared code, etc.)
|
|
77
|
+
return true;
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
if (fileNames.length < 1) {
|
|
25
81
|
return {
|
|
26
82
|
hasWarnings: false,
|
|
27
83
|
inputFilesCount: 0,
|
|
@@ -45,7 +101,7 @@ async function runTypeCheck(typescript, baseDir, distDir, tsConfigPath, cacheDir
|
|
|
45
101
|
}
|
|
46
102
|
incremental = true;
|
|
47
103
|
program = typescript.createIncrementalProgram({
|
|
48
|
-
rootNames:
|
|
104
|
+
rootNames: fileNames,
|
|
49
105
|
options: {
|
|
50
106
|
...options,
|
|
51
107
|
composite: false,
|
|
@@ -54,7 +110,7 @@ async function runTypeCheck(typescript, baseDir, distDir, tsConfigPath, cacheDir
|
|
|
54
110
|
}
|
|
55
111
|
});
|
|
56
112
|
} else {
|
|
57
|
-
program = typescript.createProgram(
|
|
113
|
+
program = typescript.createProgram(fileNames, options);
|
|
58
114
|
}
|
|
59
115
|
const result = program.emit();
|
|
60
116
|
const ignoreRegex = [
|
|
@@ -86,7 +142,7 @@ async function runTypeCheck(typescript, baseDir, distDir, tsConfigPath, cacheDir
|
|
|
86
142
|
return {
|
|
87
143
|
hasWarnings: true,
|
|
88
144
|
warnings,
|
|
89
|
-
inputFilesCount:
|
|
145
|
+
inputFilesCount: fileNames.length,
|
|
90
146
|
totalFilesCount: program.getSourceFiles().length,
|
|
91
147
|
incremental
|
|
92
148
|
};
|