@vercel/next 4.10.9 → 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 +13 -8
- 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,
|
|
@@ -15473,7 +15476,8 @@ ${JSON.stringify(
|
|
|
15473
15476
|
has: [
|
|
15474
15477
|
{
|
|
15475
15478
|
type: "header",
|
|
15476
|
-
key: rscHeader
|
|
15479
|
+
key: rscHeader,
|
|
15480
|
+
value: "1"
|
|
15477
15481
|
}
|
|
15478
15482
|
],
|
|
15479
15483
|
dest: import_path4.default.posix.join("/", entryDirectory, "/index.rsc"),
|
|
@@ -15490,7 +15494,8 @@ ${JSON.stringify(
|
|
|
15490
15494
|
has: [
|
|
15491
15495
|
{
|
|
15492
15496
|
type: "header",
|
|
15493
|
-
key: rscHeader
|
|
15497
|
+
key: rscHeader,
|
|
15498
|
+
value: "1"
|
|
15494
15499
|
}
|
|
15495
15500
|
],
|
|
15496
15501
|
dest: import_path4.default.posix.join("/", entryDirectory, "/$1.rsc"),
|