@vercel/next 4.20.3 → 4.20.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +21 -3
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -13445,7 +13445,8 @@ async function getNodeMiddleware({
|
|
|
13445
13445
|
prerenderBypassToken,
|
|
13446
13446
|
isCorrectMiddlewareOrder,
|
|
13447
13447
|
functionsConfigManifest,
|
|
13448
|
-
requiredServerFilesManifest
|
|
13448
|
+
requiredServerFilesManifest,
|
|
13449
|
+
instrumentationHookBuildTrace
|
|
13449
13450
|
}) {
|
|
13450
13451
|
const middlewareFunctionConfig = functionsConfigManifest?.functions["/_middleware"];
|
|
13451
13452
|
if (!middlewareFunctionConfig || !middlewareFunctionConfig.matchers) {
|
|
@@ -13506,6 +13507,22 @@ async function getNodeMiddleware({
|
|
|
13506
13507
|
console.log("outside base dir", absolutePath);
|
|
13507
13508
|
}
|
|
13508
13509
|
});
|
|
13510
|
+
if (instrumentationHookBuildTrace) {
|
|
13511
|
+
instrumentationHookBuildTrace.files.map((file) => {
|
|
13512
|
+
fileList.push(
|
|
13513
|
+
import_path3.default.relative(
|
|
13514
|
+
baseDir,
|
|
13515
|
+
import_path3.default.join(entryPath, outputDirectory, "server", file)
|
|
13516
|
+
)
|
|
13517
|
+
);
|
|
13518
|
+
});
|
|
13519
|
+
fileList.push(
|
|
13520
|
+
import_path3.default.relative(
|
|
13521
|
+
baseDir,
|
|
13522
|
+
import_path3.default.join(entryPath, outputDirectory, "server", "instrumentation.js")
|
|
13523
|
+
)
|
|
13524
|
+
);
|
|
13525
|
+
}
|
|
13509
13526
|
const reasons = /* @__PURE__ */ new Map();
|
|
13510
13527
|
const tracedFiles = Object.fromEntries(
|
|
13511
13528
|
(await Promise.all(
|
|
@@ -14739,13 +14756,13 @@ async function serverBuild({
|
|
|
14739
14756
|
})
|
|
14740
14757
|
]);
|
|
14741
14758
|
const experimentalStreamingLambdaPaths = /* @__PURE__ */ new Map();
|
|
14759
|
+
let instrumentationHookBuildTrace;
|
|
14742
14760
|
if (hasLambdas) {
|
|
14743
14761
|
const initialTracingLabel = "Traced Next.js server files in";
|
|
14744
14762
|
console.time(initialTracingLabel);
|
|
14745
14763
|
let initialFileList;
|
|
14746
14764
|
let initialFileReasons;
|
|
14747
14765
|
let nextServerBuildTrace;
|
|
14748
|
-
let instrumentationHookBuildTrace;
|
|
14749
14766
|
const useBundledServer = import_semver4.default.gte(
|
|
14750
14767
|
nextVersion,
|
|
14751
14768
|
BUNDLED_SERVER_NEXT_VERSION
|
|
@@ -15522,7 +15539,8 @@ ${JSON.stringify(
|
|
|
15522
15539
|
prerenderBypassToken: prerenderManifest.bypassToken,
|
|
15523
15540
|
isCorrectMiddlewareOrder,
|
|
15524
15541
|
functionsConfigManifest,
|
|
15525
|
-
requiredServerFilesManifest
|
|
15542
|
+
requiredServerFilesManifest,
|
|
15543
|
+
instrumentationHookBuildTrace
|
|
15526
15544
|
});
|
|
15527
15545
|
const middleware = await getMiddlewareBundle({
|
|
15528
15546
|
config,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/next",
|
|
3
|
-
"version": "4.20.
|
|
3
|
+
"version": "4.20.4",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"text-table": "0.2.0",
|
|
54
54
|
"vitest": "2.0.3",
|
|
55
55
|
"webpack-sources": "3.2.3",
|
|
56
|
-
"@vercel/
|
|
57
|
-
"@vercel/
|
|
56
|
+
"@vercel/routing-utils": "6.4.0",
|
|
57
|
+
"@vercel/build-utils": "13.32.3"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"build": "node build.mjs",
|