@vercel/next 4.10.8 → 4.10.10
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 +17 -10
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10925,6 +10925,7 @@ var MIB = 1024 * KIB;
|
|
|
10925
10925
|
var EDGE_FUNCTION_SIZE_LIMIT = 4 * MIB;
|
|
10926
10926
|
var DEFAULT_MAX_UNCOMPRESSED_LAMBDA_SIZE = 250 * MIB;
|
|
10927
10927
|
var LAMBDA_RESERVED_UNCOMPRESSED_SIZE = 25 * MIB;
|
|
10928
|
+
var INTERNAL_PAGES = ["_app.js", "_error.js", "_document.js"];
|
|
10928
10929
|
|
|
10929
10930
|
// src/edge-function-source/get-edge-function-source.ts
|
|
10930
10931
|
var import_zlib = __toESM(require("zlib"));
|
|
@@ -11856,11 +11857,13 @@ async function getSourceFilePathFromPage({
|
|
|
11856
11857
|
if (page === "/_not-found/page") {
|
|
11857
11858
|
return "";
|
|
11858
11859
|
}
|
|
11859
|
-
|
|
11860
|
-
|
|
11861
|
-
|
|
11862
|
-
|
|
11863
|
-
|
|
11860
|
+
if (!INTERNAL_PAGES.includes(page)) {
|
|
11861
|
+
console.log(
|
|
11862
|
+
`WARNING: Unable to find source file for page ${page} with extensions: ${extensionsToTry.join(
|
|
11863
|
+
", "
|
|
11864
|
+
)}, this can cause functions config from \`vercel.json\` to not be applied`
|
|
11865
|
+
);
|
|
11866
|
+
}
|
|
11864
11867
|
return "";
|
|
11865
11868
|
}
|
|
11866
11869
|
function isDirectory(path5) {
|
|
@@ -13931,7 +13934,7 @@ async function serverBuild({
|
|
|
13931
13934
|
const lambdas = {};
|
|
13932
13935
|
const prerenders = {};
|
|
13933
13936
|
const lambdaPageKeys = Object.keys(lambdaPages);
|
|
13934
|
-
const internalPages = [
|
|
13937
|
+
const internalPages = [...INTERNAL_PAGES];
|
|
13935
13938
|
const pageBuildTraces = await (0, import_build_utils2.glob)("**/*.js.nft.json", pagesDir);
|
|
13936
13939
|
const isEmptyAllowQueryForPrendered = import_semver3.default.gte(
|
|
13937
13940
|
nextVersion,
|
|
@@ -15432,7 +15435,8 @@ ${JSON.stringify(
|
|
|
15432
15435
|
has: [
|
|
15433
15436
|
{
|
|
15434
15437
|
type: "header",
|
|
15435
|
-
key: rscPrefetchHeader
|
|
15438
|
+
key: rscPrefetchHeader,
|
|
15439
|
+
value: "1"
|
|
15436
15440
|
}
|
|
15437
15441
|
],
|
|
15438
15442
|
dest: import_path4.default.posix.join(
|
|
@@ -15453,7 +15457,8 @@ ${JSON.stringify(
|
|
|
15453
15457
|
has: [
|
|
15454
15458
|
{
|
|
15455
15459
|
type: "header",
|
|
15456
|
-
key: rscPrefetchHeader
|
|
15460
|
+
key: rscPrefetchHeader,
|
|
15461
|
+
value: "1"
|
|
15457
15462
|
}
|
|
15458
15463
|
],
|
|
15459
15464
|
dest: import_path4.default.posix.join(
|
|
@@ -15471,7 +15476,8 @@ ${JSON.stringify(
|
|
|
15471
15476
|
has: [
|
|
15472
15477
|
{
|
|
15473
15478
|
type: "header",
|
|
15474
|
-
key: rscHeader
|
|
15479
|
+
key: rscHeader,
|
|
15480
|
+
value: "1"
|
|
15475
15481
|
}
|
|
15476
15482
|
],
|
|
15477
15483
|
dest: import_path4.default.posix.join("/", entryDirectory, "/index.rsc"),
|
|
@@ -15488,7 +15494,8 @@ ${JSON.stringify(
|
|
|
15488
15494
|
has: [
|
|
15489
15495
|
{
|
|
15490
15496
|
type: "header",
|
|
15491
|
-
key: rscHeader
|
|
15497
|
+
key: rscHeader,
|
|
15498
|
+
value: "1"
|
|
15492
15499
|
}
|
|
15493
15500
|
],
|
|
15494
15501
|
dest: import_path4.default.posix.join("/", entryDirectory, "/$1.rsc"),
|